@Deprecated public class DefaultUserManagementHelper extends Object implements UserManagementHelper
Constructor and Description |
---|
DefaultUserManagementHelper(ConfluenceRpc rpc)
Deprecated.
|
DefaultUserManagementHelper(ConfluenceRpc rpc,
DirectoryConfiguration directoryConfiguration)
Deprecated.
|
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
UserManagementHelper.createUser(com.atlassian.confluence.it.User) ) |
UserWithKey |
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
UserManagementHelper.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.
|
@Deprecated public DefaultUserManagementHelper(ConfluenceRpc rpc)
DefaultUserManagementHelper(com.atlassian.confluence.it.rpc.ConfluenceRpc, DirectoryConfiguration)
public DefaultUserManagementHelper(ConfluenceRpc rpc, DirectoryConfiguration directoryConfiguration)
public void addUserToGroup(String userName, String groupName)
addUserToGroup
in interface UserManagementHelper
public void addUserToGroup(User user, Group group)
addUserToGroup
in interface UserManagementHelper
public Set<String> getUserGroups(User user)
getUserGroups
in interface UserManagementHelper
user
- the user who's group membership is to be checked.public void addGroupToGroup(Group childGroup, Group parentGroup)
UserManagementHelper
addGroupToGroup
in interface UserManagementHelper
public UserWithKey createUser(User user)
UserManagementHelper
createUser
in interface UserManagementHelper
public void removeUser(String username)
removeUser
in interface UserManagementHelper
public void removeUser(User user)
removeUser
in interface UserManagementHelper
public void createGroup(String groupName)
createGroup
in interface UserManagementHelper
public void createGroup(Group group)
createGroup
in interface UserManagementHelper
public void removeUserFromGroup(User user, Group group)
removeUserFromGroup
in interface UserManagementHelper
public void removeGroup(String groupName)
removeGroup
in interface UserManagementHelper
public List<User> createMultipleUsers(int numUsers)
UserManagementHelper
UserManagementHelper.createUser(com.atlassian.confluence.it.User)
)createMultipleUsers
in interface UserManagementHelper
numUsers
- the number of users to createpublic void removeMultipleUsers(List<User> users)
UserManagementHelper
UserManagementHelper.removeUser(User)
)removeMultipleUsers
in interface UserManagementHelper
users
- the list of users to removepublic void removeUserUncleanly(String username)
UserManagementHelper
removeUserUncleanly
in interface UserManagementHelper
username
- the username of the user to removepublic void removeUserUncleanly(User user)
UserManagementHelper
removeUserUncleanly
in interface UserManagementHelper
user
- the user to removepublic void removeGroupUncleanly(Group group)
UserManagementHelper
removeGroupUncleanly
in interface UserManagementHelper
group
- the group to removepublic void fixUser(User user)
UserManagementHelper
user
. That is,
it finds the user in the system by its username, and sets the full name and email address.fixUser
in interface UserManagementHelper
user
- a user to set the details ofpublic void changePassword(String username, String newPassword)
UserManagementHelper
changePassword
in interface UserManagementHelper
username
- Username of the user whose password to changenewPassword
- Passwordpublic void setAutoSync(boolean autoSync)
setAutoSync
in interface UserManagementHelper
public void synchronise()
UserManagementHelper
synchronise
in interface UserManagementHelper
public void resetData(Set<User> usersToKeep, Set<Group> groupsToKeep, Map<Group,HashSet<User>> userGroupMembershipsToKeep)
UserManagementHelper
resetData
in interface UserManagementHelper
public boolean isExternal()
UserManagementHelper
isExternal
in interface UserManagementHelper
public void startBatch()
UserManagementHelper
startBatch
in interface UserManagementHelper
public void endBatch()
UserManagementHelper
endBatch
in interface UserManagementHelper
public void renameUser(String oldUsername, String newUsername)
renameUser
in interface UserManagementHelper
public void deactivateUser(String username)
deactivateUser
in interface UserManagementHelper
public void activateUser(String username)
activateUser
in interface UserManagementHelper
public void removeFromDefaultLicenseGroup(User user)
UserManagementHelper
removeFromDefaultLicenseGroup
in interface UserManagementHelper
Copyright © 2003–2020 Atlassian. All rights reserved.