public class IdentityServiceImpl extends Object implements IdentityService
CUSTOM_USER_INFO_DEFINITION, CUSTOM_USER_INFO_VALUE, GROUP, ROLE, USER, USER_CONTACT_INFO, USERMEMBERSHIP| Constructor and Description |
|---|
IdentityServiceImpl(org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService,
CredentialsEncrypter encrypter) |
public IdentityServiceImpl(org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService,
CredentialsEncrypter encrypter)
public void createGroup(org.bonitasoft.engine.identity.model.SGroup group) throws SGroupCreationException
createGroup in interface IdentityServiceSGroupCreationExceptionpublic org.bonitasoft.engine.identity.model.SCustomUserInfoDefinition createCustomUserInfoDefinition(org.bonitasoft.engine.identity.model.SCustomUserInfoDefinition customUserInfo) throws SCustomUserInfoDefinitionAlreadyExistsException, SCustomUserInfoDefinitionCreationException
createCustomUserInfoDefinition in interface IdentityServiceSCustomUserInfoDefinitionAlreadyExistsExceptionSCustomUserInfoDefinitionCreationExceptionpublic org.bonitasoft.engine.identity.model.SCustomUserInfoValue createCustomUserInfoValue(org.bonitasoft.engine.identity.model.SCustomUserInfoValue customUserInfo) throws SIdentityException
createCustomUserInfoValue in interface IdentityServiceSIdentityExceptionpublic void createRole(org.bonitasoft.engine.identity.model.SRole role) throws SIdentityException
createRole in interface IdentityServiceSIdentityExceptionpublic org.bonitasoft.engine.identity.model.SUser createUser(org.bonitasoft.engine.identity.model.SUser user) throws SUserCreationException
createUser in interface IdentityServiceSUserCreationException@Deprecated public org.bonitasoft.engine.identity.model.SUser createUserWithoutEncryptingPassword(org.bonitasoft.engine.identity.model.SUser user) throws SUserCreationException
createUserWithoutEncryptingPassword in interface IdentityServiceSUserCreationExceptionpublic org.bonitasoft.engine.identity.model.SContactInfo createUserContactInfo(org.bonitasoft.engine.identity.model.SContactInfo contactInfo) throws SUserCreationException
createUserContactInfo in interface IdentityServiceSUserCreationExceptionpublic void createUserMembership(org.bonitasoft.engine.identity.model.SUserMembership userMembership) throws SUserMembershipCreationException
createUserMembership in interface IdentityServiceSUserMembershipCreationExceptionpublic void deleteGroup(long groupId)
throws SGroupNotFoundException,
SGroupDeletionException
deleteGroup in interface IdentityServiceSGroupNotFoundExceptionSGroupDeletionExceptionpublic void deleteGroup(org.bonitasoft.engine.identity.model.SGroup group) throws SGroupDeletionException
deleteGroup in interface IdentityServiceSGroupDeletionExceptionpublic void deleteAllGroups()
throws SGroupDeletionException
deleteAllGroups in interface IdentityServiceSGroupDeletionExceptionpublic List<Long> deleteChildrenGroup(long groupId) throws SGroupDeletionException, SGroupNotFoundException
deleteChildrenGroup in interface IdentityServiceSGroupDeletionExceptionSGroupNotFoundExceptionprotected org.bonitasoft.engine.identity.model.builder.SUserLogBuilder getUserLog(org.bonitasoft.engine.queriablelogger.model.builder.ActionType actionType, String message)
public void deleteCustomUserInfoDefinition(long customUserInfoDefinitionId)
throws SIdentityException
deleteCustomUserInfoDefinition in interface IdentityServiceSIdentityExceptionpublic void deleteCustomUserInfoDefinition(org.bonitasoft.engine.identity.model.SCustomUserInfoDefinition info) throws SIdentityException
deleteCustomUserInfoDefinition in interface IdentityServiceSIdentityExceptionpublic void deleteCustomUserInfoValue(long customUserInfoValueId)
throws SIdentityException
deleteCustomUserInfoValue in interface IdentityServiceSIdentityExceptionpublic void deleteCustomUserInfoValue(org.bonitasoft.engine.identity.model.SCustomUserInfoValue customUserInfo) throws SIdentityException
deleteCustomUserInfoValue in interface IdentityServiceSIdentityExceptionpublic void deleteRole(long roleId)
throws SRoleNotFoundException,
SRoleDeletionException
deleteRole in interface IdentityServiceSRoleNotFoundExceptionSRoleDeletionExceptionpublic void deleteRole(org.bonitasoft.engine.identity.model.SRole role) throws SRoleDeletionException
deleteRole in interface IdentityServiceSRoleDeletionExceptionpublic void deleteAllRoles()
throws SRoleDeletionException
deleteAllRoles in interface IdentityServiceSRoleDeletionExceptionpublic void deleteUser(long userId)
throws SUserDeletionException
deleteUser in interface IdentityServiceSUserDeletionExceptionpublic void deleteUser(org.bonitasoft.engine.identity.model.SUser user) throws SUserDeletionException
deleteUser in interface IdentityServiceSUserDeletionExceptionpublic void deleteAllUsers()
throws SUserDeletionException
deleteAllUsers in interface IdentityServiceSUserDeletionExceptionpublic org.bonitasoft.engine.identity.model.SUserMembership getLightUserMembership(long userMembershipId) throws SIdentityException
getLightUserMembership in interface IdentityServiceSIdentityExceptionpublic void deleteUserMembership(org.bonitasoft.engine.identity.model.SUserMembership userMembership) throws SMembershipDeletionException
deleteUserMembership in interface IdentityServiceSMembershipDeletionExceptionpublic void deleteUserMembership(long id)
throws SMembershipDeletionException
deleteUserMembership in interface IdentityServiceSMembershipDeletionExceptionpublic void deleteLightUserMembership(org.bonitasoft.engine.identity.model.SUserMembership userMembership) throws SMembershipDeletionException
deleteLightUserMembership in interface IdentityServiceSMembershipDeletionExceptionpublic void deleteAllUserMemberships()
throws SMembershipDeletionException
deleteAllUserMemberships in interface IdentityServiceSMembershipDeletionExceptionpublic org.bonitasoft.engine.identity.model.SGroup getGroup(long groupId) throws SGroupNotFoundException
getGroup in interface IdentityServiceSGroupNotFoundExceptionpublic List<org.bonitasoft.engine.identity.model.SGroup> getGroupChildren(long groupId, int fromIndex, int numberOfGroups) throws SIdentityException
getGroupChildren in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SGroup> getGroupChildren(long groupId, int fromIndex, int numberOfGroups, String field, org.bonitasoft.engine.persistence.OrderByType order) throws SIdentityException
getGroupChildren in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SGroup> getGroups(int fromIndex, int numberOfGroups) throws SIdentityException
getGroups in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SGroup> getGroups(int fromIndex, int numberOfGroups, String field, org.bonitasoft.engine.persistence.OrderByType order) throws SIdentityException
getGroups in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SGroup> getGroups(List<Long> groupIds) throws SGroupNotFoundException
getGroups in interface IdentityServiceSGroupNotFoundExceptionpublic List<org.bonitasoft.engine.identity.model.SUserMembership> getUserMemberships(int fromIndex, int numberOfResult, org.bonitasoft.engine.persistence.OrderByOption orderByOption) throws SIdentityException
getUserMemberships in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SUserMembership> getUserMembershipsOfGroup(long groupId, int startIndex, int maxResults) throws SIdentityException
getUserMembershipsOfGroup in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SUserMembership> getUserMembershipsOfRole(long roleId, int startIndex, int maxResults) throws SIdentityException
getUserMembershipsOfRole in interface IdentityServiceSIdentityExceptionpublic long getNumberOfGroupChildren(long parentGroupId)
throws SIdentityException
getNumberOfGroupChildren in interface IdentityServiceSIdentityExceptionpublic long getNumberOfGroups()
throws SIdentityException
getNumberOfGroups in interface IdentityServiceSIdentityExceptionpublic long getNumberOfCustomUserInfoDefinition()
throws SIdentityException
getNumberOfCustomUserInfoDefinition in interface IdentityServiceSIdentityExceptionpublic long getNumberOfCustomUserInfoValue(org.bonitasoft.engine.persistence.QueryOptions options)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfCustomUserInfoValue in interface IdentityServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfRoles()
throws SIdentityException
getNumberOfRoles in interface IdentityServiceSIdentityExceptionpublic long getNumberOfUsers()
throws SIdentityException
getNumberOfUsers in interface IdentityServiceSIdentityExceptionpublic long getNumberOfUserMembershipsOfUser(long userId)
throws SIdentityException
getNumberOfUserMembershipsOfUser in interface IdentityServiceSIdentityExceptionpublic long getNumberOfUsersByGroup(long groupId)
throws SIdentityException
getNumberOfUsersByGroup in interface IdentityServiceSIdentityExceptionpublic long getNumberOfUsersByRole(long roleId)
throws SIdentityException
getNumberOfUsersByRole in interface IdentityServiceSIdentityExceptionpublic long getNumberOfUsersByMembership(long groupId,
long roleId)
throws SIdentityException
getNumberOfUsersByMembership in interface IdentityServiceSIdentityExceptionpublic org.bonitasoft.engine.identity.model.SCustomUserInfoDefinition getCustomUserInfoDefinitionByName(String name) throws SCustomUserInfoDefinitionNotFoundException, SCustomUserInfoDefinitionReadException
getCustomUserInfoDefinitionByName in interface IdentityServiceSCustomUserInfoDefinitionNotFoundExceptionSCustomUserInfoDefinitionReadExceptionpublic boolean hasCustomUserInfoDefinition(String name) throws SCustomUserInfoDefinitionReadException
hasCustomUserInfoDefinition in interface IdentityServiceSCustomUserInfoDefinitionReadExceptionpublic List<org.bonitasoft.engine.identity.model.SCustomUserInfoDefinition> getCustomUserInfoDefinitions(int fromIndex, int maxResults) throws SIdentityException
getCustomUserInfoDefinitions in interface IdentityServiceSIdentityExceptionpublic List<Long> getUserIdsWithCustomUserInfo(String userInfoName, String userInfoValue, boolean usePartialMatch, int fromIndex, int maxResults) throws SIdentityException
getUserIdsWithCustomUserInfo in interface IdentityServiceSIdentityExceptionpublic org.bonitasoft.engine.identity.model.SCustomUserInfoDefinition getCustomUserInfoDefinition(long customUserInfoDefinitionId) throws SIdentityException
getCustomUserInfoDefinition in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SCustomUserInfoDefinition> getCustomUserInfoDefinitions(List<Long> customUserInfoDefinitionIds) throws SIdentityException
getCustomUserInfoDefinitions in interface IdentityServiceSIdentityExceptionpublic org.bonitasoft.engine.identity.model.SCustomUserInfoValue getCustomUserInfoValue(long customUserInfoValueId) throws SCustomUserInfoValueNotFoundException, SCustomUserInfoValueReadException
getCustomUserInfoValue in interface IdentityServiceSCustomUserInfoValueNotFoundExceptionSCustomUserInfoValueReadExceptionpublic List<org.bonitasoft.engine.identity.model.SCustomUserInfoValue> getCustomUserInfoValues(List<Long> customUserInfoValueIds) throws SIdentityException
getCustomUserInfoValues in interface IdentityServiceSIdentityExceptionpublic org.bonitasoft.engine.identity.model.SRole getRole(long roleId) throws SRoleNotFoundException
getRole in interface IdentityServiceSRoleNotFoundExceptionpublic org.bonitasoft.engine.identity.model.SRole getRoleByName(String roleName) throws SRoleNotFoundException
getRoleByName in interface IdentityServiceSRoleNotFoundExceptionpublic org.bonitasoft.engine.identity.model.SGroup getGroupByPath(String groupPath) throws SGroupNotFoundException
getGroupByPath in interface IdentityServiceSGroupNotFoundExceptionpublic List<org.bonitasoft.engine.identity.model.SRole> getRoles(int fromIndex, int numberOfRoles) throws SIdentityException
getRoles in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SRole> getRoles(int fromIndex, int numberOfRoles, String field, org.bonitasoft.engine.persistence.OrderByType order) throws SIdentityException
getRoles in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SRole> getRoles(List<Long> roleIds) throws SRoleNotFoundException
getRoles in interface IdentityServiceSRoleNotFoundExceptionpublic org.bonitasoft.engine.identity.model.SUser getUser(long userId) throws SUserNotFoundException
getUser in interface IdentityServiceSUserNotFoundExceptionpublic org.bonitasoft.engine.identity.model.SContactInfo getUserContactInfo(long userId, boolean isPersonal) throws SIdentityException
getUserContactInfo in interface IdentityServiceSIdentityExceptionpublic org.bonitasoft.engine.identity.model.SUser getUserByUserName(String userName) throws SUserNotFoundException
getUserByUserName in interface IdentityServiceSUserNotFoundExceptionpublic org.bonitasoft.engine.identity.model.SUserMembership getUserMembership(long userMembershipId) throws SIdentityException
getUserMembership in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SUserMembership> getUserMemberships(List<Long> userMembershipIds) throws SIdentityException
getUserMemberships in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SUser> getUsers(int fromIndex, int numberOfUsers) throws SIdentityException
getUsers in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SUser> getUsers(int fromIndex, int numberOfUsers, String field, org.bonitasoft.engine.persistence.OrderByType order) throws SIdentityException
getUsers in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SUser> getUsers(List<Long> userIds) throws SUserNotFoundException
getUsers in interface IdentityServiceSUserNotFoundExceptionpublic List<org.bonitasoft.engine.identity.model.SUser> getUsersByUsername(List<String> userNames) throws SIdentityException
getUsersByUsername in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SUser> getUsersByGroup(long groupId, int fromIndex, int numberOfUsers) throws SIdentityException
getUsersByGroup in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SUser> getUsersByGroup(long groupId, int fromIndex, int numberOfUsers, String field, org.bonitasoft.engine.persistence.OrderByType order) throws SIdentityException
getUsersByGroup in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SUser> getUsersByManager(long managerId, int fromIndex, int numberMaxOfUsers) throws SIdentityException
getUsersByManager in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SUser> getUsersByRole(long roleId, int fromIndex, int numberOfUsers) throws SIdentityException
getUsersByRole in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SUser> getUsersByRole(long roleId, int fromIndex, int numberOfUsers, String field, org.bonitasoft.engine.persistence.OrderByType order) throws SIdentityException
getUsersByRole in interface IdentityServiceSIdentityExceptionpublic void updateGroup(org.bonitasoft.engine.identity.model.SGroup group, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) throws SIdentityException
updateGroup in interface IdentityServiceSIdentityExceptionpublic void updateCustomUserInfoDefinition(org.bonitasoft.engine.identity.model.SCustomUserInfoDefinition customUserInfo, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) throws SIdentityException
updateCustomUserInfoDefinition in interface IdentityServiceSIdentityExceptionpublic void updateCustomUserInfoValue(org.bonitasoft.engine.identity.model.SCustomUserInfoValue customUserInfo, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) throws SIdentityException
updateCustomUserInfoValue in interface IdentityServiceSIdentityExceptionpublic void updateRole(org.bonitasoft.engine.identity.model.SRole role, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) throws SIdentityException
updateRole in interface IdentityServiceSIdentityExceptionpublic void updateUser(org.bonitasoft.engine.identity.model.SUser user, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) throws SUserUpdateException
updateUser in interface IdentityServiceSUserUpdateException@Deprecated public void updateUser(org.bonitasoft.engine.identity.model.SUser user, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor, boolean isPasswordEncrypted) throws SUserUpdateException
updateUser in interface IdentityServiceSUserUpdateExceptionpublic void updateUserContactInfo(org.bonitasoft.engine.identity.model.SContactInfo contactInfo, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) throws SIdentityException
updateUserContactInfo in interface IdentityServiceSIdentityExceptionpublic void updateUserMembership(org.bonitasoft.engine.identity.model.SUserMembership userMembership, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) throws SIdentityException
updateUserMembership in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SUserMembership> getUserMemberships(int fromIndex, int numberOfUserMemberships) throws SIdentityException
getUserMemberships in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SUserMembership> getUserMembershipsOfUser(long userId, int fromIndex, int numberOfUsers) throws SIdentityException
getUserMembershipsOfUser in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SUserMembership> getUserMembershipsOfUser(long userId, int fromIndex, int numberOfMemberships, String field, org.bonitasoft.engine.persistence.OrderByType order) throws SIdentityException
getUserMembershipsOfUser in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SUserMembership> getUserMembershipsOfUser(long userId, int fromIndex, int numberPerPage, org.bonitasoft.engine.persistence.OrderByOption orderByOption) throws SIdentityException
getUserMembershipsOfUser in interface IdentityServiceSIdentityExceptionpublic org.bonitasoft.engine.identity.model.SUserMembership getUserMembership(long userId, long groupId, long roleId) throws SIdentityException
getUserMembership in interface IdentityServiceSIdentityExceptionpublic org.bonitasoft.engine.identity.model.SUserMembership getLightUserMembership(long userId, long groupId, long roleId) throws SIdentityException
getLightUserMembership in interface IdentityServiceSIdentityExceptionpublic long getNumberOfUserMemberships()
throws SIdentityException
getNumberOfUserMemberships in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SUserMembership> getLightUserMemberships(int startIndex, int numberOfElements) throws SIdentityException
getLightUserMemberships in interface IdentityServiceSIdentityExceptionpublic long getNumberOfUsers(org.bonitasoft.engine.persistence.QueryOptions options)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfUsers in interface IdentityServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.identity.model.SUser> searchUsers(org.bonitasoft.engine.persistence.QueryOptions options) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchUsers in interface IdentityServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfRoles(org.bonitasoft.engine.persistence.QueryOptions options)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfRoles in interface IdentityServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.identity.model.SRole> searchRoles(org.bonitasoft.engine.persistence.QueryOptions options) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchRoles in interface IdentityServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfGroups(org.bonitasoft.engine.persistence.QueryOptions options)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfGroups in interface IdentityServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.identity.model.SGroup> searchGroups(org.bonitasoft.engine.persistence.QueryOptions options) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchGroups in interface IdentityServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic boolean chechCredentials(org.bonitasoft.engine.identity.model.SUser user, String password)
chechCredentials in interface IdentityServicepublic List<org.bonitasoft.engine.identity.model.SCustomUserInfoValue> searchCustomUserInfoValue(org.bonitasoft.engine.persistence.QueryOptions options) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchCustomUserInfoValue in interface IdentityServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionCopyright © 2016 Bonitasoft S.A.. All rights reserved.