Package org.wso2.am.admin.clients.user
Class RemoteUserStoreManagerServiceClient
- java.lang.Object
-
- org.wso2.am.admin.clients.user.RemoteUserStoreManagerServiceClient
-
public class RemoteUserStoreManagerServiceClient extends Object
this client is used for update user claims, and related operations
-
-
Constructor Summary
Constructors Constructor Description RemoteUserStoreManagerServiceClient(String backEndUrl, String sessionCookie)Create Remote user store admin clientRemoteUserStoreManagerServiceClient(String backEndUrl, String userName, String password)Create Remote user store admin client using username and password
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRole(String roleName, String[] userList, org.wso2.carbon.um.ws.api.stub.PermissionDTO[] permissions)voidaddUser(String userName, String credential, String[] roleList, org.wso2.carbon.um.ws.api.stub.ClaimValue[] claimValues, String profileName, boolean requirePasswordChange)add user to user storevoiddeleteRole(String roleName)voiddeleteUser(String userName)String[]getProfileNames(String userName)get available profilesString[]getRoleListOfUser(String userName)org.wso2.carbon.um.ws.api.stub.ClaimValue[]getUserClaimValuesForClaims(String userName, String[] claims, String profileName)get user claim values for given claim URL'svoidremoveUser(String user)Used to delete user.voidsetUserClaimValue(String username, String claim, String value, String profile)set user claim valuevoidupdateRoleListOfUser(String userName, String[] deletedRoles, String[] newRoles)voidupdateUser(String user, String password)
-
-
-
Constructor Detail
-
RemoteUserStoreManagerServiceClient
public RemoteUserStoreManagerServiceClient(String backEndUrl, String sessionCookie) throws org.apache.axis2.AxisFault
Create Remote user store admin client- Parameters:
backEndUrl- - url to logsessionCookie- - session cookie- Throws:
org.apache.axis2.AxisFault
-
RemoteUserStoreManagerServiceClient
public RemoteUserStoreManagerServiceClient(String backEndUrl, String userName, String password) throws org.apache.axis2.AxisFault
Create Remote user store admin client using username and password- Parameters:
backEndUrl-userName-password-- Throws:
org.apache.axis2.AxisFault
-
-
Method Detail
-
addUser
public 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.core.UserStoreException, RemoteException, org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException
add user to user store- Parameters:
userName-credential- - passwordroleList- - permission rolesclaimValues- - claim valuesprofileName- - user profilerequirePasswordChange-- Throws:
org.wso2.carbon.user.core.UserStoreExceptionRemoteExceptionorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException
-
getProfileNames
public String[] getProfileNames(String userName) throws RemoteException, org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException
get available profiles- Parameters:
userName-- Returns:
- Throws:
RemoteExceptionorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException
-
getUserClaimValuesForClaims
public 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
get user claim values for given claim URL's- Parameters:
userName-claims-profileName-- Returns:
- Throws:
RemoteExceptionorg.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException
-
setUserClaimValue
public void setUserClaimValue(String username, String claim, String value, String profile) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
set user claim value- Parameters:
username-claim- - claim URIvalue- - value of the claimprofile- - user profile- Throws:
org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteException
-
removeUser
public void removeUser(String user) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
Used to delete user.- Parameters:
user-- Throws:
org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteException
-
updateUser
public void updateUser(String user, String password) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
- Parameters:
user-password-- Throws:
org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteException
-
updateRoleListOfUser
public void updateRoleListOfUser(String userName, String[] deletedRoles, String[] newRoles) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
- Throws:
org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteException
-
getRoleListOfUser
public String[] getRoleListOfUser(String userName) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
- Throws:
org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteException
-
addRole
public 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
- Throws:
org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteException
-
deleteRole
public void deleteRole(String roleName) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
- Throws:
org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteException
-
deleteUser
public void deleteUser(String userName) throws org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionException, RemoteException
- Throws:
org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceUserStoreExceptionExceptionRemoteException
-
-