Class DefaultUserManagementHelper
java.lang.Object
com.atlassian.confluence.it.usermanagement.DefaultUserManagementHelper
- All Implemented Interfaces:
UserManagementHelper
Deprecated.
Please use confluence-test-utils module instead.
See {com.atlassian.confluence.test.usermanagement.DefaultUserManager} alternative
-
Constructor Summary
ConstructorDescriptionDeprecated.DefaultUserManagementHelper
(ConfluenceRpc rpc, DirectoryConfiguration directoryConfiguration) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
activateUser
(String username) Deprecated.void
addGroupToGroup
(Group childGroup, Group parentGroup) Deprecated.Add childGroup to parentGroup.void
addUserToGroup
(User user, Group group) Deprecated.void
addUserToGroup
(String userName, String groupName) Deprecated.void
changePassword
(String username, String newPassword) Deprecated.Change a user's password.void
createGroup
(Group group) Deprecated.void
createGroup
(String groupName) Deprecated.createMultipleUsers
(int numUsers) Deprecated.Helper to create multiple users (callsUserManagementHelper.createUser(com.atlassian.confluence.it.User)
)createUser
(User user) Deprecated.Creates the user, adds it to the default users group, and ensures the user profile is created (to work around CONF-6404).void
deactivateUser
(String username) Deprecated.void
endBatch()
Deprecated.Flag that the batch transactions are complete, that a sync should be performed immediately, and that syncing should be re-enabled for future requests.void
Deprecated.Ensure that the user's details in the system match those inuser
.getUserGroups
(User user) Deprecated.boolean
Deprecated.Return false if this helper modifies Users, Groups and Group Memberships via RPC (Confluence-managed directories).void
Deprecated.Remove user from the group that has licensed accessvoid
removeGroup
(String groupName) Deprecated.void
removeGroupUncleanly
(Group group) Deprecated.Removes a group but do not remove their dependent permissions.void
removeMultipleUsers
(List<User> users) Deprecated.Removes the list of users (callsUserManagementHelper.removeUser(User)
)void
removeUser
(User user) Deprecated.void
removeUser
(String username) Deprecated.void
removeUserFromGroup
(User user, Group group) Deprecated.void
removeUserUncleanly
(User user) Deprecated.Removes a user but do not remove their dependent permissions or pages.void
removeUserUncleanly
(String username) Deprecated.Removes a user with the given username but do not remove their dependent permissions or pages.void
renameUser
(String oldUsername, String newUsername) Deprecated.void
resetData
(Set<User> usersToKeep, Set<Group> groupsToKeep, Map<Group, HashSet<User>> userGroupMembershipsToKeep) Deprecated.Return the User/Group/Membership data to a clean state.void
setAutoSync
(boolean autoSync) Deprecated.void
Deprecated.Flag that a number of user/group transactions are about to be performed in a block, and any syncing should pause until the batch is finished.void
Deprecated.Force a synchronisation with an external user directory.
-
Constructor Details
-
DefaultUserManagementHelper
Deprecated. -
DefaultUserManagementHelper
public DefaultUserManagementHelper(ConfluenceRpc rpc, DirectoryConfiguration directoryConfiguration) Deprecated.
-
-
Method Details
-
addUserToGroup
Deprecated.- Specified by:
addUserToGroup
in interfaceUserManagementHelper
-
addUserToGroup
Deprecated.- Specified by:
addUserToGroup
in interfaceUserManagementHelper
-
getUserGroups
Deprecated.- Specified by:
getUserGroups
in interfaceUserManagementHelper
- Parameters:
user
- the user who's group membership is to be checked.- Returns:
- the set of groups the user belongs to or an empty Set if none.
-
addGroupToGroup
Deprecated.Description copied from interface:UserManagementHelper
Add childGroup to parentGroup. Does nothing if the membership already exists.- Specified by:
addGroupToGroup
in interfaceUserManagementHelper
-
createUser
Deprecated.Description copied from interface:UserManagementHelper
Creates the user, adds it to the default users group, and ensures the user profile is created (to work around CONF-6404).- Specified by:
createUser
in interfaceUserManagementHelper
-
removeUser
Deprecated.- Specified by:
removeUser
in interfaceUserManagementHelper
-
removeUser
Deprecated.- Specified by:
removeUser
in interfaceUserManagementHelper
-
createGroup
Deprecated.- Specified by:
createGroup
in interfaceUserManagementHelper
-
createGroup
Deprecated.- Specified by:
createGroup
in interfaceUserManagementHelper
-
removeUserFromGroup
Deprecated.- Specified by:
removeUserFromGroup
in interfaceUserManagementHelper
-
removeGroup
Deprecated.- Specified by:
removeGroup
in interfaceUserManagementHelper
-
createMultipleUsers
Deprecated.Description copied from interface:UserManagementHelper
Helper to create multiple users (callsUserManagementHelper.createUser(com.atlassian.confluence.it.User)
)- Specified by:
createMultipleUsers
in interfaceUserManagementHelper
- Parameters:
numUsers
- the number of users to create- Returns:
- the list of users created
-
removeMultipleUsers
Deprecated.Description copied from interface:UserManagementHelper
Removes the list of users (callsUserManagementHelper.removeUser(User)
)- Specified by:
removeMultipleUsers
in interfaceUserManagementHelper
- Parameters:
users
- the list of users to remove
-
removeUserUncleanly
Deprecated.Description copied from interface:UserManagementHelper
Removes a user with the given username but do not remove their dependent permissions or pages.- Specified by:
removeUserUncleanly
in interfaceUserManagementHelper
- Parameters:
username
- the username of the user to remove
-
removeUserUncleanly
Deprecated.Description copied from interface:UserManagementHelper
Removes a user but do not remove their dependent permissions or pages.- Specified by:
removeUserUncleanly
in interfaceUserManagementHelper
- Parameters:
user
- the user to remove
-
removeGroupUncleanly
Deprecated.Description copied from interface:UserManagementHelper
Removes a group but do not remove their dependent permissions.- Specified by:
removeGroupUncleanly
in interfaceUserManagementHelper
- Parameters:
group
- the group to remove
-
fixUser
Deprecated.Description copied from interface:UserManagementHelper
Ensure that the user's details in the system match those inuser
. That is, it finds the user in the system by its username, and sets the full name and email address.- Specified by:
fixUser
in interfaceUserManagementHelper
- Parameters:
user
- a user to set the details of
-
changePassword
Deprecated.Description copied from interface:UserManagementHelper
Change a user's password.- Specified by:
changePassword
in interfaceUserManagementHelper
- Parameters:
username
- Username of the user whose password to changenewPassword
- Password
-
setAutoSync
public void setAutoSync(boolean autoSync) Deprecated.- Specified by:
setAutoSync
in interfaceUserManagementHelper
-
synchronise
public void synchronise()Deprecated.Description copied from interface:UserManagementHelper
Force a synchronisation with an external user directory.- Specified by:
synchronise
in interfaceUserManagementHelper
-
resetData
public void resetData(Set<User> usersToKeep, Set<Group> groupsToKeep, Map<Group, HashSet<User>> userGroupMembershipsToKeep) Deprecated.Description copied from interface:UserManagementHelper
Return the User/Group/Membership data to a clean state.- Specified by:
resetData
in interfaceUserManagementHelper
-
isExternal
public boolean isExternal()Deprecated.Description copied from interface:UserManagementHelper
Return false if this helper modifies Users, Groups and Group Memberships via RPC (Confluence-managed directories). Return true if this helper makes calls to different server, e.g. LDAP or Crowd (externally-managed directories).- Specified by:
isExternal
in interfaceUserManagementHelper
-
startBatch
public void startBatch()Deprecated.Description copied from interface:UserManagementHelper
Flag that a number of user/group transactions are about to be performed in a block, and any syncing should pause until the batch is finished.- Specified by:
startBatch
in interfaceUserManagementHelper
-
endBatch
public void endBatch()Deprecated.Description copied from interface:UserManagementHelper
Flag that the batch transactions are complete, that a sync should be performed immediately, and that syncing should be re-enabled for future requests.- Specified by:
endBatch
in interfaceUserManagementHelper
-
renameUser
Deprecated.- Specified by:
renameUser
in interfaceUserManagementHelper
-
deactivateUser
Deprecated.- Specified by:
deactivateUser
in interfaceUserManagementHelper
-
activateUser
Deprecated.- Specified by:
activateUser
in interfaceUserManagementHelper
-
removeFromDefaultLicenseGroup
Deprecated.Description copied from interface:UserManagementHelper
Remove user from the group that has licensed access- Specified by:
removeFromDefaultLicenseGroup
in interfaceUserManagementHelper
-