Package org.apache.jackrabbit.api.security.user

Examples of org.apache.jackrabbit.api.security.user.User.disable()


        // after granting user-mgt privilege changing the pw must succeed.
        modify("/", PrivilegeConstants.REP_USER_MANAGEMENT, true);

        UserManager testUserMgr = getUserManager(testSession);
        User user = (User) testUserMgr.getAuthorizable(userId);
        user.disable("disabled!");
        testSession.save();
    }

    @Test
    public void testRemoveUserWithoutPermission() throws Exception {
View Full Code Here


    @Test
    public void testUser() throws Exception {
        User u = mgr.createUser("u", "u");

        u.disable("disabled");
        assertTrue(u.isDisabled());
        assertFalse(root.hasPendingChanges());

        u.disable(null);
        assertFalse(u.isDisabled());
View Full Code Here

        u.disable("disabled");
        assertTrue(u.isDisabled());
        assertFalse(root.hasPendingChanges());

        u.disable(null);
        assertFalse(u.isDisabled());
        assertFalse(root.hasPendingChanges());

        u.changePassword("t");
        assertFalse(root.hasPendingChanges());
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.