Package net.sf.archimede.model.user

Examples of net.sf.archimede.model.user.UserDao


            FacesContext context = FacesContext.getCurrentInstance();
            context.addMessage(null , message);
            return "";
        }
      
        UserDao userDao = UserDao.createInstance();
        User updatedUser = new UserImpl();
        updatedUser.setUsername(this.username);
        updatedUser.setPassword(this.password);
        userDao.update(updatedUser);
       
        visitBean.setCredentials(new CredentialsWrapper(this.username, this.password));
       
        ResourceBundleUtil bundleUtil = ResourceBundleUtil.getInstance();
        FacesMessage message = new FacesMessage( bundleUtil.getMessage("user_updated") );
View Full Code Here


                } else if (method.getName().equals("getUsers") && !this.isUsersInit) {
                    List users = new ArrayList();
                    if (node.hasProperty(NodesTypes.PREFIX + USERS_PROPERTY_NAME)) {
                        Property usersProp = node.getProperty(NodesTypes.PREFIX + USERS_PROPERTY_NAME);
                        Value[] usersValues = usersProp.getValues();
                        UserDao userDao = UserDao.createInstance();
                        for (int i = 0; i < usersValues.length; i++) {
                            User user = userDao.retrieve(usersValues[i].getString());
                            users.add(user);
                        }
                    } else {
                        users = new ArrayList();
                    }
View Full Code Here

TOP

Related Classes of net.sf.archimede.model.user.UserDao

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.