public class IdentityServiceImpl extends ServiceImpl implements IdentityService
commandExecutor, processEngineConfiguration| Constructor and Description |
|---|
IdentityServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkPassword(String userId,
String password)
Checks if the password is valid for the given user.
|
GroupQuery |
createGroupQuery()
Creates a
GroupQuery thats allows to programmatically query the groups. |
void |
createMembership(String userId,
String groupId) |
NativeGroupQuery |
createNativeGroupQuery()
Returns a new
NativeQuery for tasks. |
NativeUserQuery |
createNativeUserQuery()
Returns a new
NativeQuery for tasks. |
UserQuery |
createUserQuery()
Creates a
UserQuery that allows to programmatically query the users. |
void |
deleteGroup(String groupId)
Deletes the group.
|
void |
deleteMembership(String userId,
String groupId)
Delete the membership of the user in the group.
|
void |
deleteUser(String userId) |
void |
deleteUserInfo(String userId,
String key)
Delete an entry of the generic extensibility key-value pairs associated with a user
|
String |
getUserInfo(String userId,
String key)
Generic extensibility key-value pairs associated with a user
|
List<String> |
getUserInfoKeys(String userId)
Generic extensibility keys associated with a user
|
Picture |
getUserPicture(String userId)
Retrieves the picture for a given user.
|
Group |
newGroup(String groupId)
Creates a new group.
|
User |
newUser(String userId)
Creates a new user.
|
void |
saveGroup(Group group)
Saves the group.
|
void |
saveUser(User user)
Saves the user.
|
void |
setAuthenticatedUserId(String authenticatedUserId)
Passes the authenticated user id for this particular thread.
|
void |
setUserInfo(String userId,
String key,
String value)
Generic extensibility key-value pairs associated with a user
|
void |
setUserPicture(String userId,
Picture picture)
Sets the picture for a given user.
|
getCommandExecutor, setCommandExecutorpublic Group newGroup(String groupId)
IdentityServiceIdentityService.saveGroup(Group).newGroup in interface IdentityServicegroupId - id for the new group, cannot be null.public User newUser(String userId)
IdentityServiceIdentityService.saveUser(User).newUser in interface IdentityServiceuserId - id for the new user, cannot be null.public void saveGroup(Group group)
IdentityServicesaveGroup in interface IdentityServicegroup - group to save. Cannot be null.public void saveUser(User user)
IdentityServicesaveUser in interface IdentityServiceuser - user to save, cannot be null.public UserQuery createUserQuery()
IdentityServiceUserQuery that allows to programmatically query the users.createUserQuery in interface IdentityServicepublic NativeUserQuery createNativeUserQuery()
IdentityServiceNativeQuery for tasks.createNativeUserQuery in interface IdentityServicepublic GroupQuery createGroupQuery()
IdentityServiceGroupQuery thats allows to programmatically query the groups.createGroupQuery in interface IdentityServicepublic NativeGroupQuery createNativeGroupQuery()
IdentityServiceNativeQuery for tasks.createNativeGroupQuery in interface IdentityServicepublic void createMembership(String userId, String groupId)
createMembership in interface IdentityServiceuserId - the userId, cannot be null.groupId - the groupId, cannot be null.public void deleteGroup(String groupId)
IdentityServicedeleteGroup in interface IdentityServicegroupId - id of the group that should be deleted, cannot be null.public void deleteMembership(String userId, String groupId)
IdentityServicedeleteMembership in interface IdentityServiceuserId - the user's id, cannot be null.groupId - the group's id, cannot be null.public boolean checkPassword(String userId, String password)
IdentityServicecheckPassword in interface IdentityServicepublic void deleteUser(String userId)
deleteUser in interface IdentityServiceuserId - id of user to delete, cannot be null. When an id is passed
for an unexisting user, this operation is ignored.public void setUserPicture(String userId, Picture picture)
IdentityServicesetUserPicture in interface IdentityServicepicture - can be null to delete the picture.public Picture getUserPicture(String userId)
IdentityServicegetUserPicture in interface IdentityServicepublic void setAuthenticatedUserId(String authenticatedUserId)
IdentityServicesetAuthenticatedUserId in interface IdentityServicepublic String getUserInfo(String userId, String key)
IdentityServicegetUserInfo in interface IdentityServicepublic List<String> getUserInfoKeys(String userId)
IdentityServicegetUserInfoKeys in interface IdentityServicepublic void setUserInfo(String userId, String key, String value)
IdentityServicesetUserInfo in interface IdentityServicepublic void deleteUserInfo(String userId, String key)
IdentityServicedeleteUserInfo in interface IdentityServiceCopyright © 2016 Alfresco. All rights reserved.