コード例 #1
0
  @SuppressWarnings("unchecked")
  public static void setVestion(IDBDatabase db) throws IDBDatabaseException {

    Log.debug("Set store (history) new version " + databaseVersion);
    Log.warn("This will remove all previous data.");

    if (db.getObjectStoreNames().contains(STORE_NAME)) {
      Log.debug("Remove previous selected store: " + STORE_NAME);
      db.deleteObjectStore(STORE_NAME);
    }

    IDBObjectStoreParameters parameters = IDBObjectStoreParameters.create();
    parameters.setKeyPath("id");
    parameters.setAutoIncrement(true);
    Log.debug("Create new store: Store name: " + STORE_NAME);
    IDBObjectStore<Long> newStore =
        (IDBObjectStore<Long>) db.createObjectStore(STORE_NAME, parameters);

    IDBIndexParameters indexParameters = IDBIndexParameters.create();
    indexParameters.setUnique(false);
    newStore.createIndex(URL_INDEX, URL_INDEX, indexParameters);
    Log.debug("Create new store index (URL): Store name: " + STORE_NAME);
    IDBIndexParameters createdIndexParameters = IDBIndexParameters.create();
    createdIndexParameters.setUnique(false);
    newStore.createIndex(CREATED_INDEX, CREATED_INDEX, createdIndexParameters);
    Log.debug("Create new store index (created): Store name: " + STORE_NAME);
  }
コード例 #2
0
 public void refresh() {
   Log.debug("DhcpNatConfigTab.refresh()");
   if (m_dirty && m_initialized) {
     m_dirty = false;
     if (m_selectNetIfConfig == null) {
       Log.debug("DhcpNatConfigTab.refresh() - resetting");
       reset();
     } else {
       Log.debug("DhcpNatConfigTab.refresh() - updating");
       update();
     }
   }
 }
コード例 #3
0
ファイル: MainPanel.java プロジェクト: vega113/ReadOnlyGadget
  @Inject
  public MainPanel(
      final MessagesImpl messages,
      final ConstantsImpl constants,
      final GlobalResources resources,
      final NewPostGadgetService service,
      final VegaUtils utils) {
    initWidget(uiBinder.createAndBindUi(this));
    resources.globalCSS().ensureInjected();
    this.service = service;
    this.messages = messages;
    this.constants = constants;
    this.resources = resources;
    this.utils = utils;
    //		dsAboutPnl.setHeader()
    try {
      setForumInfoIntoGadget(messages, utils);
    } catch (Exception e) {
      Log.debug(e.getMessage());
    }
    Timer timer =
        new Timer() {

          @Override
          public void run() {
            try {
              setForumInfoIntoGadget(messages, utils);
            } catch (Exception e) {
              Log.debug(e.getMessage());
            }
          }
        };
    timer.schedule(1000);
    utils.reportPageview("/newpost/");
  }
コード例 #4
0
  private PageRequest createPageRequest(final Integer reportId) {
    // Report & Document path
    final PageRequest request;

    if (currentContainerDTO instanceof ProjectDTO) {
      // This element is displayed in a project
      request = new PageRequest(Page.PROJECT_REPORTS);
      request.addParameter(RequestParameter.ID, currentContainerDTO.getId());
      request.addParameter(RequestParameter.REPORT_ID, reportId);

    } else if (currentContainerDTO instanceof OrgUnitDTO) {
      // This element is displayed in a project
      request = new PageRequest(Page.ORGUNIT_REPORTS);
      request.addParameter(RequestParameter.ID, currentContainerDTO.getId());
      request.addParameter(RequestParameter.REPORT_ID, reportId);

    } else {
      if (Log.isDebugEnabled()) {
        Log.debug(
            "ReportElementDTO does not know how to render properly from a '"
                + currentContainerDTO.getClass()
                + "' container.");
      }
      request = null;
    }

    return request;
  }
コード例 #5
0
  /** change Filter Title ListBox selectedValue */
  @SuppressWarnings("deprecation")
  @Override
  public void changeFilterTitleShown(String selectedtTitle) {
    Log.debug("###########this is changeFilterTitleShown");

    //		Window.alert("getSelectedFilterTitle() = " + getSelectedFilterTitle());
    requests
        .anamnesisCheckRequest()
        .findTitlesContatisAnamnesisChecksWithSearching(
            place.getSearchStr(), getSelectedFilterTitle())
        .fire(
            new Receiver<List<AnamnesisCheckTitleProxy>>() {

              @Override
              public void onSuccess(List<AnamnesisCheckTitleProxy> response) {
                Log.debug("????????in changeFilterTitleShown response = " + response.size());
                view.getAnamnesisCheckPanel().clear();
                if ((place.getSearchStr() == null || place.getSearchStr().equals(""))
                    && getSelectedFilterTitle() == null) {
                  view.loadAnamnesisCheckPanel(response, false);
                } else {
                  view.loadAnamnesisCheckPanel(response, true);
                }
              }
            });
  }
コード例 #6
0
  /**
   * Called from the table selection handler
   *
   * @param anamnesisCheck
   */
  @Override
  public void showDetails(AnamnesisCheckProxy anamnesisCheck) {

    Log.debug(anamnesisCheck.getId().toString());

    goTo(new AnamnesisCheckDetailsPlace(anamnesisCheck.stableId(), Operation.DETAILS));
  }
コード例 #7
0
  private void reset() {
    Log.debug("DhcpNatConfigTab: reset()");
    m_modeCombo.setSimpleValue(MessageUtils.get(GwtNetRouterMode.netRouterOff.name()));
    m_modeCombo.setOriginalValue(m_modeCombo.getValue());

    m_dhcpBeginAddressField.setValue("");
    m_dhcpBeginAddressField.setOriginalValue(m_dhcpBeginAddressField.getValue());

    m_dhcpEndAddressField.setValue("");
    m_dhcpEndAddressField.setOriginalValue(m_dhcpEndAddressField.getValue());

    m_dhcpSubnetMaskField.setValue("");
    m_dhcpSubnetMaskField.setOriginalValue(m_dhcpSubnetMaskField.getValue());

    m_dhcpLeaseDefaultField.setValue(0);
    m_dhcpLeaseDefaultField.setOriginalValue(m_dhcpLeaseDefaultField.getValue());

    m_dhcpLeaseMaxField.setValue(0);
    m_dhcpLeaseMaxField.setOriginalValue(m_dhcpLeaseMaxField.getValue());

    m_passDnsRadioTrue.setValue(false);
    m_passDnsRadioTrue.setOriginalValue(m_passDnsRadioTrue.getValue());

    m_passDnsRadioFalse.setValue(true);
    m_passDnsRadioFalse.setOriginalValue(m_passDnsRadioFalse.getValue());

    m_passDnsRadioGroup.setValue(m_passDnsRadioFalse);
    m_passDnsRadioGroup.setOriginalValue(m_passDnsRadioGroup.getValue());

    update();
  }
コード例 #8
0
  public void deleteAnnotation(String annotates, final Annotation annotation) {
    if (annotates.contains("?")) {
      annotates = annotates.substring(0, annotates.indexOf('?'));
    }

    String url = controller.getAnnoteaServerUrl() + "/" + annotation.getUUID();
    url += "?document_url=" + annotates;
    RequestBuilder req = new RequestBuilder("DELETE", url) {
          // nothing to override... used to make a *real* HTTP DELETE request
        };

    try {
      req.sendRequest(
          null,
          new RequestCallback() {
            public void onError(Request arg0, Throwable arg1) {}

            public void onResponseReceived(Request arg0, Response arg1) {
              getAnnotationList(Window.Location.getHref(), true);
              controller.reloadAnnotations();
            }
          });
    } catch (RequestException e) {
      GWT.log("Error while deleting an annotation: " + url, e);
      Log.debug("Error while deleting an annotation: " + url, e);
    }
  }
コード例 #9
0
  public void submitAnnotation(Annotation newAnnotation) {
    AnnotationXmlGenerator xmlGenerator =
        new AnnotationXmlGenerator(webConfiguration, newAnnotation);
    String request = xmlGenerator.generateXml();
    postRequest =
        new RequestBuilder(RequestBuilder.POST, URL.encode(controller.getAnnoteaServerUrl()));
    try {
      postRequest.sendRequest(
          request,
          new RequestCallback() {
            public void onError(Request request, Throwable exception) {
              Window.alert("Error while sending data to annotea server: " + exception.toString());
            }

            public void onResponseReceived(Request request, Response response) {
              responseManager.processSubmitAnnotationResponse(response.getText());
              getAnnotationList(controller.getDocumentUrl());
              controller.reloadAnnotations();
            }
          });
    } catch (Throwable e) {
      GWT.log("Error while sending new annotation", e);
      Log.debug("Error while sending new annotation", e);
    }
  }
コード例 #10
0
  public void getAnnotationList(String annotates, final boolean forceDecorate) {
    if (annotates.contains("?")) {
      annotates = annotates.substring(0, annotates.indexOf('?'));
    }
    String url = controller.getAnnoteaServerUrl() + "?w3c_annotates=" + annotates;
    RequestBuilder getRequest = new RequestBuilder(RequestBuilder.GET, URL.encode(url));
    try {
      getRequest.sendRequest(
          null,
          new RequestCallback() {
            public void onError(Request request, Throwable exception) {}

            public void onResponseReceived(Request request, Response response) {
              responseManager.processAnnotationListResponse(response.getText());
              if (forceDecorate) {
                // Force all the annotations to be redecorated
                controller.updateAnnotations(true);
              }
            }
          });
    } catch (RequestException e) {
      GWT.log("Error while requesting annotations: " + url, e);
      Log.debug("Error while requesting annotations: " + url, e);
      Window.alert(e.toString());
    }
  }
コード例 #11
0
 @Override
 public void onSuccess(UpdateTransUnitResult result) {
   TransUnit updatedTU = result.getUpdateInfoList().get(0).getTransUnit();
   Log.debug("save resulted TU: " + updatedTU.debugString());
   if (result.isSingleSuccess()) {
     eventBus.fireEvent(
         new NotificationEvent(
             NotificationEvent.Severity.Info,
             messages.notifyUpdateSaved(updatedTU.getRowIndex(), updatedTU.getId().toString()),
             goToRowLink));
     int rowIndexOnPage = navigationService.findRowIndexById(updatedTU.getId());
     if (rowIndexOnPage != NavigationService.UNDEFINED) {
       UndoLink undoLink = undoLinkProvider.get();
       undoLink.prepareUndoFor(result);
       targetContentsPresenter.addUndoLink(rowIndexOnPage, undoLink);
       navigationService.updateDataModel(updatedTU);
       targetContentsPresenter.confirmSaved(updatedTU);
       targetContentsPresenter.setFocus();
     }
     queue.removeSaved(event, updatedTU.getVerNum());
   } else {
     saveFailure(result.getUpdateInfoList().get(0).getErrorMessage());
   }
   if (queue.hasPending()) {
     performSave(id);
   }
 }
コード例 #12
0
  public SettingsTabs(GwtSession currentSession, ServiceTree serviceTree) {
    m_currentSession = currentSession;
    m_servicesTree = serviceTree;

    Log.debug("about to get the firewall configuration");
    initTabs();
  }
コード例 #13
0
  /** @param AssesmentProxy assesment */
  private void init(QuestionProxy question) {

    this.question = question;
    Log.debug("Details für: " + question.getQuestionText());
    view.setValue(question);

    initAnswerView();
  }
コード例 #14
0
    @Override
    public void onSuccess(List<AnamnesisCheckProxy> response) {
      Log.debug("setQuestionTableData() - sueccess and response size = " + response.size());
      Log.debug("dataProvider.getList().size() = " + dataProvider.getList().size());

      dataProvider.getList().clear();
      dataProvider.getList().addAll(response);
      // AnamnesisCheckActivity.this.view.getTable().setPageSize(dataProvider.getList().size());
      AnamnesisCheckActivity.this.view.setTableSize(dataProvider.getList().size());
      Log.info("page size--" + AnamnesisCheckActivity.this.view.getTable().getPageSize());
      AnamnesisCheckActivity.this.view.getTable().redraw();
      dataProvider.refresh();
      AnamnesisCheckActivity.this.view.getTable().redraw();
      // innerSystemStartView.getTable().cellTable.setPageSize(25);
      // anamnesisCheckTable.cellTable.setPageSize(25);
      Log.info("data provider--" + dataProvider.getList().size());
    }
コード例 #15
0
 @Override
 public void onSuccess(List<AnamnesisCheckTitleProxy> response) {
   Log.debug("findTitlesContatisAnamnesisChecksWithSearching size = " + response.size());
   String query = view.getSearchBox().getText().trim();
   if ((query == null || query.equals("")) && getSelectedFilterTitle() == null) {
     view.loadAnamnesisCheckPanel(response, false);
   } else {
     view.loadAnamnesisCheckPanel(response, true);
   }
 }
コード例 #16
0
ファイル: AuditPopup.java プロジェクト: bookingnet/booking
 /* (non-Javadoc)
  * @see net.cbtltd.client.panel.AbstractPopup#getValue(java.lang.Object)
  */
 private Audit getValue(Audit audit) {
   audit.setState(state);
   audit.setOrganizationid(AbstractRoot.getOrganizationid());
   audit.setId(id);
   audit.setProductid(productid);
   audit.setName(nameField.getValue());
   audit.setDate(dateField.getValue());
   audit.setRating(ratingField.getValue());
   audit.setNotes(notesField.getValue());
   Log.debug("getValue " + audit);
   return audit;
 }
コード例 #17
0
  @Override
  public Double convertStringValue(String value) {
    if (value == null) {
      return null;
    }

    try {
      double d = parse(value);
      Log.debug("CoordinateEditor: '" + value + "' -> " + d);
      return d;
    } catch (CoordinateFormatException e) {
      return null;
    }
  }
コード例 #18
0
  @Override
  public boolean equals(Object o) {
    if (!(o instanceof GwtNetInterfaceConfig)) {
      return false;
    }

    Map<String, Object> properties = this.getProperties();
    Map<String, Object> otherProps = ((GwtNetInterfaceConfig) o).getProperties();

    if (properties != null) {
      if (otherProps == null) {
        return false;
      }
      if (properties.size() != otherProps.size()) {
        Log.debug("Sizes differ");
        return false;
      }

      Object oldVal, newVal;
      for (String key : properties.keySet()) {
        oldVal = properties.get(key);
        newVal = otherProps.get(key);
        if (oldVal != null) {
          if (!oldVal.equals(newVal)) {
            Log.debug("Values differ - Key: " + key + " oldVal: " + oldVal + ", newVal: " + newVal);
            return false;
          }
        } else if (newVal != null) {
          return false;
        }
      }
    } else if (otherProps != null) {
      return false;
    }

    return true;
  }
コード例 #19
0
  @Override
  public void updateDistantDatabase() {
    fireOnStart();
    fireOnTaskChange(I18N.CONSTANTS.synchronizerOrganizationUpload_0());

    final Factory factory = Factory.getInstance();

    if (factory != null) {
      final Database database = factory.createDatabase();
      database.open(OnlineMode.LOCAL_DATABASE_NAME);

      try {
        OrganizationDAO.truncateTables(database);

        fireOnComplete();

      } catch (DatabaseException ex) {
        Log.debug("Error while removing the organization dto from the local database.", ex);
        fireOnFailure(
            false, I18N.CONSTANTS.synchronizerOrganizationUpload_0_failed() + ex.getMessage());

      } finally {
        try {
          database.close();
        } catch (DatabaseException ex) {
          Log.debug("Database closing error.", ex);
          fireOnFailure(
              false, I18N.CONSTANTS.synchronizerOrganizationUpload_0_failed() + ex.getMessage());
        }
      }

    } else
      fireOnFailure(
          false,
          I18N.CONSTANTS.synchronizerOrganizationUpload_0_failed()
              + "Google Gears isn't available.");
  }
コード例 #20
0
  private void init() {
    request = requests.anamnesisCheckRequest();

    if (anamnesisCheck == null) {
      AnamnesisCheckProxy anamnesisCheck = request.create(AnamnesisCheckProxy.class);
      this.anamnesisCheck = anamnesisCheck;
      view.setEditTitle(false);
    } else {
      // cannot be set via editor...
      view.setEditTitle(true);
    }

    //		GWT.log("$$$$$$$$$$$$$$$$ anamnesisCheck be
    // title="+anamnesisCheck.getAnamnesisCheckTitle().getText());
    //		GWT.log("$$$$$$$$$$$$$$$$ anamnesisCheck be sort oder="+anamnesisCheck.getSort_order());
    anamnesisCheckBefore = anamnesisCheck;

    Log.info("edit");

    Log.info("persist");

    request.persist().using(anamnesisCheck);
    editorDriver.edit(anamnesisCheck, request);

    Log.info("flush");
    //		editorDriver.flush();
    Log.debug("Create für: " + anamnesisCheck.getId());

    // manually update value fields... (no editor support)

    view.update(anamnesisCheck);

    initInsideTitle();
    if (place.getOperation() == Operation.EDIT) {
      getQuestionsByselected(anamnesisCheck.getAnamnesisCheckTitle());
    } else if (place.getOperation() == Operation.CREATE) {
      requests
          .anamnesisCheckTitleRequest()
          .findAnamnesisCheckTitle(Long.valueOf(place.getTitleId()))
          .fire(
              new Receiver<AnamnesisCheckTitleProxy>() {

                @Override
                public void onSuccess(AnamnesisCheckTitleProxy response) {
                  getQuestionsByselected(response);
                }
              });
    }
  }
コード例 #21
0
ファイル: MessageCenter.java プロジェクト: ccrouch/rhq
 private void log(Message message) {
   String formattedMessage =
       "At [" + message.getFired() + "] MessageCenter received: " + message.getConciseMessage();
   if (message.severity == Message.Severity.Info) {
     Log.info(formattedMessage);
   } else if (message.severity == Message.Severity.Warning) {
     Log.warn(formattedMessage);
   } else if (message.severity == Message.Severity.Error) {
     Log.error(formattedMessage);
   } else if (message.severity == Message.Severity.Fatal) {
     Log.fatal(formattedMessage);
   } else {
     Log.debug(formattedMessage);
   }
 }
コード例 #22
0
ファイル: AuditPopup.java プロジェクト: bookingnet/booking
 /* (non-Javadoc)
  * @see net.cbtltd.client.panel.AbstractPopup#setValue(java.lang.Object)
  */
 public void setValue(Audit audit) {
   Log.debug("setValue " + audit);
   if (audit == null) {
     onReset(Audit.INITIAL);
   } else {
     setResetting(true);
     onStateChange(audit.getState());
     id = audit.getId();
     productid = audit.getProductid();
     nameField.setValue(audit.getName());
     dateField.setValue(audit.getDate());
     ratingField.setValue(audit.getRating());
     notesField.setValue(audit.getNotes());
     setResetting(false);
   }
   center();
 }
コード例 #23
0
    @Override
    public String getToken(PlaceAssesmentDetails place) {
      Log.debug("Im PlaceAssesmentDetails.getToken: Placename -" + place.getProxyId());

      //	        	if (requests==null)
      //	        	Log.warn("requests null");

      if (Operation.DETAILS == place.getOperation()) {
        return place.getProxyId() + SEPARATOR + PlaceAssesmentDetails.Operation.DETAILS;
      } else if (Operation.CREATE == place.getOperation()) {
        return /*place.getProxyId() + SEPARATOR + */ PlaceAssesmentDetails.Operation.CREATE
            .toString();
      } else if (Operation.EDIT == place.getOperation()) {
        return place.getProxyId() + SEPARATOR + PlaceAssesmentDetails.Operation.EDIT;
      }

      return place.getPlaceName();
    }
コード例 #24
0
  @Override
  public void sendToAll(MessageWithAuthor message) throws CometSessionException {
    HttpSession httpSession = getSession();
    if (httpSession == null) {
      throw new CometSessionException("not logged in: no http session");
    }

    String username = (String) httpSession.getAttribute("username");
    if (username == null) {
      throw new CometSessionException("not logged in: no http session username");
    }

    for (CometSession session : users.values()) {
      session.enqueue(message);
    }

    Log.debug("message from " + username + " has been sent to all");
  }
コード例 #25
0
    @Override
    public PlaceAssesmentDetails getPlace(String token) {
      Log.debug("Im PlaceAssesmentDetails.getPlace: Token -" + token);

      String bits[] = token.split(SEPARATOR);
      Operation operation = Operation.valueOf(bits[1]);
      if (Operation.DETAILS == operation) {
        return new PlaceAssesmentDetails(requestFactory.getProxyId(bits[0]), Operation.DETAILS);
      }
      if (Operation.EDIT == operation) {
        return new PlaceAssesmentDetails(requestFactory.getProxyId(bits[0]), Operation.EDIT);
      }
      if (Operation.CREATE == operation) {
        return new PlaceAssesmentDetails(/*requestFactory.getProxyId(bits[0]), */ Operation.CREATE);
      }

      return new PlaceAssesmentDetails(token);
    }
コード例 #26
0
  @SuppressWarnings("deprecation")
  @Override
  public void setQuestionTableData(AnamnesisCheckTitleProxy title) {
    if (mapTitlesToProviders.size() < 1) {
      Log.warn("No data providers!?");
    }

    ListDataProvider<AnamnesisCheckProxy> dataProvider = mapTitlesToProviders.get(title);

    if (dataProvider.getList() != null) {
      Log.debug("view.getSearchBoxShown() = " + view.getSearchBoxShown());
      requests
          .anamnesisCheckRequest()
          .findAnamnesisChecksBySearchWithAnamnesisCheckTitle(view.getSearchBoxShown(), title)
          .with("anamnesisCheckTitle")
          .fire(new AnamnesisCheckReceiver(dataProvider));
    }
  }
コード例 #27
0
  /**
   * Retrieves the criterion type with the given level.
   *
   * @param level The level.
   * @return The criterion type.
   */
  public CriterionTypeDTO getType(int level) {

    Log.debug(toString());

    if (level < 0) {
      return null;
    }

    if (getTypes() == null) {
      return null;
    }

    for (final CriterionTypeDTO type : getTypes()) {
      if (type.getLevel() == level) {
        return type;
      }
    }

    return null;
  }
コード例 #28
0
ファイル: LicensePopup.java プロジェクト: booking1234/booking
 /* (non-Javadoc)
  * @see net.cbtltd.client.panel.AbstractPopup#setValue(java.lang.Object)
  */
 public void setValue(License license) {
   Log.debug("setValue " + license);
   if (license != null) {
     setResetting(true);
     onStateChange(license.getState());
     id = license.getId();
     downstreamidField.setValue(license.getDownstreamid());
     productField.setValue(license.getProductid());
     typeField.setValue(license.getType());
     waitField.setValue(license.getWait());
     fromtodateField.setValue(license.getFromdate());
     fromtodateField.setTovalue(license.getTodate());
     subscriptionField.setValue(license.getSubscription());
     transactionField.setValue(license.getTransaction());
     upstreamField.setValue(license.getUpstream());
     downstreamField.setValue(license.getDownstream());
     notesField.setValue(license.getNotes());
     center();
     setResetting(false);
   }
 }
コード例 #29
0
  public void setNetInterface(GwtNetInterfaceConfig netIfConfig) {
    m_dirty = true;
    m_selectNetIfConfig = netIfConfig;

    Log.debug(
        "got new netIfConfig for DHCP server for "
            + netIfConfig.getName()
            + ": "
            + "\n\t\trouter mode: "
            + netIfConfig.getRouterMode()
            + "\n\t\trouter DHCP start address: "
            + netIfConfig.getRouterDhcpBeginAddress()
            + "\n\t\trouter DHCP end address: "
            + netIfConfig.getRouterDhcpEndAddress()
            + "\n\t\trouter default lease: "
            + Integer.toString(netIfConfig.getRouterDhcpDefaultLease())
            + "\n\t\trouter max lease: "
            + Integer.toString(netIfConfig.getRouterDhcpMaxLease())
            + "\n\t\trouter Pass DNS: "
            + Boolean.toString(netIfConfig.getRouterDnsPass()));
  }
コード例 #30
0
ファイル: LicensePopup.java プロジェクト: booking1234/booking
 /* (non-Javadoc)
  * @see net.cbtltd.client.panel.AbstractPopup#getValue(java.lang.Object)
  */
 private License getValue(License license) {
   license.setState(state);
   license.setId(id);
   license.setOrganizationid(AbstractRoot.getOrganizationid());
   license.setActorid(AbstractRoot.getActorid());
   license.setId(id);
   license.setUpstreamid(AbstractRoot.getOrganizationid());
   license.setDownstreamid(downstreamidField.getValue());
   license.setProductid(productField.getValue()); // TODO: set null for zero???
   license.setType(typeField.getValue());
   license.setWait(waitField.getValue());
   license.setFromdate(fromtodateField.getValue());
   license.setTodate(fromtodateField.getTovalue());
   license.setSubscription(subscriptionField.getValue());
   license.setTransaction(transactionField.getValue());
   license.setUpstream(upstreamField.getValue());
   license.setDownstream(downstreamField.getValue());
   license.setNotes(notesField.getValue());
   Log.debug("getValue " + license);
   return license;
 }