public class IdentityServiceImpl extends Object implements IdentityService
GROUP, METADATA, METADATAVALUE, 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 void createProfileMetadataDefinition(org.bonitasoft.engine.identity.model.SProfileMetadataDefinition metadata) throws SIdentityException
createProfileMetadataDefinition in interface IdentityServiceSIdentityExceptionpublic void createProfileMetadataValue(org.bonitasoft.engine.identity.model.SProfileMetadataValue metadataValue) throws SIdentityException
createProfileMetadataValue 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 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 IdentityServiceSGroupDeletionExceptionSGroupNotFoundExceptionpublic void deleteProfileMetadataDefinition(long metadataDefinitionId)
throws SIdentityException
deleteProfileMetadataDefinition in interface IdentityServiceSIdentityExceptionpublic void deleteProfileMetadataDefinition(org.bonitasoft.engine.identity.model.SProfileMetadataDefinition metadata) throws SIdentityException
deleteProfileMetadataDefinition in interface IdentityServiceSIdentityExceptionpublic void deleteProfileMetadataValue(long metadataValueId)
throws SIdentityException
deleteProfileMetadataValue in interface IdentityServiceSIdentityExceptionpublic void deleteProfileMetadataValue(org.bonitasoft.engine.identity.model.SProfileMetadataValue metadataValue) throws SIdentityException
deleteProfileMetadataValue 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) throws SIdentityException
getGroupChildren in interface IdentityServiceSIdentityExceptionpublic 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 Set<org.bonitasoft.engine.identity.model.SGroup> getGroupsByName(String groupName) throws SGroupNotFoundException
getGroupsByName 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 getNumberOfProfileMetadataDefinition()
throws SIdentityException
getNumberOfProfileMetadataDefinition in interface IdentityServiceSIdentityExceptionpublic 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.SProfileMetadataDefinition getProfileMetadataByName(String metadataName) throws SIdentityException
getProfileMetadataByName in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SProfileMetadataDefinition> getProfileMetadataDefinition(int fromIndex, int numberOfMetadata) throws SIdentityException
getProfileMetadataDefinition in interface IdentityServiceSIdentityExceptionpublic org.bonitasoft.engine.identity.model.SProfileMetadataDefinition getProfileMetadataDefinition(long profileMetadataId) throws SIdentityException
getProfileMetadataDefinition in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SProfileMetadataDefinition> getProfileMetadataDefinitions(List<Long> profileMetadataDefinitionIds) throws SIdentityException
getProfileMetadataDefinitions in interface IdentityServiceSIdentityExceptionpublic org.bonitasoft.engine.identity.model.SProfileMetadataValue getProfileMetadataValue(long profileMetadataValueId) throws SIdentityException
getProfileMetadataValue in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SProfileMetadataValue> getProfileMetadataValues(List<Long> profileMetadataValueIds) throws SIdentityException
getProfileMetadataValues 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> getUserMembershipsOfUser(long userId) throws SIdentityException
getUserMembershipsOfUser 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> getUsersByDelegee(long delegateId) throws SIdentityException
getUsersByDelegee in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SUser> getUsersByGroup(long groupId) throws SIdentityException
getUsersByGroup 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) throws SIdentityException
getUsersByManager in interface IdentityServiceSIdentityExceptionpublic List<org.bonitasoft.engine.identity.model.SUser> getUsersByRole(long roleId) throws SIdentityException
getUsersByRole 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 updateProfileMetadataDefinition(org.bonitasoft.engine.identity.model.SProfileMetadataDefinition metadata, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) throws SIdentityException
updateProfileMetadataDefinition in interface IdentityServiceSIdentityExceptionpublic void updateProfileMetadataValue(org.bonitasoft.engine.identity.model.SProfileMetadataValue metadataValue, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) throws SIdentityException
updateProfileMetadataValue 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.SBonitaSearchException
getNumberOfUsers in interface IdentityServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic List<org.bonitasoft.engine.identity.model.SUser> searchUsers(org.bonitasoft.engine.persistence.QueryOptions options) throws org.bonitasoft.engine.persistence.SBonitaSearchException
searchUsers in interface IdentityServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic long getNumberOfRoles(org.bonitasoft.engine.persistence.QueryOptions options)
throws org.bonitasoft.engine.persistence.SBonitaSearchException
getNumberOfRoles in interface IdentityServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic List<org.bonitasoft.engine.identity.model.SRole> searchRoles(org.bonitasoft.engine.persistence.QueryOptions options) throws org.bonitasoft.engine.persistence.SBonitaSearchException
searchRoles in interface IdentityServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic long getNumberOfGroups(org.bonitasoft.engine.persistence.QueryOptions options)
throws org.bonitasoft.engine.persistence.SBonitaSearchException
getNumberOfGroups in interface IdentityServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic List<org.bonitasoft.engine.identity.model.SGroup> searchGroups(org.bonitasoft.engine.persistence.QueryOptions options) throws org.bonitasoft.engine.persistence.SBonitaSearchException
searchGroups in interface IdentityServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic boolean chechCredentials(org.bonitasoft.engine.identity.model.SUser user, String password)
chechCredentials in interface IdentityService@Deprecated public org.bonitasoft.engine.identity.model.SUser createUserWithoutEncryptingPassword(org.bonitasoft.engine.identity.model.SUser user) throws SUserCreationException
createUserWithoutEncryptingPassword in interface IdentityServiceSUserCreationExceptionCopyright © 2014 BonitaSoft. All Rights Reserved.