public class UserManagerImpl extends Object implements IUserManagementService.UserManager
CHANGE_PASSWORD_EQUAL_PASSWORDS, CHANGE_PASSWORD_GENERIC_ERROR, CHANGE_PASSWORD_INVALID_NEW_PASSWORD, CHANGE_PASSWORD_OK, CHANGE_PASSWORD_USER_NOT_FOUND, CHANGE_PASSWORD_WRONG_USER_PASSWORD| Constructor and Description |
|---|
UserManagerImpl(String ldapUrl) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addUserToGroup(String userId,
String groupId,
String organizationName,
String adminUserId,
String password)
Adds an user, by userId, to a group, by groupName (and organizationName)
|
boolean |
assignRoleToUser(String roleName,
String userId,
String organizationName,
String adminUserId,
String password)
Assigns a role, by roleName, to an user, by userId (and organizationName)
|
int |
changePassword(String userId,
String oldPassword,
String newPassword,
String organizationName,
String adminUserId,
String password)
Changes user's password by userId and old/newPassword (and organizationName)
|
String |
createUser(UserModel userModel,
String organizationName,
String adminUserId,
String password)
Creates a new user by UserModel (and organizationName)
|
boolean |
deleteUser(String userId,
String organizationName,
String adminUserId,
String password)
Deletes an user by userId (and organizationName)
|
boolean |
deleteUsers(String organizationName,
String adminUserId,
String password)
Deletes all users under an organization by organizationId
|
boolean |
dismissRoleToUser(String roleName,
String userId,
String organizationName,
String adminUserId,
String password)
Dismisses a role, by roleName, to an user, by userId (and organizationName)
|
UserModel |
getUser(String userId,
String organizationName,
String adminUserId,
String password)
Gets user by userId (and organizationName)
|
HashMap<UserModel,List<GroupModel>> |
listAllUsersAndGroups(String organizationName,
String adminUserId,
String password)
Lists all users with the associated groups (by organizationName)
|
HashMap<UserModel,List<RoleModel>> |
listAllUsersAndRoles(String organizationName,
String adminUserId,
String password)
Lists all users with the associated roles (by organizationName)
|
List<UserModel> |
listUsers(String adminUserId,
String password)
Lists all present users
|
List<UserModel> |
listUsersByAttribute(Map<String,String> attributes,
String adminUserId,
String adminPassword)
Lists all the users with the attributes send as parameters
|
List<UserModel> |
listUsersByGroup(String groupName,
String organizationName,
String adminUserId,
String password)
Lists all users with the groupName group
|
List<UserModel> |
listUsersByOrganization(String organizationName,
String adminUserId,
String password)
Lists all users under an organization by organizationName
|
List<UserModel> |
listUsersByOrganizationAndAttributes(String organizationName,
Map<String,String> attributes,
String adminUserId,
String adminPassword)
Lists all users under an organization by organizationName
|
List<UserModel> |
listUsersByRole(String roleName,
String organizationName,
String adminUserId,
String password)
Lists all users with the roleName role
|
boolean |
removeUserFromGroup(String userId,
String groupId,
String organizationName,
String adminUserId,
String password)
Removes an user, by userId, from a group, by groupName (and organizationName)
|
boolean |
updateUser(UserModel user,
String organizationName,
String adminUserId,
String password)
Updates user's attributes
|
public UserManagerImpl(String ldapUrl)
public boolean assignRoleToUser(String roleName, String userId, String organizationName, String adminUserId, String password)
IUserManagementService.UserManagerassignRoleToUser in interface IUserManagementService.UserManagerpublic String createUser(UserModel userModel, String organizationName, String adminUserId, String password)
IUserManagementService.UserManagercreateUser in interface IUserManagementService.UserManagerpublic boolean deleteUser(String userId, String organizationName, String adminUserId, String password)
IUserManagementService.UserManagerdeleteUser in interface IUserManagementService.UserManagerpublic HashMap<UserModel,List<RoleModel>> listAllUsersAndRoles(String organizationName, String adminUserId, String password)
IUserManagementService.UserManagerlistAllUsersAndRoles in interface IUserManagementService.UserManagerpublic List<UserModel> listUsers(String adminUserId, String password)
IUserManagementService.UserManagerlistUsers in interface IUserManagementService.UserManagerpublic List<UserModel> listUsersByRole(String roleName, String organizationName, String adminUserId, String password)
IUserManagementService.UserManagerlistUsersByRole in interface IUserManagementService.UserManagerpublic List<UserModel> listUsersByOrganization(String organizationName, String adminUserId, String password)
IUserManagementService.UserManagerlistUsersByOrganization in interface IUserManagementService.UserManagerpublic boolean updateUser(UserModel user, String organizationName, String adminUserId, String password)
IUserManagementService.UserManagerupdateUser in interface IUserManagementService.UserManagerpublic int changePassword(String userId, String oldPassword, String newPassword, String organizationName, String adminUserId, String password)
IUserManagementService.UserManagerchangePassword in interface IUserManagementService.UserManagerpublic boolean deleteUsers(String organizationName, String adminUserId, String password)
IUserManagementService.UserManagerdeleteUsers in interface IUserManagementService.UserManagerpublic UserModel getUser(String userId, String organizationName, String adminUserId, String password)
IUserManagementService.UserManagergetUser in interface IUserManagementService.UserManagerpublic boolean dismissRoleToUser(String roleName, String userId, String organizationName, String adminUserId, String password)
IUserManagementService.UserManagerdismissRoleToUser in interface IUserManagementService.UserManagerpublic boolean addUserToGroup(String userId, String groupId, String organizationName, String adminUserId, String password)
IUserManagementService.UserManageraddUserToGroup in interface IUserManagementService.UserManagerpublic boolean removeUserFromGroup(String userId, String groupId, String organizationName, String adminUserId, String password)
IUserManagementService.UserManagerremoveUserFromGroup in interface IUserManagementService.UserManagerpublic List<UserModel> listUsersByGroup(String groupName, String organizationName, String adminUserId, String password)
IUserManagementService.UserManagerlistUsersByGroup in interface IUserManagementService.UserManagerpublic HashMap<UserModel,List<GroupModel>> listAllUsersAndGroups(String organizationName, String adminUserId, String password)
IUserManagementService.UserManagerlistAllUsersAndGroups in interface IUserManagementService.UserManagerpublic List<UserModel> listUsersByOrganizationAndAttributes(String organizationName, Map<String,String> attributes, String adminUserId, String adminPassword)
IUserManagementService.UserManagerlistUsersByOrganizationAndAttributes in interface IUserManagementService.UserManagerattributes - key-value couple of the attributespublic List<UserModel> listUsersByAttribute(Map<String,String> attributes, String adminUserId, String adminPassword)
IUserManagementService.UserManagerlistUsersByAttribute in interface IUserManagementService.UserManagerattributes - key-value couple of the attributesCopyright © 2014. All Rights Reserved.