|
||||||||||
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(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)
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)
|
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. |
void |
setAttachmentManager(AttachmentManager attachmentManager)
|
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)
|
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 RemoteUser getUser(String username) throws RemoteException
RemoteException
public boolean addUser(RemoteUser user, String password) 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 NotPermittedException, 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 String[] getUserGroups(String username) throws RemoteException
String
's
RemoteException
- 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 exist
NotPermittedException
- 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 exist
NotPermittedException
- 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 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(String groupName, 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 String[] getGroups() throws RemoteException
Settings.isSharedMode()
is enabled, this will only return the groups that the currently logged in user can see.
RemoteException
- if you are not allowed to retrieve all groupspublic boolean deactivateUser(String username) throws NotPermittedException, 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(String username) throws NotPermittedException, RemoteException
NotPermittedException
RemoteException
public boolean isActiveUser(String username) throws NotPermittedException, RemoteException
NotPermittedException
RemoteException
public String[] getActiveUsers(boolean viewAll) throws RemoteException
RemoteException
public boolean changeMyPassword(String oldPass, String newPass) throws NotPermittedException, RemoteException
newPass
- must not be null or empty string
NotPermittedException
RemoteException
- if the new password is null or emptypublic boolean changeUserPassword(String username, String newPass) throws NotPermittedException, RemoteException
newPass
- must not be null or empty string
NotPermittedException
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 data
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |