Examples of LoginInfo


Examples of gfriends.client.model.LoginInfo

    PersistenceManager pm = null;

    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();
    LoginInfo loginInfo = new LoginInfo();

    try {

      if (user != null) {
        loginInfo.setLoggedIn(true);
        loginInfo.setEmailAddress(user.getEmail());
        loginInfo.setNickname(user.getNickname());
        loginInfo.setLogoutUrl(userService.createLogoutURL(requestUri));

        Contact contact = null;
        pm = PMF.get().getPersistenceManager();
        String query = "select from " + Contact.class.getName() + " where email == :email";
        @SuppressWarnings("unchecked")
        List<Contact> contactList = (List<Contact>) pm.newQuery(query).execute(user.getEmail());
        if (contactList != null && contactList.size() > 0) {
          contact = contactList.get(0);
        }
        if (contact != null && contact.isEnable()) {
          loginInfo.setRegisted(true);
        } else {
          loginInfo.setRegisted(false);
        }

      } else {
        loginInfo.setLoggedIn(false);
        loginInfo.setLoginUrl(userService.createLoginURL(requestUri));
      }

    } finally {
      if (pm != null) {
        pm.close();
View Full Code Here

Examples of kirin.client.model.LoginInfo

  private static final long serialVersionUID = 3375263133638612517L;

  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 logicLayer.LoginInfo

    }
  }

 
  private void addFuncPointers() {
    data.li=new LoginInfo() {  //function pointer. we don't want the textfields to be passed, only their current values.   
     
      @Override
      public String getUsername()
      {
        return getUsrFromUsrField();
View Full Code Here

Examples of net.virtuemart.www.VM_Tools.LoginInfo

        Charset charsetISO = Charset.forName("ISO-8859-1");
//     CharsetDecoder decoder = charsetISO.newDecoder();
        encoderUTF = charsetUTF.newEncoder();
        encoderISO = charsetISO.newEncoder();

        wsLogin = new LoginInfo();
        // set WS.
        wsURL = WSInfo.getWsurl();
        wsPosid = WSInfo.getWsposid();
        hostname = TicketInfo.getHostname();
View Full Code Here

Examples of net.virtuemart.www.VM_Tools.LoginInfo

        Charset charsetISO = Charset.forName("ISO-8859-1");
//     CharsetDecoder decoder = charsetISO.newDecoder();
        encoderUTF = charsetUTF.newEncoder();
        encoderISO = charsetISO.newEncoder();

        wsLogin = new LoginInfo();
        // set WS.
        wsURL = WSInfo.getWsurl();
        wsPosid = WSInfo.getWsposid();
        hostname = TicketInfo.getHostname();
View Full Code Here

Examples of nu.fw.jeti.backend.LoginInfo

          {
            if(ssl) port = 5223;
            else port = 5222;
          }
          boolean statuswin = Boolean.valueOf(getParameter("HIDELOGINSTATUS")).booleanValue();
          loginInfo = new LoginInfo(server,host,user,password,resource,port,ssl,0,statuswin);
        }
        Start.programURL = getCodeBase();
        Start.applet = true;
        final JPanel panel = new JPanel(new BorderLayout());
        start = new Start(getCodeBase().toString(),panel);
View Full Code Here

Examples of nu.fw.jeti.backend.LoginInfo

      }
    }
   
    public void login(String username,String server,String password)
    {
      if(loginInfo==null)loginInfo = new LoginInfo(null,null,null,null,"JetiApplet",5222,false,0);
      if(username==null || password==null)
      {
        new nu.fw.jeti.applet.LoginWindow(backend).setVisible(true);
      }
      else new LoginStatusWindow(new LoginInfo(server,loginInfo.getHost(),username,password,
          loginInfo.getResource(),loginInfo.getPort(),loginInfo.isSSl(),0),backend,1);
    }
View Full Code Here

Examples of nu.fw.jeti.backend.LoginInfo

        if(chkSSL.isSelected()) port = 5223;
        else port = 5222;
      }
      String resource = txtResource.getText();
      if(resource.equals("")) resource = "JetiApplet";
      LoginInfo info = new LoginInfo((String)cmbServer.getSelectedItem(),null,
          txtUser.getText(),txtPassword.getText(),resource,port,
          chkSSL.isSelected(),((Number)spinner.getValue()).intValue());
      new LoginStatusWindow(info,backend,1);
      if(window!=null)window.dispose();
    }
View Full Code Here

Examples of nu.fw.jeti.backend.LoginInfo

    }
    catch(Exception e)
    {
      e.printStackTrace();
    }
    LoginInfo temp = profileInfo.getProfile(profileName);
    if (temp != null)
    {
      txtUser.setText(temp.getUsername());
      txtPassword.setText(temp.getPassword());
      txtResource.setText(temp.getResource());
      txtPort.setText(String.valueOf(temp.getPort()));
            txtHost.setText(temp.getHost());
      chkSSL.setSelected(temp.isSSl());
      chkHideLogin.setSelected(temp.hideStatusWindow());
      cmbServer.setSelectedItem(temp.getServer());
      spinner.setValue(new Integer(temp.getPriority()));
      if(!temp.useProxy(LoginInfo.NO_PROXY))
      {
        if(temp.useProxy(LoginInfo.SOCKS_PROXY))chkSocksProxy.setSelected(true);
        else if(temp.useProxy(LoginInfo.HTTP_PROXY))chkHTTPProxy.setSelected(true);
        txtProxyHost.setText(temp.getProxyServer());
        txtProxyPort.setText(temp.getProxyPort());
        txtProxyUserName.setText(temp.getProxyUsername());
        txtProxyPassword.setText(temp.getProxyPassword());
      }
    }
  }
View Full Code Here

Examples of nu.fw.jeti.backend.LoginInfo

        {
          JOptionPane.showMessageDialog(this,I18N.gettext("main.EditProfile.The_HTTP_Proxy_mode_requires_SSL_to_be_enabled_Please_enable_SSL_and_use_port_5223,_443_or_80"));
          return false;
        }
      }
            LoginInfo info = new LoginInfo((String)cmbServer.getSelectedItem(),
                                           txtHost.getText(),
                                           txtUser.getText(),
                                           txtPassword.getText(),
                                           resource,port,chkSSL.isSelected(),
                                           ((Number)spinner.getValue()).intValue(),
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.