public class RemoteUserStoreManagerServiceClient extends Object
| Constructor and Description |
|---|
RemoteUserStoreManagerServiceClient(String backEndUrl,
String sessionCookie) |
RemoteUserStoreManagerServiceClient(String backEndUrl,
String userName,
String password) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRole(String roleName,
String[] userList,
org.wso2.carbon.um.ws.api.stub.PermissionDTO[] permissions)
Adds a role to the system.
|
void |
addUser(String userName,
String credential,
String[] roleList,
org.wso2.carbon.um.ws.api.stub.ClaimValue[] claimValues,
String profileName,
boolean requirePasswordChange)
Add a user to the user store.
|
boolean |
authenticate(String userName,
String credential)
validate whether the user is authenticated
|
void |
deleteRole(String roleName)
Delete the role with the given role name
|
void |
deleteUser(String username)
Delete the user with the given user name
|
void |
deleteUserClaimValue(String userName,
String claimUri,
String profileName)
Delete a single user claim value
|
void |
deleteUserClaimValues(String userName,
String[] claims,
String profileName)
Delete a single user claim values
|
String[] |
getAllProfileNames()
Retrieve all available profile names
|
String[] |
getHybridRoles()
Retrieve hybrid roles
|
long |
getPasswordExpirationTime(String userName)
Function to get password expiration time of a given user
|
String[] |
getProfileNames(String userName) |
org.wso2.carbon.um.ws.api.stub.ArrayOfString[] |
getProperties(org.apache.axiom.om.OMElement tenant)
NOTE : getProperties is not implemented in service implementation
|
String[] |
getRoleListOfUser(String userName)
Get roles of a user
|
String[] |
getRoleNames()
Get all role names
|
int |
getTenantId()
Retrieve the tenant id associated with the user store manager
|
int |
getTenantIdofUser(String userName)
Get tenant id of the given user
NOTE : This method works only if the tenant is super tenant
|
String |
getUserClaimValue(String userName,
String claim,
String profileName)
Get user claim value in the profile.
|
org.wso2.carbon.um.ws.api.stub.ClaimDTO[] |
getUserClaimValues(String userName,
String profileName)
Get all claim values of the user in the profile.
|
org.wso2.carbon.um.ws.api.stub.ClaimValue[] |
getUserClaimValuesForClaims(String userName,
String[] claims,
String profileName)
Get user claim values in the profile.
|
int |
getUserId(String userName)
Returns the user id if available
|
String[] |
getUserList(String claimUri,
String claimValue,
String profileName)
Retrieves a list of user names for given user claim value
|
String[] |
getUserListOfRole(String roleName)
get list of users belong to given role
|
boolean |
isExistingRole(String roleName)
Checks whether the role name is in the user store
|
boolean |
isExistingUser(String userName)
Checks whether the user is in the user store
|
boolean |
isReadOnly() |
String[] |
listUsers(String filter,
int maxLimit)
Retrieves a list of user names upto a maximum limit
|
void |
setUserClaimValue(String userName,
String claimURI,
String claimValue,
String profileName)
Set a single user claim value
|
void |
setUserClaimValues(String userName,
org.wso2.carbon.um.ws.api.stub.ClaimValue[] claims,
String profileName)
Set many user claim values
|
void |
updateCredential(String userName,
String newCredential,
String oldCredential)
Update the credential/password of the user
|
void |
updateCredentialByAdmin(String userName,
String newCredential)
Update credential/password by the admin of another user
|
void |
updateRoleListOfUser(String userName,
String[] deleteRoles,
String[] newRoles)
Updates roles of a user
|
void |
updateRoleName(String oldRoleName,
String newRoleName)
Update the role name of given role
|
void |
updateUserListOfRole(String roleName,
String[] deleteUsers,
String[] newUsers)
Updates users in a Role
|
public RemoteUserStoreManagerServiceClient(String backEndUrl, String sessionCookie) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic void addRole(String roleName, String[] userList, org.wso2.carbon.um.ws.api.stub.PermissionDTO[] permissions) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
roleName - The role nameuserList - the list of the users.permissions - The permissions of the role.org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic void addUser(String userName, String credential, String[] roleList, org.wso2.carbon.um.ws.api.stub.ClaimValue[] claimValues, String profileName, boolean requirePasswordChange) throws org.wso2.carbon.user.api.UserStoreException, RemoteException, org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException
userName - User name of the usercredential - The credential/password of the userroleList - The roles that user belongsclaimValues - Properties of the userprofileName - The name of the profile where claims should be addedrequirePasswordChange - Require the password changeorg.wso2.carbon.user.api.UserStoreExceptionRemoteExceptionorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionpublic void setUserClaimValue(String userName, String claimURI, String claimValue, String profileName) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
userName - The user nameclaimURI - The claim URIclaimValue - The valueprofileName - The profile name, can be null. If null the default profile is consideredorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic void setUserClaimValues(String userName, org.wso2.carbon.um.ws.api.stub.ClaimValue[] claims, String profileName) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
userName - The user nameclaims - Array of claims against valuesprofileName - The profile name, can be null. If null the default profile is consideredorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic boolean authenticate(String userName, String credential) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
userName - The user namecredential - The credential of a userorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException - An unexpected exception has occuredRemoteException - An unexpected exception has occuredpublic void updateCredential(String userName, String newCredential, String oldCredential) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
userName - The user namenewCredential - The new credential/passwordoldCredential - The old credential/passwordorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic void updateCredentialByAdmin(String userName, String newCredential) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
userName - The user namenewCredential - The new credential/passwordorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic void updateRoleListOfUser(String userName, String[] deleteRoles, String[] newRoles) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
userName - The user name of the user where role list is updateddeleteRoles - The array of role names to be removednewRoles - The array of role names to be addedorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic void updateUserListOfRole(String roleName, String[] deleteUsers, String[] newUsers) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
roleName - The role name to be updateddeleteUsers - The array of user names to be deletednewUsers - The array of of user names to be addedorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic void updateRoleName(String oldRoleName, String newRoleName) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
oldRoleName - old role namenewRoleName - new role nameorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic boolean isExistingRole(String roleName) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
roleName - role nameorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic boolean isExistingUser(String userName) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
userName - org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic boolean isReadOnly()
throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException,
RemoteException
org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic String[] listUsers(String filter, int maxLimit) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
filter - The string to filter out usermaxLimit - The max item limit. If -1 then system maximum limit will be used. If the
given value is greater than the system configured max limit it will be resetted to
the system configured max limit.org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic String[] getProfileNames(String userName) throws RemoteException, org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException
RemoteExceptionorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionpublic String[] getAllProfileNames() throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic String[] getRoleListOfUser(String userName) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
userName - org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic String[] getRoleNames() throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic String[] getHybridRoles() throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic String getUserClaimValue(String userName, String claim, String profileName) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
userName - user nameclaim - The claim URIprofileName - The profile name, can be null. If null the default profile is considered.org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic org.wso2.carbon.um.ws.api.stub.ClaimDTO[] getUserClaimValues(String userName, String profileName) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
userName - user nameprofileName - The profile name, can be null. If null the default profile is considered.org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic org.wso2.carbon.um.ws.api.stub.ClaimValue[] getUserClaimValuesForClaims(String userName, String[] claims, String profileName) throws RemoteException, org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException
userName - The user nameclaims - The claim URIsprofileName - The profile name, can be null. If null the default profile is considered.RemoteExceptionorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionpublic int getUserId(String userName) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
userName - user nameorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic String[] getUserList(String claimUri, String claimValue, String profileName) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
claimUri - claim uriclaimValue - claim valueprofileName - profile name, can be null. If null the default profile is considered.org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic String[] getUserListOfRole(String roleName) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
roleName - role nameorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic long getPasswordExpirationTime(String userName) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
userName - user nameorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic org.wso2.carbon.um.ws.api.stub.ArrayOfString[] getProperties(org.apache.axiom.om.OMElement tenant)
throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException,
RemoteException
tenant - org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic int getTenantId()
throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException,
RemoteException
org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic int getTenantIdofUser(String userName) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
userName - org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException - If the realm is not super tenant's this method should throw exceptionRemoteExceptionpublic void deleteUser(String username) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
username - user nameorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic void deleteRole(String roleName) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
roleName - The role nameorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic void deleteUserClaimValue(String userName, String claimUri, String profileName) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
userName - The user nameclaimUri - Name of the claimprofileName - The profile name, can be null. If null the default profile is considered.org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionpublic void deleteUserClaimValues(String userName, String[] claims, String profileName) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
userName - The user nameclaims - array of claim URIsprofileName - The profile name, can be null. If null the default profile is considered.org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteExceptionCopyright © 2007–2016 WSO2. All rights reserved.