Package net.relatedwork.client.tools.session

Examples of net.relatedwork.client.tools.session.SessionInformation


    super.onReveal();
    setInSlot(TYPE_Footer, footerPresenter);
    setInSlot(TYPE_Header, headerPresenter);
    setInSlot(TYPE_Sidebar, sidebarPresenter);

        SessionInformation sessionInformation = sessionInformationManager.get();
    // Register Session
    sessionInformation.continueSession();

    // fire Login/Logout depending on wether we continue a user session
    if (sessionInformation.isLoggedIn()) {
      getEventBus().fireEvent(new LoginEvent(sessionInformation));
    }

    // Remark: RPC calls have to be in onReveal!
    // Does not work at onBind, onReset! -> null object exception
View Full Code Here


  }

 
  private void updateLabel() {
    SessionInformation session = sessionInformationManager.get();
//    Window.alert("UpdatingLabel " + session.getSessionId());
    getView().getLoginStatus().setText(
        "Username:" + session.getUsername() + " -- " +
        "SessionId:" + session.getSessionId() );
  }
View Full Code Here

        });

        getView().setVoteHandler(new VoteEvent() {
            @Override
            public void vote(boolean up) {
                SessionInformation sessionInformation = checkLogin();
                if (sessionInformation == null) return;

                getEventBus().fireEvent(new LoadingOverlayEvent(true));

                String loggedInUser = sessionInformation.getEmailAddress();

                CommentVoteAction commentVoteAction = new CommentVoteAction(loggedInUser, comment.getUri(), up);
                dispatcher.execute(commentVoteAction, new AsyncCallback<CommentVoteResult>() {
                    @Override
                    public void onFailure(Throwable caught) {
View Full Code Here

        this.submission = submitted;
    }


    private SessionInformation checkLogin() {
        SessionInformation sessionInformation = sessionInformationManager.get();
        if (!sessionInformation.isLoggedIn()) {
//            Window.alert("Please login!");
//            return null;
        }
        return sessionInformation;
    }
View Full Code Here

      throws ActionException {
    //TODO: Implement Serverside user handling
    // Check login
    String email = loginAction.getEmail();
    String password = loginAction.getPassword();
    SessionInformation SIO = loginAction.getSession();
   
    UserInformation UIO = new UserInformation(servletContext);
   
    try {
      UIO.loginUser(loginAction);
View Full Code Here

    IOHelper.log("User "+ this.email+ " authenticated: "+
     authSecret + " == " + action.getSecret());
   
    /* Login user */
    registerSessionId(action.getSession().sessionId);
    SessionInformation session = updateSIO(action.getSession());
   
    save();
   
    return new UserVerifyActionResult(session);
   
View Full Code Here

    }
   
    loadFromNode(userLoginNode);
   
    registerSessionId(loginAction.getSession().sessionId);
    SessionInformation session = updateSIO(loginAction.getSession());
   
    save();
   
    IOHelper.log("User logged in");
    print()
View Full Code Here

        Node authorNode = null;
        for (Relationship rel: commentNode.getRelationships(DBRelationshipTypes.COMMENT_AUTHOR)) {
            authorNode = rel.getOtherNode(commentNode);
        }

        SessionInformation author;
        if (authorNode == null) {
            // assume a default author if not found
            author = new SessionInformation();
        } else {
            author = null; // construct from authorNode
        }

        String targetUri;
View Full Code Here

TOP

Related Classes of net.relatedwork.client.tools.session.SessionInformation

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.