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

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


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

        "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

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

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

    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

        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

  }
 
 
  private void justCheck() {
   
    LoginResult loginResult = PortalControl.getInstance().getLoginResult();
    String userName = null;
     
    if ( loginResult != null && loginResult.getError() == null ) {
      userName = loginResult.getUserName();
    }

    checkFields(userName);
  }
View Full Code Here

    checkFields(userName);
  }
 
  private void createUpdate() {
   
    LoginResult loginResult = PortalControl.getInstance().getLoginResult();
    String userName = null;
    String userId = null;
    String sessionId = null;
     
    if ( loginResult != null && loginResult.getError() == null ) {
      userName = loginResult.getUserName();
      userId = loginResult.getUserId();
      sessionId = loginResult.getSessionId();
    }

    Map<String, String> values = checkFields(userName);
   
    if ( values != null ) {
View Full Code Here

        else {
          boolean created = userId == null;
          String msg = "Account " + (created ? "created" : "updated");
          Orr.log(msg);
          statusMessage(msg);
          LoginResult loginResult = result.getLoginResult();
          PortalControl.getInstance().userAccountCreatedOrUpdated(created, loginResult);
        }
        _enable(true);
      }
    };
View Full Code Here

      controls.add(button);
      buttons.add(button);
    }
   
    if ( oi != null && PortalControl.getInstance().getLoginResult() != null ) {
      final LoginResult loginResult = PortalControl.getInstance().getLoginResult();
      if ( loginResult != null && loginResult.isAdministrator() ) {
        final RegisteredOntologyInfo roi = oi;
        button = new PushButton("Unregister", new ClickListener() {
          public void onClick(Widget sender) {
            unregisterOntology(loginResult, roi);
          }
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.