@Deprecated public interface UserManagementHelper
Modifier and Type | Method and Description |
---|---|
void |
activateUser(String username)
Deprecated.
|
void |
addGroupToGroup(Group childGroup,
Group parentGroup)
Deprecated.
Add childGroup to parentGroup.
|
void |
addUserToGroup(String userName,
String groupName)
Deprecated.
|
void |
addUserToGroup(User user,
Group group)
Deprecated.
|
void |
changePassword(String username,
String newPassword)
Deprecated.
Change a user's password.
|
void |
createGroup(Group group)
Deprecated.
|
void |
createGroup(String groupName)
Deprecated.
|
List<User> |
createMultipleUsers(int numUsers)
Deprecated.
Helper to create multiple users (calls
createUser(com.atlassian.confluence.it.User) ) |
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 |
fixUser(User user)
Deprecated.
Ensure that the user's details in the system match those in
user . |
Set<String> |
getUserGroups(User user)
Deprecated.
|
boolean |
isExternal()
Deprecated.
Return false if this helper modifies Users, Groups and Group Memberships via RPC (Confluence-managed directories).
|
void |
removeFromDefaultLicenseGroup(User user)
Deprecated.
Remove user from the group that has licensed access
|
void |
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 (calls
removeUser(User) ) |
void |
removeUser(String username)
Deprecated.
|
void |
removeUser(User user)
Deprecated.
|
void |
removeUserFromGroup(User user,
Group group)
Deprecated.
|
void |
removeUserUncleanly(String username)
Deprecated.
Removes a user with the given username but do not remove their dependent permissions or pages.
|
void |
removeUserUncleanly(User user)
Deprecated.
Removes a user 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 |
startBatch()
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 |
synchronise()
Deprecated.
Force a synchronisation with an external user directory.
|
User createUser(User user)
Set<String> getUserGroups(User user)
user
- the user who's group membership is to be checked.void addGroupToGroup(Group childGroup, Group parentGroup)
void removeUser(String username)
void removeUser(User user)
void createGroup(String groupName)
void createGroup(Group group)
void removeGroup(String groupName)
List<User> createMultipleUsers(int numUsers)
createUser(com.atlassian.confluence.it.User)
)numUsers
- the number of users to createvoid removeMultipleUsers(List<User> users)
removeUser(User)
)users
- the list of users to removevoid removeUserUncleanly(String username)
username
- the username of the user to removeorg.apache.xmlrpc.XmlRpcException
- if there were problems removing the uservoid removeUserUncleanly(User user)
user
- the user to removeorg.apache.xmlrpc.XmlRpcException
- if there were problems removing the uservoid removeGroupUncleanly(Group group)
group
- the group to removeorg.apache.xmlrpc.XmlRpcException
- if there were problems removing the groupvoid fixUser(User user)
user
. That is,
it finds the user in the system by its username, and sets the full name and email address.user
- a user to set the details ofvoid changePassword(String username, String newPassword)
username
- Username of the user whose password to changenewPassword
- Passwordvoid setAutoSync(boolean autoSync)
void resetData(Set<User> usersToKeep, Set<Group> groupsToKeep, Map<Group,HashSet<User>> userGroupMembershipsToKeep)
usersToKeep
- groupsToKeep
- userGroupMembershipsToKeep
- boolean isExternal()
void synchronise()
void startBatch()
void endBatch()
void deactivateUser(String username)
void activateUser(String username)
void removeFromDefaultLicenseGroup(User user)
Copyright © 2003–2016 Atlassian. All rights reserved.