|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.rpc.soap.services.UsersSoapService
public class UsersSoapService
Constructor Summary | |
---|---|
UsersSoapService()
|
Method Summary | |
---|---|
boolean |
addGroup(java.lang.String groupname)
Adds the specified group. |
boolean |
addProfilePicture(java.lang.String userName,
java.lang.String fileName,
java.lang.String mimeType,
byte[] pictureData)
Add a profile picture to a user's profile |
boolean |
addUser(RemoteUser user,
java.lang.String password,
boolean notifyUser)
Adds user. |
boolean |
addUserToGroup(java.lang.String username,
java.lang.String groupname)
Add user to the specified group. |
boolean |
changeMyPassword(java.lang.String oldPass,
java.lang.String newPass)
Changes your password. |
boolean |
changeUserPassword(java.lang.String username,
java.lang.String newPass)
Changes the user's password. |
boolean |
deactivateUser(java.lang.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 . |
java.lang.String[] |
getActiveUsers(boolean viewAll)
|
java.lang.String[] |
getGroups()
Returns all groups. |
PersonalInformationManager |
getPersonalInformationManager()
|
RemoteUser |
getUser(java.lang.String username)
Deprecated. since 5.2. Use getUserByName(String) instead. |
RemoteConfluenceUser |
getUserByKey(java.lang.String userKey)
|
RemoteConfluenceUser |
getUserByName(java.lang.String username)
|
java.lang.String[] |
getUserGroups(java.lang.String username)
Fetches the groups that the specified user belongs to. |
RemoteUserInformation |
getUserInformation(java.lang.String username)
|
boolean |
getUserPreferenceBoolean(java.lang.String username,
java.lang.String key)
|
long |
getUserPreferenceLong(java.lang.String username,
java.lang.String key)
|
java.lang.String |
getUserPreferenceString(java.lang.String username,
java.lang.String key)
|
boolean |
hasGroup(java.lang.String groupname)
|
boolean |
hasUser(java.lang.String username)
|
boolean |
isActiveUser(java.lang.String username)
|
boolean |
reactivateUser(java.lang.String username)
|
boolean |
removeAllPermissionsForGroup(java.lang.String groupname)
Delete all permissions (global and space level) permissions for the group with the given name. |
boolean |
removeGroup(java.lang.String groupName,
java.lang.String moveToGroupName)
Delete group with name groupname. |
boolean |
removeUser(java.lang.String username)
Delete the given user from the Confluence System. |
boolean |
removeUserFromGroup(java.lang.String username,
java.lang.String groupname)
Delete the user with name username from the group with name groupname. |
boolean |
renameUser(java.lang.String oldUsername,
java.lang.String newUsername)
|
java.lang.String[] |
renameUsers(java.util.Map<java.lang.String,java.lang.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(java.lang.String username,
java.lang.String key,
boolean value)
|
boolean |
setUserPreferenceLong(java.lang.String username,
java.lang.String key,
long value)
|
boolean |
setUserPreferenceString(java.lang.String username,
java.lang.String key,
java.lang.String value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UsersSoapService()
Method Detail |
---|
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(java.lang.String username) throws RemoteException
getUserByName(String)
instead.
RemoteException
public RemoteConfluenceUser getUserByName(java.lang.String username) throws RemoteException
RemoteException
public RemoteConfluenceUser getUserByKey(java.lang.String userKey) throws RemoteException
RemoteException
public boolean addUser(RemoteUser user, java.lang.String password, boolean notifyUser) throws RemoteException
NotPermittedException
- if you do not have permissions to add the user.
RemoteException
public boolean removeUser(java.lang.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 user
RemoteException
- if the no user found with the name specified in remoteUserpublic java.lang.String[] getUserGroups(java.lang.String username) throws RemoteException
String
's
RemoteException
- if the no user found with the name specified in remoteUserpublic boolean addUserToGroup(java.lang.String username, java.lang.String groupname) throws RemoteException
RemoteException
- if the user or group does not exist
NotPermittedException
- if you do have permissions to modify the group and hence add members to itpublic boolean removeUserFromGroup(java.lang.String username, java.lang.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 exist
NotPermittedException
- if you do not have permissions to remove the user from the specified grouppublic boolean addGroup(java.lang.String groupname) throws RemoteException
NotPermittedException
- if you do not have permissions to add groups.
RemoteException
public boolean removeAllPermissionsForGroup(java.lang.String groupname) throws RemoteException
groupname
- is the group for which all the permissions has to be deleted
RemoteException
- if group with the given name does not exist
NotPermittedException
- if you do not have permissions to remove all permissions from this grouppublic boolean removeGroup(java.lang.String groupName, java.lang.String moveToGroupName) throws RemoteException
groupName
- is the group that is to be deletedmoveToGroupName
- moves members of deleted group to here
RemoteException
- if either group does not exist
NotPermittedException
- if the current logged in user either does not have permission to remove the group,
or modify the group to move members topublic java.lang.String[] getGroups() throws RemoteException
RemoteException
- if you are not allowed to retrieve all groupspublic boolean deactivateUser(java.lang.String username) throws RemoteException
NotPermittedException
- if you do not have permissions to set permissions on the specified user
RemoteException
- if user has already been deactivated.public boolean reactivateUser(java.lang.String username) throws RemoteException
RemoteException
public boolean isActiveUser(java.lang.String username) throws RemoteException
RemoteException
public java.lang.String[] getActiveUsers(boolean viewAll) throws RemoteException
RemoteException
public boolean changeMyPassword(java.lang.String oldPass, java.lang.String newPass) throws RemoteException
newPass
- must not be null or empty string
NotPermittedException
RemoteException
- if the new password is null or emptypublic boolean changeUserPassword(java.lang.String username, java.lang.String newPass) throws RemoteException
newPass
- must not be null or empty string
NotPermittedException
RemoteException
public boolean setUserInformation(RemoteUserInformation userInfo) throws RemoteException
RemoteException
public RemoteUserInformation getUserInformation(java.lang.String username) throws RemoteException
RemoteException
public boolean setUserPreferenceBoolean(java.lang.String username, java.lang.String key, boolean value) throws RemoteException
RemoteException
public boolean getUserPreferenceBoolean(java.lang.String username, java.lang.String key) throws RemoteException
RemoteException
public boolean setUserPreferenceLong(java.lang.String username, java.lang.String key, long value) throws RemoteException
RemoteException
public long getUserPreferenceLong(java.lang.String username, java.lang.String key) throws RemoteException
RemoteException
public boolean setUserPreferenceString(java.lang.String username, java.lang.String key, java.lang.String value) throws RemoteException
RemoteException
public java.lang.String getUserPreferenceString(java.lang.String username, java.lang.String key) throws RemoteException
RemoteException
public boolean hasUser(java.lang.String username)
public boolean hasGroup(java.lang.String groupname)
public PersonalInformationManager getPersonalInformationManager()
public void setPersonalInformationManager(PersonalInformationManager personalInformationManager)
public boolean addProfilePicture(java.lang.String userName, java.lang.String fileName, java.lang.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 data
RemoteException
public boolean renameUser(java.lang.String oldUsername, java.lang.String newUsername) throws RemoteException
RemoteException
public java.lang.String[] renameUsers(java.util.Map<java.lang.String,java.lang.String> oldUsernamesToNewUsernames)
oldUsernamesToNewUsernames
- key value pairs where old username is the key and new username is the value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |