Examples of LoginInfo


Examples of com.ikai.photosharing.shared.LoginInfo

    LoginService {

  public LoginInfo login(String requestUri) {
    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();
    LoginInfo loginInfo = new LoginInfo();

    if (user != null) {
      loginInfo.setLoggedIn(true);
      loginInfo.setEmailAddress(user.getEmail());
      loginInfo.setNickname(user.getNickname());
      loginInfo.setLogoutUrl(userService.createLogoutURL(requestUri));
      loginInfo.setId(user.getUserId());
    } else {
      loginInfo.setLoggedIn(false);
      loginInfo.setLoginUrl(userService.createLoginURL(requestUri));
    }
    return loginInfo;
  }
View Full Code Here

Examples of com.isfasiel.main.user.web.LoginInfo

    User user = userService.login(inputUser);
    if (user == null) {
      errors.reject("invalidLogin", "Invalid Login");
    }
    else {
      LoginInfo loginInfo = loginInfoProvider.get();
      loginInfo.save(user);
    }
    inputUser = null;
   
  }
View Full Code Here

Examples of com.poker.client.LoginInfo

        ObjectifyService.register(OtherPlayerInfo.class);
    }
 
  @Override
  public LoginInfo loginWithFBID(String nameAndId) {
    LoginInfo loginInfo = new LoginInfo();
    //judge if user exists
    if (nameAndId!= null) {
      String[] names=nameAndId.split("@");
      loginInfo.setLoggedIn(true);     
      loginInfo.setFbId(names[1]);
      loginInfo.setNickname(names[0]);
      String token =  channelService.createChannel(loginInfo.getFbId());
      loginInfo.setToken(token);
    } else {
      loginInfo.setLoggedIn(false);
    }
    return loginInfo;
  }
View Full Code Here

Examples of com.project1.client.LoginInfo

  public LoginInfo login(String requestUri) {
    //Se crea un servicio de usuario.
    UserService userService = UserServiceFactory.getUserService();
    //Se obtiene al usuario actual.
    User user = userService.getCurrentUser();
    LoginInfo loginInfo = new LoginInfo();
    //Se recopila la informaci�n del usuario, si es que ha iniciado sesi�n.
    if (user != null) {
      loginInfo.setLoggedIn(true);
      loginInfo.setEmailAddress(user.getEmail());
      loginInfo.setNickname(user.getNickname());
      loginInfo.setLogoutUrl(userService.createLogoutURL(requestUri));
    } else {
      //De lo contrario, se le env�a a iniciar su sesi�n.
      loginInfo.setLoggedIn(false);
      loginInfo.setLoginUrl(userService.createLoginURL(requestUri));
    }
    return loginInfo;
  }
View Full Code Here

Examples of com.proyecto.miniplan.client.LoginInfo

    LoginService {

  public LoginInfo login(String requestUri) {
    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();
    LoginInfo loginInfo = new LoginInfo();

    if (user != null) {
      loginInfo.setLoggedIn(true);
      loginInfo.setEmailAddress(user.getEmail());
      loginInfo.setNickname(user.getNickname());
      loginInfo.setLogoutUrl(userService.createLogoutURL(requestUri));
    } else {
      loginInfo.setLoggedIn(false);
      loginInfo.setLoginUrl(userService.createLoginURL(requestUri));
    }
    return loginInfo;
  }
View Full Code Here

Examples of com.sun.appserv.management.client.prefs.LoginInfo

    {
        final CLILogger logger = CLILogger.getInstance();
        try {
            //by definition, the host name will default to "localhost" and entry is overwritten
            final LoginInfoStore store = LoginInfoStoreFactory.getStore(null);
            final LoginInfo login      = new LoginInfo("localhost", port, user, password);
            if (store.exists(login.getHost(), login.getPort())) {
                //just let the user know that the user has chosen to overwrite the login information. This is non-interactive, on purpose
                final Object[] params = new Object[] {login.getHost(), ""+login.getPort()};
                final String msg = getLocalizedString("OverwriteLoginMsgCreateDomain", params);
                logger.printMessage(msg);
            }
            store.store(login, true);
            final Object[] params = new String[] {user, dn, store.getName()};
View Full Code Here

Examples of com.sun.appserv.management.client.prefs.LoginInfo

   
    private void saveLogin(final String host, final int port, final String user, final String password)
    throws CommandException {
        try {
            final LoginInfoStore store = LoginInfoStoreFactory.getStore(null);
            final LoginInfo login      = new LoginInfo(host, port, user, password);
            String msg                 = null;
            final boolean storeIt      = handleExists(store, login);
            if (storeIt) {
                store.store(login, true);
                final Object[] params = new Object[] {login.getUser(), login.getHost(), ""+login.getPort(), store.getName()};
                msg = getLocalizedString("LoginInfoStored", params);
            }
            else {
                final Object[] params = new Object[] {login.getHost(), ""+login.getPort()};
                msg = getLocalizedString("LoginInfoNotStored", params);
            }
            CLILogger.getInstance().printMessage(msg);
        }
        catch(final Exception e) {
View Full Code Here

Examples of com.sun.appserv.management.client.prefs.LoginInfo

        try
        {
            final LoginInfoStore store = LoginInfoStoreFactory.getStore(null);
            if (store.exists(host, port))
            {
                LoginInfo login = store.read(host, port);
                userValue = login.getUser();
                if (userValue != null)
                {
                    CLILogger.getInstance().printDebugMessage(
                                    "user value read from " + store.getName());
                }
View Full Code Here

Examples of com.sun.appserv.management.client.prefs.LoginInfo

                    try
                    {
                        final LoginInfoStore store = LoginInfoStoreFactory.getStore(null);
                        if (store.exists(host, port))
                        {
                            LoginInfo login = store.read(host, port);
                            passwordVal = login.getPassword();
                            if (passwordVal != null)
                            {
                                CLILogger.getInstance().printDebugMessage(
                                        "password value read from " + store.getName());
                            }
View Full Code Here

Examples of com.sun.appserv.management.client.prefs.LoginInfo

                                "server", ServerHelper.ADMIN_HTTP_LISTNER_ID);
           String host="localhost";
           int port=Integer.parseInt(as.getPort());
           final LoginInfoStore store = LoginInfoStoreFactory.getStore(null);
           if (store.exists(host, port)) {
               LoginInfo login = store.read(host, port);
               adminPassword = login.getPassword();
               adminUser = login.getUser();
               if (adminUser == null) {
                    adminUser = DEFAULT_ADMIN_USER;
                    adminPassword = DEFAULT_ADMIN_PASSWORD;
               }
           }
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.