Package org.mmisw.orrclient.gwt.client.rpc

Examples of org.mmisw.orrclient.gwt.client.rpc.LoginResult


      public void onSuccess(RegisterOntologyResult result) {
        registrationCompleted(popup, result);
      }
    };

    LoginResult loginResult = PortalControl.getInstance().getLoginResult();
    Orr.service.registerOntology(createOntologyResult, loginResult , callback);
  }
View Full Code Here


      public void onSuccess(RegisterOntologyResult result) {
        registrationCompleted(popup, result);
      }
    };

    LoginResult loginResult = PortalControl.getInstance().getLoginResult();
    Orr.service.registerOntology(createOntologyResult, loginResult , callback);
  }
View Full Code Here

      buttons.add(loadButton);
    }
   
    // include the "details" button only if an administrator is logged in
    // OR this is running in my dev environment (for testing)
    LoginResult loginResult = PortalControl.getInstance().getLoginResult();
    if ( (loginResult != null && loginResult.isAdministrator())
    ||   !GWT.isScript()
    ) {
      buttons.add(detailsButton);
    }
   
View Full Code Here

      buttons.add(loadButton);
    }
   
    // include the "details" button only if an administrator is logged in
    // OR this is running in my dev environment (for testing)
    LoginResult loginResult = PortalControl.getInstance().getLoginResult();
    if ( (loginResult != null && loginResult.isAdministrator())
    ||   !GWT.isScript()
    ) {
      buttons.add(detailsButton);
    }
   
View Full Code Here

    super.setSpacing(5);
   
    boolean isAdmin = false;
   
    if ( PortalControl.getInstance().getLoginResult() != null ) {
      LoginResult loginResult = PortalControl.getInstance().getLoginResult();
      isAdmin =  loginResult.isAdministrator();
    }

    add(preambleHtml);
   
    if ( ! isAdmin ) {
View Full Code Here

    add(infoTextArea);
  }


  private void _prepareUsers() {
    LoginResult loginResult = PortalControl.getInstance().getLoginResult();
    if ( loginResult == null || ! loginResult.isAdministrator() ) {
      statusHtml.setHTML("<font color=\"red\">Only an admin can run this.</font>");
      return;
    }
    Orr.log("_prepareUsers called.");
   
View Full Code Here

   
    Orr.service.prepareUsersOntology(loginResult, callback);
  }

  private void _createGroups() {
    LoginResult loginResult = PortalControl.getInstance().getLoginResult();
    if ( loginResult == null || ! loginResult.isAdministrator() ) {
      statusHtml.setHTML("<font color=\"red\">Only an admin can run this.</font>");
      return;
    }
    Orr.log("_createGroups called.");
   
View Full Code Here

    pctrl = PortalControl.getInstance();
    pctrl.setPortalMainPanel(this);
   
    History.addHistoryListener(this);
   
    LoginResult loginResult = pctrl.getLoginResult();
   
      browsePanel = new BrowsePanel(ontologyInfos, loginResult);
      this.setWidth("100%");
      bodyPanel.setWidth("100%");
View Full Code Here

  }
   
  /** Starts the sequence to register an external ontology.
   */
  private void dispatchUploadOntology() {
    LoginResult loginResult = PortalControl.getInstance().getLoginResult();
    if ( loginResult == null || loginResult.getError() != null ) {
      pendingMessage = "Please, sign in and then select \"Upload\"" +
        " to register an external ontology."
      ;
      History.newItem(PortalConsts.T_BROWSE);
      return;
View Full Code Here

   * TODO prompt for Sign in, and then launch the "new mapping" page.
   * or
   * TODO Allow the VINE interface, even if no user logged in.
   */
  public void dispatchNewMappingOntology() {
    LoginResult loginResult = PortalControl.getInstance().getLoginResult();
    if ( loginResult == null || loginResult.getError() != null ) {
      pendingMessage = "Please, sign in and then select \"Create mapping\"" +
        " to use the integrated VINE tool."
      ;
      History.newItem(PortalConsts.T_BROWSE);
      return;
View Full Code Here

TOP

Related Classes of org.mmisw.orrclient.gwt.client.rpc.LoginResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.