Examples of XPlannerLoginModule


Examples of org.nxplanner.security.XPlannerLoginModule

                        }
                        iteration = null;
                    }
                }
                List projects = session.find("from project in " + Project.class);
                XPlannerLoginModule encryptor = new XPlannerLoginModule(new HashMap());
                for (int i = 0; i < personCount; i++) {
                    Person person = new Person();
                    session.save(person);
                    person.setName("Person " + person.getId());
                    String initials = "P" + person.getId();
                    person.setInitials(initials);
                    person.setPassword(encryptor.encodePassword(initials, null));
                    Role role = getRole(session, "sysadmin");
                    for (int j = 0; j < projects.size(); j++) {
                        Project project = (Project)projects.get(j);
                        session.save(new RoleAssociation(project.getId(), person.getId(), role.getId()));
                    }
View Full Code Here

Examples of org.nxplanner.security.XPlannerLoginModule

        try {
            List users = parseTomcatUsersFile(filename);
            HibernateHelper.initializeHibernate();
            Session session = GlobalSessionFactory.get().openSession();
            XPlannerLoginModule encryptor = new XPlannerLoginModule(new HashMap());
            Iterator userItr = users.iterator();
            while (userItr.hasNext()) {
                User user = (User)userItr.next();
                try {
                    Person person = getPerson(session, user);
View Full Code Here

Examples of org.nxplanner.security.XPlannerLoginModule

    private Person setUpPerson() throws Exception {
        String userId = generateUniqueName();
        Person person = new Person(userId);
        person.setName(userId);
        person.setInitials(userId);
        XPlannerLoginModule loginModule = new XPlannerLoginModule(Collections.EMPTY_MAP);
        person.setPassword(loginModule.encodePassword("test", null));
        tester.getSession().save(person);
        scheduleObjectDeletion(person);
        return person;
    }
View Full Code Here

Examples of org.nxplanner.security.XPlannerLoginModule

    protected void setUp() throws Exception {
        super.setUp();
        project = newProject();
        SystemAuthorizer.set(new AuthorizerImpl());
        authenticator = new XPlannerLoginModule(new HashMap());
    }
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.