Package org.opencustomer.db.vo.system

Examples of org.opencustomer.db.vo.system.ProfileVO


    {
        UserVO activeUser = (UserVO) request.getSession().getAttribute(Globals.USER_KEY);
       
        UserVO user = new UserVO();
       
        ProfileVO profile = new ProfileVO();
        profile.setAccessUser(EntityAccess.Access.WRITE_SYSTEM);
        profile.setOwnerUser(activeUser.getId());
        profile.setAccessGroup(EntityAccess.Access.NONE);
        profile.setOwnerGroup(activeUser.getProfile().getDefaultUsergroup().getId());
        profile.setAccessGlobal(EntityAccess.Access.WRITE_SYSTEM);
        user.setProfile(profile);

        user.getProfile().setTimeLock(SystemConfiguration.getInstance().getIntValue(SystemConfiguration.Key.DEFAULT_TIMELOCK));
        user.getProfile().setIpPattern(SystemConfiguration.getInstance().getStringValue(SystemConfiguration.Key.DEFAULT_IPPATTERN));
        user.setLocale(activeUser.getLocale());
View Full Code Here


                ldapGroup.setOwnerUser(adminUser.getId());
                ldapGroup.setPriority(new LdapGroupDAO().getAll().size());
                ldapGroup.setAccessUser(Access.WRITE_SYSTEM);
                ldapGroup.setAccessGroup(Access.NONE);
                ldapGroup.setAccessGlobal(Access.NONE);
                ProfileVO profile = new ProfileVO();
                profile.setAccessGlobal(Access.READ);
                profile.setAccessGroup(Access.READ);
                profile.setAccessUser(Access.WRITE_SYSTEM);
                profile.setIpPattern("*");
                profile.setTimeLock(30);
                profile.setRole(new RoleDAO().getByName("User"));
                profile.setDefaultUsergroup(profile.getRole().getDefaultUsergroup());
                profile.setOwnerUser(adminUser.getId());
                profile.setOwnerGroup(adminUser.getProfile().getDefaultUsergroup().getId());
                ldapGroup.setProfile(profile);
                new LdapGroupDAO().insert(ldapGroup,adminUser);
            }
            else
            {
View Full Code Here

TOP

Related Classes of org.opencustomer.db.vo.system.ProfileVO

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.