public class UserManagementClient extends Object
| Constructor and Description |
|---|
UserManagementClient(String backendURL,
String sessionCookie) |
UserManagementClient(String backendURL,
String userName,
String password) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInternalRole(String roleName,
String[] userList,
String[] permissions) |
void |
addRemoveRolesOfUser(String userName,
String[] newRoles,
String[] deletedRoles) |
void |
addRemoveUsersOfRole(String roleName,
String[] newUsers,
String[] deletedUsers) |
void |
addRole(String roleName,
String[] userList,
String[] permissions) |
void |
addRole(String roleName,
String[] userList,
String[] permissions,
boolean isSharedRole) |
void |
addUser(String userName,
String password,
String[] roles,
String profileName) |
void |
bulkImportUsers(String filename,
DataHandler handler,
String defaultPassword) |
void |
changePassword(String userName,
String newPassword) |
void |
changePasswordByUser(String userName,
String oldPassword,
String newPassword) |
void |
deleteRole(String roleName) |
void |
deleteUser(String userName) |
org.wso2.carbon.user.mgt.stub.types.carbon.FlaggedName[] |
getAllRolesNames(String filter,
int limit) |
org.wso2.carbon.user.mgt.stub.types.carbon.FlaggedName[] |
getAllSharedRoleNames(String filter,
int limit) |
org.wso2.carbon.user.mgt.stub.types.carbon.UIPermissionNode |
getAllUIPermissions() |
org.wso2.carbon.user.mgt.stub.types.carbon.UIPermissionNode |
getRolePermissions(String roleName) |
org.wso2.carbon.user.mgt.stub.types.carbon.FlaggedName[] |
getRolesOfCurrentUser() |
org.wso2.carbon.user.mgt.stub.types.carbon.FlaggedName[] |
getRolesOfUser(String userName,
String filter,
int limit) |
org.apache.axis2.client.Stub |
getServiceStub() |
HashSet<String> |
getUserList() |
org.wso2.carbon.user.mgt.stub.types.carbon.UserRealmInfo |
getUserRealmInfo() |
org.wso2.carbon.user.mgt.stub.types.carbon.FlaggedName[] |
getUsersOfRole(String roleName,
String filter,
int limit) |
Boolean |
hasMultipleUserStores() |
boolean |
isSharedRolesEnabled() |
org.wso2.carbon.user.mgt.stub.types.carbon.FlaggedName[] |
listAllUsers(String filter,
int limit) |
org.wso2.carbon.user.mgt.stub.types.carbon.FlaggedName[] |
listRoles(String filter,
int limit)
Lists all roles caught by wither with in limit
|
org.wso2.carbon.user.mgt.stub.types.carbon.FlaggedName[] |
listUserByClaim(org.wso2.carbon.user.mgt.stub.types.carbon.ClaimValue claimValue,
String filter,
int maxLimit) |
String[] |
listUsers(String filter,
int limit)
Lists all users with in filter and limit
|
boolean |
roleNameExists(String roleName) |
void |
setRoleUIPermission(String roleName,
String[] rawResources) |
static org.wso2.carbon.user.mgt.stub.types.carbon.ClaimValue[] |
toADBClaimValues(org.wso2.carbon.user.mgt.stub.types.carbon.ClaimValue[] claimValues) |
void |
updateRoleName(String roleName,
String newRoleName) |
void |
updateRolesOfUser(String userName,
String[] newUserList) |
void |
updateUserListOfRole(String roleName,
String[] addingUsers,
String[] deletingUsers) |
void |
updateUsersOfRole(String roleName,
org.wso2.carbon.user.mgt.stub.types.carbon.FlaggedName[] userList) |
boolean |
userNameExists(String roleName,
String userName) |
public UserManagementClient(String backendURL, String sessionCookie) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic org.apache.axis2.client.Stub getServiceStub()
public static org.wso2.carbon.user.mgt.stub.types.carbon.ClaimValue[] toADBClaimValues(org.wso2.carbon.user.mgt.stub.types.carbon.ClaimValue[] claimValues)
public void addRole(String roleName, String[] userList, String[] permissions) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic void addRole(String roleName, String[] userList, String[] permissions, boolean isSharedRole) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic void addUser(String userName, String password, String[] roles, String profileName) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic void deleteRole(String roleName) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic void deleteUser(String userName) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic void updateUserListOfRole(String roleName, String[] addingUsers, String[] deletingUsers) throws org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException, RemoteException
org.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionRemoteExceptionpublic boolean roleNameExists(String roleName) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic org.wso2.carbon.user.mgt.stub.types.carbon.FlaggedName[] listRoles(String filter, int limit) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic String[] listUsers(String filter, int limit) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic org.wso2.carbon.user.mgt.stub.types.carbon.FlaggedName[] listAllUsers(String filter, int limit) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic boolean userNameExists(String roleName, String userName) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic Boolean hasMultipleUserStores() throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic void addInternalRole(String roleName, String[] userList, String[] permissions) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic org.wso2.carbon.user.mgt.stub.types.carbon.FlaggedName[] getAllRolesNames(String filter, int limit) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic void addRemoveUsersOfRole(String roleName, String[] newUsers, String[] deletedUsers) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic void addRemoveRolesOfUser(String userName, String[] newRoles, String[] deletedRoles) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic org.wso2.carbon.user.mgt.stub.types.carbon.FlaggedName[] getUsersOfRole(String roleName, String filter, int limit) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic org.wso2.carbon.user.mgt.stub.types.carbon.FlaggedName[] getRolesOfUser(String userName, String filter, int limit) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic void updateUsersOfRole(String roleName, org.wso2.carbon.user.mgt.stub.types.carbon.FlaggedName[] userList) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic void updateRolesOfUser(String userName, String[] newUserList) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic void changePassword(String userName, String newPassword) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic void updateRoleName(String roleName, String newRoleName) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic void changePasswordByUser(String userName, String oldPassword, String newPassword) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic org.wso2.carbon.user.mgt.stub.types.carbon.FlaggedName[] getAllSharedRoleNames(String filter, int limit) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic org.wso2.carbon.user.mgt.stub.types.carbon.UIPermissionNode getAllUIPermissions()
throws RemoteException,
org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic void setRoleUIPermission(String roleName, String[] rawResources) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic org.wso2.carbon.user.mgt.stub.types.carbon.UIPermissionNode getRolePermissions(String roleName) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic org.wso2.carbon.user.mgt.stub.types.carbon.FlaggedName[] getRolesOfCurrentUser()
throws RemoteException,
org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic org.wso2.carbon.user.mgt.stub.types.carbon.FlaggedName[] listUserByClaim(org.wso2.carbon.user.mgt.stub.types.carbon.ClaimValue claimValue,
String filter,
int maxLimit)
throws RemoteException,
org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic org.wso2.carbon.user.mgt.stub.types.carbon.UserRealmInfo getUserRealmInfo()
throws RemoteException,
org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic boolean isSharedRolesEnabled()
throws RemoteException,
org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic void bulkImportUsers(String filename, DataHandler handler, String defaultPassword) throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionpublic HashSet<String> getUserList() throws RemoteException, org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException
RemoteExceptionorg.wso2.carbon.user.mgt.stub.UserAdminUserAdminExceptionCopyright © 2015 WSO2. All rights reserved.