public class UsersSoapService extends Object
Constructor and Description |
---|
UsersSoapService() |
Modifier and Type | Method and Description |
---|---|
boolean |
addGroup(String groupname)
Adds the specified group.
|
boolean |
addProfilePicture(String userName,
String fileName,
String mimeType,
byte[] pictureData)
Add a profile picture to a user's profile
|
boolean |
addUser(RemoteUser user,
String password,
boolean notifyUser)
Adds user.
|
boolean |
addUserToGroup(String username,
String groupname)
Add user to the specified group.
|
boolean |
changeMyPassword(String oldPass,
String newPass)
Changes your password.
|
boolean |
changeUserPassword(String username,
String newPass)
Changes the user's password.
|
boolean |
deactivateUser(String username)
Deactivates the specified user.
|
boolean |
editUser(RemoteUser remoteUser)
Allows the email and the fullname of a user to be edited by specifying these values in the passed in
RemoteUser . |
String[] |
getActiveUsers(boolean viewAll) |
String[] |
getGroups()
Returns all groups.
|
PersonalInformationManager |
getPersonalInformationManager() |
RemoteUser |
getUser(String username)
Deprecated.
since 5.2. Use
getUserByName(String) instead. |
RemoteConfluenceUser |
getUserByKey(String userKey) |
RemoteConfluenceUser |
getUserByName(String username) |
String[] |
getUserGroups(String username)
Fetches the groups that the specified user belongs to.
|
RemoteUserInformation |
getUserInformation(String username) |
boolean |
getUserPreferenceBoolean(String username,
String key) |
long |
getUserPreferenceLong(String username,
String key) |
String |
getUserPreferenceString(String username,
String key) |
boolean |
hasGroup(String groupname) |
boolean |
hasUser(String username) |
boolean |
isActiveUser(String username) |
boolean |
reactivateUser(String username) |
boolean |
removeAllPermissionsForGroup(String groupname)
Delete all permissions (global and space level) permissions for the group with the given name.
|
boolean |
removeGroup(String groupName,
String moveToGroupName)
Delete group with name groupname.
|
boolean |
removeUser(String username)
Delete the given user from the Confluence System.
|
boolean |
removeUserFromGroup(String username,
String groupname)
Delete the user with name username from the group with name groupname.
|
boolean |
renameUser(String oldUsername,
String newUsername) |
String[] |
renameUsers(Map<String,String> oldUsernamesToNewUsernames)
Renames multiple users at the same time.
|
void |
setAttachmentManager(AttachmentManager attachmentManager) |
void |
setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) |
void |
setPermissionManager(PermissionManager permissionManager) |
void |
setPersonalInformationManager(PersonalInformationManager personalInformationManager) |
void |
setSoapServiceHelper(SoapServiceHelper soapServiceHelper) |
void |
setSpaceManager(SpaceManager spaceManager) |
void |
setSpacePermissionManager(SpacePermissionManager spacePermissionManager) |
void |
setUserAccessor(UserAccessor userAccessor) |
void |
setUserContentManager(UserContentManager userContentManager) |
boolean |
setUserInformation(RemoteUserInformation userInfo) |
boolean |
setUserPreferenceBoolean(String username,
String key,
boolean value) |
boolean |
setUserPreferenceLong(String username,
String key,
long value) |
boolean |
setUserPreferenceString(String username,
String key,
String value) |
public void setUserContentManager(UserContentManager userContentManager)
public void setAttachmentManager(AttachmentManager attachmentManager)
public void setUserAccessor(UserAccessor userAccessor)
public void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
public void setSoapServiceHelper(SoapServiceHelper soapServiceHelper)
public void setSpaceManager(SpaceManager spaceManager)
public void setPermissionManager(PermissionManager permissionManager)
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
@Deprecated public RemoteUser getUser(String username) throws RemoteException
getUserByName(String)
instead.RemoteException
public RemoteConfluenceUser getUserByName(String username) throws RemoteException
RemoteException
public RemoteConfluenceUser getUserByKey(String userKey) throws RemoteException
RemoteException
public boolean addUser(RemoteUser user, String password, boolean notifyUser) throws RemoteException
NotPermittedException
- if you do not have permissions to add the user.RemoteException
public boolean removeUser(String username) throws RemoteException
username
- is the name of the user that is to be deleted from the CONFLUENCE SYSTEM.RemoteException
- if the specified user has authored content. You cannot remove users that have authored content.NotPermittedException
- if you do not have permissions to remove the userpublic boolean editUser(RemoteUser remoteUser) throws RemoteException
RemoteUser
.NotPermittedException
- if you do not have permissions to edit this userRemoteException
- if the no user found with the name specified in remoteUserpublic String[] getUserGroups(String username) throws RemoteException
String
'sRemoteException
- if the no user found with the name specified in remoteUserpublic boolean addUserToGroup(String username, String groupname) throws RemoteException
RemoteException
- if the user or group does not existNotPermittedException
- if you do have permissions to modify the group and hence add members to itpublic boolean removeUserFromGroup(String username, String groupname) throws RemoteException
username
- is the name of the user that is to be deleted from the group with wih name groupname.groupname
- is the name of the group from which the user with name username is to be deleted.RemoteException
- if user/group with the given names does not existNotPermittedException
- if you do not have permissions to remove the user from the specified grouppublic boolean addGroup(String groupname) throws RemoteException
NotPermittedException
- if you do not have permissions to add groups.RemoteException
public boolean removeAllPermissionsForGroup(String groupname) throws RemoteException
groupname
- is the group for which all the permissions has to be deletedRemoteException
- if group with the given name does not existNotPermittedException
- if you do not have permissions to remove all permissions from this grouppublic boolean removeGroup(String groupName, String moveToGroupName) throws RemoteException
groupName
- is the group that is to be deletedmoveToGroupName
- moves members of deleted group to hereRemoteException
- if either group does not existNotPermittedException
- if the current logged in user either does not have permission to remove the group,
or modify the group to move members topublic String[] getGroups() throws RemoteException
RemoteException
- if you are not allowed to retrieve all groupspublic boolean deactivateUser(String username) throws RemoteException
NotPermittedException
- if you do not have permissions to set permissions on the specified userRemoteException
- if user has already been deactivated.public boolean reactivateUser(String username) throws RemoteException
RemoteException
public boolean isActiveUser(String username) throws RemoteException
RemoteException
public String[] getActiveUsers(boolean viewAll) throws RemoteException
RemoteException
public boolean changeMyPassword(String oldPass, String newPass) throws RemoteException
newPass
- must not be null or empty stringNotPermittedException
RemoteException
- if the new password is null or emptypublic boolean changeUserPassword(String username, String newPass) throws RemoteException
newPass
- must not be null or empty stringNotPermittedException
RemoteException
public boolean setUserInformation(RemoteUserInformation userInfo) throws RemoteException
RemoteException
public RemoteUserInformation getUserInformation(String username) throws RemoteException
RemoteException
public boolean setUserPreferenceBoolean(String username, String key, boolean value) throws RemoteException
RemoteException
public boolean getUserPreferenceBoolean(String username, String key) throws RemoteException
RemoteException
public boolean setUserPreferenceLong(String username, String key, long value) throws RemoteException
RemoteException
public long getUserPreferenceLong(String username, String key) throws RemoteException
RemoteException
public boolean setUserPreferenceString(String username, String key, String value) throws RemoteException
RemoteException
public String getUserPreferenceString(String username, String key) throws RemoteException
RemoteException
public boolean hasUser(String username)
public boolean hasGroup(String groupname)
public PersonalInformationManager getPersonalInformationManager()
public void setPersonalInformationManager(PersonalInformationManager personalInformationManager)
public boolean addProfilePicture(String userName, String fileName, String mimeType, byte[] pictureData) throws RemoteException
userName
- The user name of the profilefileName
- File name of the picturemimeType
- Image mime type (must be from image/*)pictureData
- The image dataRemoteException
public boolean renameUser(String oldUsername, String newUsername) throws RemoteException
RemoteException
Copyright © 2003–2016 Atlassian. All rights reserved.