Package org.jabusuite.core.users

Examples of org.jabusuite.core.users.JbsUser


    }

    protected void doLogin() {
        logger.info("Logging in...");
        if (checkFields()) {
            JbsUser user = findUser(txUserName.getText());
            if (user == null) {
                JbsOptionPane msgBox = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("Login.userOrPasswordWrong"), JbsL10N.getString("Generic.error"), JbsOptionPane.ERROR_MESSAGE);
                msgBox.addActionListener(new DlgListener());
            } else {
                if ((checkPassword(user, this.txPassword.getText())) && (this.checkModules(user))) {
View Full Code Here


    }

    protected JbsUser findUser(String userName) {
        logger.info("Looking for user " + String.valueOf(userName));
        //Context context;
        JbsUser user;
        try {
            JbsUsersRemote jbsUsers = (JbsUsersRemote)ClientTools.getRemoteBean(JbsUsersRemote.class);
            user = jbsUsers.findUser(userName);
        } catch (Exception e) {
            user = null;
View Full Code Here

   
    protected boolean hasDemoUser() {
        boolean result=false;
        try {
            JbsUsersRemote jbsUsers = (JbsUsersRemote)ClientTools.getRemoteBean(JbsUsersRemote.class);
            JbsUser demoUser = jbsUsers.findUser("demo");
            if (demoUser!=null)
                result=StringUtils.encodeMD5("demo").equals(demoUser.getPassword());
        } catch (Exception e) {
            result=false;
        }
        if (!result)
            logger.debug("Demo-User does not exist.");
View Full Code Here

        colMain.add(rowMain);

        initKeystrokeListener();
       
        //Context context;
        JbsUser user;
        try {
            JbsUsersRemote jbsUsers = (JbsUsersRemote)ClientTools.getRemoteBean(JbsUsersRemote.class);
            user = jbsUsers.findUser("root");
            logger.debug("User: "+user.getUserName());
        } catch (Exception e) {
            user = null;
        }
       
    }
View Full Code Here

TOP

Related Classes of org.jabusuite.core.users.JbsUser

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.