Examples of LoginResult


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

   
    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

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

    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

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

  }
   
  /** 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

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

   * 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

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

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

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

 
  /**
   * Starts the sequence to register a new version of an ontology.
   */
  private void dispatchUploadNewVersionOntology(RegisteredOntologyInfo roi) {
    LoginResult loginResult = PortalControl.getInstance().getLoginResult();
    if ( loginResult == null || loginResult.getError() != null ) {
      pendingMessage = "Please, sign in, browse to the desired ontology, " +
        "and then select \"Edit new version\" to register a new version."
      ;
      History.newItem(PortalConsts.T_BROWSE);
      return;
View Full Code Here

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

        "available values from the file. \n"
      ;
     
      // add the attribute names for administrators:
      if ( PortalControl.getInstance().getLoginResult() != null ) {
        LoginResult loginResult = PortalControl.getInstance().getLoginResult();
        if ( loginResult.isAdministrator() ) {
          confirmationMsg +=
            "\n" +
            "The attributes are:\n" +
            commonKeysWithDiffValues
            ;
View Full Code Here

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

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

    return widget;
  }
 
  public void dispatch(boolean accountJustCreated) {
    this.accountJustCreated = accountJustCreated;
    LoginResult loginResult = PortalControl.getInstance().getLoginResult();
    String userLoggedIn = (loginResult != null && loginResult.getError() == null) ?
        loginResult.getUserName() : null
    ;

    String nameToFocus;
    if ( userLoggedIn != null ) {
      tbs.get("username").tb.setReadOnly(true);
View Full Code Here

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

        HasHorizontalAlignment.ALIGN_CENTER, HasVerticalAlignment.ALIGN_MIDDLE
    );
    row++;

   
    LoginResult loginResult = PortalControl.getInstance().getLoginResult();
    String userLoggedIn = (loginResult != null && loginResult.getError() == null) ?
        loginResult.getUserName() : null;
   
    HTML tipForPassword = null;
   
    for ( String name : tbs.keySet() ) {
      Entry entry = tbs.get(name);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.