|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IWSUserMgmt
User management web service
| Method Summary | |
|---|---|
void |
addRightToRole(String token,
String roleName,
WSTRight right,
String restriction)
adds a right to a role |
void |
addUserToRole(String token,
String userName,
String roleName)
adds a user to a role |
WSTUserCreationResult |
changeUserParameters(String token,
String oldPw,
String newPw1,
String newPw2,
String newUserName,
String newEMail,
String newOpenID)
Changes fundamental user data. |
void |
changeUserSettings(String token,
WSTMap settings)
Changes the settings of the current user. |
void |
changeUserSettingsForUser(String token,
String userName,
WSTMap settings)
Changes the settings of the user with the given name. |
WSTUserSettingsChangeResult |
changeUserSettingsWithValidation(String token,
WSTMap settings)
Changes the settings of of the current user and validates the result. |
WSTUserNameCheckResult |
checkNewUserName(String userName)
Deprecated. use checkUserName(String, String) |
WSTUserNameCheckResult |
checkUserName(String userName,
String userNature)
Deprecated. this method is only used by flashpac to check the validity of a partial user name during typing |
void |
clearUserData(String token,
ArrayList<String> chunks)
Clears a chunk of user data. |
WSTUserCreationResult |
createExternalUser(String token,
String userName,
String eMail)
Creates a new external user with the given data. |
WSTUserCreationResult |
createNewUser(String userName,
String eMail,
String captchaID,
String captchaValue,
String pw1,
String pw2)
Deprecated. use createUser(String, String, String, String, String, String, String) |
WSTKeyholderRole |
createRole(String token,
String roleName,
ArrayList<WSTRight> rights)
creates a new keyholder role |
WSTUserCreationResult |
createUser(String userName,
String eMail,
String captchaID,
String captchaValue,
String pw1,
String pw2,
String userNature)
Creates a new user with the given data |
WSTUserCreationResult |
createUserWithAffiliate(String userName,
String eMail,
String pw,
WSTMap settings,
String affiliateID,
String userNature)
Creates a new user with the given data. |
WSTUserCreationResult |
createUserWithSettings(String userName,
String eMail,
String pw,
WSTMap settings,
String userNature)
Creates a new user with the given data. |
void |
deactivateUser(String token,
String pw)
Deactivates/disables the account of the user with the given name. |
void |
deleteRole(String token,
String roleName)
Deletes the given role. |
void |
deleteUserAccount(String token,
String pw)
Deletes a user account and all related user data forever. |
void |
disableUserAccount(String token,
String userName)
Deactivates/disables the account of the user with the given name. |
void |
enableUserAccount(String token,
String userName)
Re-enables the account of the user with the given name. |
ArrayList<WSTAcquaintance> |
getAcquaintances(String token)
Returns a list of all acquaintances of the current user. |
ArrayList<WSTAcquaintance> |
getAcquaintancesOfUser(String token,
String user)
Returns a list of all acquaintances of the current user. |
ArrayList<WSTKeyholderRole> |
getAssignableRoles(String token)
Returns all user roles that that calling user can assign using addUserToRole(String, String, String) or removeUserFromRole(String, String, String) |
ArrayList<WSTKeyholderRole> |
getAvailableRoles(String token)
Returns all user roles with their assigned rights |
WSTKeyholderRole |
getRole(String token,
String roleName)
Returns the role with the given name. |
WSTUser |
getUser(String token)
Returns the current user |
WSTUser |
getUserByExternalID(String token,
String externalID,
String externalOrigin)
Returns a user for a given externalID and userNature. |
WSTUser |
getUserByName(String token,
String userName)
Returns a user for a given name and an optional name space. |
ArrayList<String> |
getUserNameList(String token,
String hint,
int maxResults)
Returns a list of user names. |
WSTUserNature |
getUserNature(String token)
Deprecated. use IWSReaktorMgmt.getNature(String) instead |
WSTUserNature |
getUserNatureForAffiliateAndCountry(String affiliateID,
String countryCode)
Deprecated. |
ArrayList<WSTUserNature> |
getUserNatures()
Deprecated. use IWSReaktorMgmt.getNatures() instead |
HashMap<String,String> |
getUserSettings(String token)
Returns the settings of the current user. |
ArrayList<WSTUser> |
getUsersInRole(String token,
String roleName)
Get all users in the given role. |
boolean |
hasRight(String token,
WSTRight right)
checks if the token has the given right |
void |
mergeUserAccounts(String token,
String oldUserName,
String targetUserName)
Merge one user account into another transferring all documents, lists, settings, etc. |
WSTUserCreationResult |
performPasswordReset(String token,
String pw1,
String pw2)
Performs a password reset. |
WSTUserCreationResult |
promoteAnonymousUser(String token,
String userName,
String eMail,
String captchaID,
String captchaValue,
String pw1,
String pw2)
Promotes the current, anonymous user to the status of a known user. |
void |
removeAcquaintance(String token,
String user)
Removes an acquaintance. |
void |
removeRightFromRole(String token,
String roleName,
WSTRight right,
String restriction)
removes a right from a role |
void |
removeUserFromRole(String token,
String userName,
String roleName)
removes a user from a role |
boolean |
requestAcquaintance(String token,
String user,
WSTAcquaintanceType type,
String description)
Request that an acquaintance relationship between two users be established. |
void |
requestPasswordReset(String userName)
Deprecated. use requestPasswordResetByNature(String, String) |
void |
requestPasswordResetByNature(String userName,
String userNature)
Requests that the user should get the opportunity to reset his password. |
WSTUserCreationResult |
requestUserCreation(String userName,
String eMail,
String captchaID,
String captchaValue,
String pw1,
String pw2,
String userNature)
Requests a user creation with the given data. |
| Method Detail |
|---|
@Deprecated
ArrayList<WSTUserNature> getUserNatures()
throws WSException
IWSReaktorMgmt.getNatures() instead
null
WSException - should only occur on internal errors
@Deprecated
WSTUserNature getUserNature(String token)
throws WSException
IWSReaktorMgmt.getNature(String) instead
token - a valid session ID, must not be null
null
WSException - should only occur on internal errors
@Deprecated
WSTUserNature getUserNatureForAffiliateAndCountry(String affiliateID,
String countryCode)
throws WSException
affiliateID - ID of the affiliate, must not be nullcountryCode - the country where the user/device is located (e.g. determined from the locale), must not be null
null
WSException
@Deprecated
WSTUserNameCheckResult checkNewUserName(String userName)
throws WSException
checkUserName(String, String)
userName - the user name
WSException
@Deprecated
WSTUserNameCheckResult checkUserName(String userName,
String userNature)
throws WSException
userName - userName the user nameuserNature - userNature name to be checked against
WSException
@Deprecated
WSTUserCreationResult createNewUser(String userName,
String eMail,
String captchaID,
String captchaValue,
String pw1,
String pw2)
throws WSException
createUser(String, String, String, String, String, String, String)
WSException
WSTUserCreationResult createUser(String userName,
String eMail,
String captchaID,
String captchaValue,
String pw1,
String pw2,
String userNature)
throws WSException
userName - the user name, must be valid and available, must not be longer than 1024 byteseMail - the user's email address, must not be longer than 1024 bytescaptchaID - the ID of the captcha delivered to the usercaptchaValue - the value in the captchapw1 - the password, SHA1-hashed (40 bytes)pw2 - the password again, SHA1-hashed (40 bytes)userNature - the nature of the new user
WSException
WSTUserCreationResult requestUserCreation(String userName,
String eMail,
String captchaID,
String captchaValue,
String pw1,
String pw2,
String userNature)
throws WSException
userName - the user name, must be valid and available, must not be longer than 1024 byteseMail - the user's email address, must not be longer than 1024 bytescaptchaID - the ID of the captcha delivered to the usercaptchaValue - the value in the captchapw1 - the password, SHA1-hashed (40 bytes)pw2 - the password again, SHA1-hashed (40 bytes)userNature - the nature of the new user
WSException
WSTUserCreationResult createUserWithSettings(String userName,
String eMail,
String pw,
WSTMap settings,
String userNature)
throws WSException
userName - the user name, must be valid and available, must not be longer than 1024 byteseMail - the user's email address, must not be longer than 1024 bytespw - the password, SHA1-hashed (40 bytes)settings - non-null additional settings like address etc.userNature - the nature of the new user
WSException
WSTUserCreationResult createUserWithAffiliate(String userName,
String eMail,
String pw,
@Nullable
WSTMap settings,
String affiliateID,
String userNature)
throws WSException
userName - the user name, must be valid and available, must not be longer than 1024 byteseMail - the user's email address, must not be longer than 1024 bytespw - the password, SHA1-hashed (40 bytes)settings - non-null additional settings like address etc.affiliateID - an affiliate id.userNature - the nature of the new user
WSException
WSTUserCreationResult createExternalUser(String token,
String userName,
String eMail)
throws WSException
token - a valid token identifying a user with the right WSTRight.MANAGE_EXTERNAL_USERSuserName - the unique user identifier that is used to login at the remote system, e.g. an email (which may not be the primary external ID!!!), must not be
nulleMail - the user's email address, must not be longer than 1024 bytes
WSTUserCreationResult.OK if the user was successfully created or updated, otherwise WSTUserCreationResult.FAILURE
WSException
WSTUserCreationResult promoteAnonymousUser(String token,
String userName,
String eMail,
@Nullable
String captchaID,
@Nullable
String captchaValue,
String pw1,
String pw2)
throws WSException
token - a valid session ID, must not be nulluserName - the user name to be used, must be valid and available, must not be longer than 1024 byteseMail - the email address, may be null, must not be longer than 1024 bytescaptchaID - the ID of the captcha delivered to the usercaptchaValue - the value in the captchapw1 - the password, SHA1-hashed (40 bytes)pw2 - the password again, SHA1-hashed (40 bytes)
WSException
@Deprecated
void requestPasswordReset(String userName)
throws WSException
requestPasswordResetByNature(String, String)
userName - the name of the user that forgot his password
WSException
void requestPasswordResetByNature(String userName,
String userNature)
throws WSException
userName - the name of the user that forgot his passworduserNature - the name of the current userNature
WSException
WSTUserCreationResult performPasswordReset(String token,
String pw1,
String pw2)
throws WSException
token - the session ID that identifies the user.pw1 - the password, SHA1-hashed (40 bytes)pw2 - the password again, SHA1-hashed (40 bytes)
WSException
HashMap<String,String> getUserSettings(String token)
throws WSException
token - the session if, must not be null and valid
WSException
void changeUserSettings(String token,
WSTMap settings)
throws WSException
token - the session ID, must not be nullsettings - the settings, may be null or empty, all keys and values must not be longer than 1024 bytes
WSException
WSTUserSettingsChangeResult changeUserSettingsWithValidation(String token,
WSTMap settings)
throws WSException
token - the session ID, must not be nullsettings - the settings, may be null or empty, all keys and values must not be longer than 1024 bytes
WSException
void changeUserSettingsForUser(String token,
String userName,
WSTMap settings)
throws WSException
token - a valid token of a user with the right WSTRight.EDIT_USERS.userName - the name of the usersettings - the settings, may be null or empty, all keys and values must not be longer than 1024 bytes
WSException
WSTUserCreationResult changeUserParameters(String token,
String oldPw,
String newPw1,
String newPw2,
String newUserName,
String newEMail,
String newOpenID)
throws WSException
token - the session ID of the user, must be valid and != nulloldPw - the SHA1 hash of the old password, must be != null and validnewPw1 - the password, SHA1-hashed (40 bytes), may be null to indicate no changenewPw2 - the password again, SHA1-hashed (40 bytes), may be null to indicate no changenewUserName - deprecated, this parameter must be the empty string, null or the old userName which results in NO changenewEMail - the new eMail address, may be null to indicate no changenewOpenID - deprecated
WSTUserCreationResult
WSException
WSTKeyholderRole createRole(String token,
String roleName,
ArrayList<WSTRight> rights)
throws WSException
token - the token of the user that has the right WSTRight.EDIT_ROLEroleName - name of the new rolerights - the rights for the role see WSTRight
WSException - if an exceptions occurs
void addUserToRole(String token,
String userName,
String roleName)
throws WSException
token - the token of the user that has the right WSTRight.ASSIGN_ROLE_TO_USER with the possible restriction that is only applies to the given roleuserName - the name of the userroleName - the name of the role
WSException - if an exceptions occurs
void removeUserFromRole(String token,
String userName,
String roleName)
throws WSException
token - the token of the user that has the right WSTRight.ASSIGN_ROLE_TO_USER with the possible restriction that is only applies to the given roleuserName - the name of the userroleName - the name of the role
WSException - if an exceptions occurs
ArrayList<WSTKeyholderRole> getAvailableRoles(String token)
throws WSException
token - must be a valid token
WSException - if an error occurs
ArrayList<WSTKeyholderRole> getAssignableRoles(String token)
throws WSException
addUserToRole(String, String, String) or removeUserFromRole(String, String, String)
token - must be a valid token
WSException - if an error occurs
WSTKeyholderRole getRole(String token,
String roleName)
throws WSException
token - must be a valid tokenroleName - the name of the role
null
WSException - if the given name is unknown
boolean hasRight(String token,
WSTRight right)
throws WSException
token - must be a valid tokenright - the right. See WSTRight
WSException
void addRightToRole(String token,
String roleName,
WSTRight right,
String restriction)
throws WSException
token - the token of the user that has the right WSTRight.EDIT_ROLEroleName - name of the roleright - the new right. See WSTRightrestriction - a restriction on the right (e.g. a role name for WSTRight.ASSIGN_ROLE_TO_USER
WSException - if an exception occurs
void removeRightFromRole(String token,
String roleName,
WSTRight right,
String restriction)
throws WSException
token - the token of the user that has the right WSTRight.EDIT_ROLEroleName - name of the roleright - the new right. See WSTRightrestriction - a restriction on the right (e.g. a role name for WSTRight.ASSIGN_ROLE_TO_USER
WSException - if an exception occurs
void deleteRole(String token,
String roleName)
throws WSException
token - the token of a user that has the right WSTRight.EDIT_ROLEroleName - the role to delete.
WSException - in case of errors.
ArrayList<WSTUser> getUsersInRole(String token,
String roleName)
throws WSException
token - the token of a user that has the right WSTRight.EDIT_ROLEroleName - the role
WSException - in case of errors
void deactivateUser(String token,
String pw)
throws WSException
token - a valid user tokenpw - the SHA1 hash of the old password
WSException - in case of errors.
void deleteUserAccount(String token,
String pw)
throws WSException
token - a valid user tokenpw - the SHA1 hash of the old password
WSException
void disableUserAccount(String token,
String userName)
throws WSException
token - a valid token of a user with the right WSTRight.EDIT_USERS.userName - the name of the user to deactivate.
WSException - in case of errors.
void enableUserAccount(String token,
String userName)
throws WSException
deactivateUser(String, String) or
disableUserAccount(String, String) have been called.
token - a valid token of a user with the right WSTRight.EDIT_USERS.userName - the name of the user to activate.
WSException - in case of errors.
WSTUser getUser(String token)
throws WSException
token -
WSException
WSTUser getUserByName(String token,
String userName)
throws WSException
WSTRight.EDIT_USERS or WSTRight.MANAGE_EXTERNAL_USERS.
token - token must be a valid tokenuserName - the name of the requested user. If the given user comes from another name space, the name space has to be prepended to the user name followed by a colon,
e.g. "FACEBOOK:peter" for peter from facebook
null
WSException
WSTUser getUserByExternalID(String token,
String externalID,
String externalOrigin)
throws WSException
WSTRight.MANAGE_EXTERNAL_USERS.
token - token must be a valid tokenexternalID - the external ID of the requested userexternalOrigin - the external origin of the user, e.g. FACEBOOK
null
WSException
ArrayList<String> getUserNameList(String token,
String hint,
int maxResults)
throws WSException
token - a valid session ID of the current userhint - a hint for searching for users, may be empty or null to request all users. Currently, hints are always interpreted as the first characters of the user names to
be returned (i.e. for an autocompleter field)maxResults - maximum number of users to be returned
WSException
void clearUserData(String token,
ArrayList<String> chunks)
throws WSException
token - the session ID, must not be nullchunks - a list of data chunks to be cleared
WSException
boolean requestAcquaintance(String token,
String user,
WSTAcquaintanceType type,
String description)
throws WSException
token - the session ID, must not be nulluser - the other usertype - the type of the acquaintancedescription - a description for the acquaintance
WSException
ArrayList<WSTAcquaintance> getAcquaintances(String token)
throws WSException
token - the session ID, must not be null
WSException
ArrayList<WSTAcquaintance> getAcquaintancesOfUser(String token,
String user)
throws WSException
token - the session ID, must not be nulluser - the user whose acquaintances you want to see
WSException
void removeAcquaintance(String token,
String user)
throws WSException
token - the session ID, must not be nulluser - the guy you want to get rid of
WSException
void mergeUserAccounts(String token,
String oldUserName,
String targetUserName)
throws WSException
token - a token with right EDIT_USERSoldUserName - the user name of the old/source accounttargetUserName - the user name of the new/target account
WSException - in case of errors
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||