public class ProfileServiceImpl extends Object implements ProfileService
ENTRY_PROFILE, PROFILE, PROFILE_MEMBER| Constructor and Description |
|---|
ProfileServiceImpl(org.bonitasoft.engine.services.PersistenceService 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,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor,
SessionService sessionService) |
public ProfileServiceImpl(org.bonitasoft.engine.services.PersistenceService 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,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor,
SessionService sessionService)
public org.bonitasoft.engine.profile.model.SProfile createProfile(org.bonitasoft.engine.profile.model.SProfile profile) throws org.bonitasoft.engine.profile.exception.profile.SProfileCreationException
createProfile in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profile.SProfileCreationExceptionpublic org.bonitasoft.engine.profile.model.SProfile getProfile(long profileId) throws org.bonitasoft.engine.profile.exception.profile.SProfileNotFoundException
getProfile in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profile.SProfileNotFoundExceptionpublic org.bonitasoft.engine.profile.model.SProfile getProfileByName(String profileName) throws org.bonitasoft.engine.profile.exception.profile.SProfileNotFoundException
getProfileByName in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profile.SProfileNotFoundExceptionpublic List<org.bonitasoft.engine.profile.model.SProfile> getProfiles(List<Long> profileIds) throws org.bonitasoft.engine.profile.exception.profile.SProfileNotFoundException
getProfiles in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profile.SProfileNotFoundExceptionpublic org.bonitasoft.engine.profile.model.SProfile updateProfile(org.bonitasoft.engine.profile.model.SProfile sProfile, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) throws org.bonitasoft.engine.profile.exception.profile.SProfileUpdateException
updateProfile in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profile.SProfileUpdateExceptionpublic void deleteProfile(org.bonitasoft.engine.profile.model.SProfile profile) throws org.bonitasoft.engine.profile.exception.profile.SProfileDeletionException, org.bonitasoft.engine.profile.exception.profileentry.SProfileEntryDeletionException, org.bonitasoft.engine.profile.exception.profilemember.SProfileMemberDeletionException
deleteProfile in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profile.SProfileDeletionExceptionorg.bonitasoft.engine.profile.exception.profileentry.SProfileEntryDeletionExceptionorg.bonitasoft.engine.profile.exception.profilemember.SProfileMemberDeletionExceptionpublic void deleteAllProfileMembersOfProfile(org.bonitasoft.engine.profile.model.SProfile profile) throws org.bonitasoft.engine.profile.exception.profilemember.SProfileMemberDeletionException
deleteAllProfileMembersOfProfile in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profilemember.SProfileMemberDeletionExceptionpublic void deleteAllProfileEntriesOfProfile(org.bonitasoft.engine.profile.model.SProfile profile) throws org.bonitasoft.engine.profile.exception.profileentry.SProfileEntryDeletionException
deleteAllProfileEntriesOfProfile in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profileentry.SProfileEntryDeletionExceptionpublic void deleteProfile(long profileId)
throws org.bonitasoft.engine.profile.exception.profile.SProfileNotFoundException,
org.bonitasoft.engine.profile.exception.profile.SProfileDeletionException,
org.bonitasoft.engine.profile.exception.profileentry.SProfileEntryDeletionException,
org.bonitasoft.engine.profile.exception.profilemember.SProfileMemberDeletionException
deleteProfile in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profile.SProfileNotFoundExceptionorg.bonitasoft.engine.profile.exception.profile.SProfileDeletionExceptionorg.bonitasoft.engine.profile.exception.profileentry.SProfileEntryDeletionExceptionorg.bonitasoft.engine.profile.exception.profilemember.SProfileMemberDeletionExceptionpublic org.bonitasoft.engine.profile.model.SProfileEntry getProfileEntry(long profileEntryId) throws org.bonitasoft.engine.profile.exception.profileentry.SProfileEntryNotFoundException
getProfileEntry in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profileentry.SProfileEntryNotFoundExceptionpublic List<org.bonitasoft.engine.profile.model.SProfileEntry> getEntriesOfProfile(long profileId, int fromIndex, int numberOfProfileEntries, String field, org.bonitasoft.engine.persistence.OrderByType order) throws org.bonitasoft.engine.persistence.SBonitaReadException
getEntriesOfProfile in interface ProfileServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.profile.model.SProfileEntry> getEntriesOfProfileByParentId(long profileId, long parentId, int fromIndex, int numberOfProfileEntries, String field, org.bonitasoft.engine.persistence.OrderByType order) throws org.bonitasoft.engine.persistence.SBonitaReadException
getEntriesOfProfileByParentId in interface ProfileServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic org.bonitasoft.engine.profile.model.SProfileEntry createProfileEntry(org.bonitasoft.engine.profile.model.SProfileEntry profileEntry) throws org.bonitasoft.engine.profile.exception.profileentry.SProfileEntryCreationException
createProfileEntry in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profileentry.SProfileEntryCreationExceptionpublic org.bonitasoft.engine.profile.model.SProfileEntry updateProfileEntry(org.bonitasoft.engine.profile.model.SProfileEntry profileEntry, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) throws org.bonitasoft.engine.profile.exception.profileentry.SProfileEntryUpdateException
updateProfileEntry in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profileentry.SProfileEntryUpdateExceptionpublic void deleteProfileEntry(org.bonitasoft.engine.profile.model.SProfileEntry profileEntry) throws org.bonitasoft.engine.profile.exception.profileentry.SProfileEntryDeletionException
deleteProfileEntry in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profileentry.SProfileEntryDeletionExceptionpublic void deleteProfileEntry(long profileEntryId)
throws org.bonitasoft.engine.profile.exception.profileentry.SProfileEntryNotFoundException,
org.bonitasoft.engine.profile.exception.profileentry.SProfileEntryDeletionException
public org.bonitasoft.engine.profile.model.SProfileMember addUserToProfile(long profileId, long userId, String firstName, String lastName, String userName) throws org.bonitasoft.engine.profile.exception.profilemember.SProfileMemberCreationException
addUserToProfile in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profilemember.SProfileMemberCreationExceptionpublic org.bonitasoft.engine.profile.model.SProfileMember addGroupToProfile(long profileId, long groupId, String groupName, String parentPath) throws org.bonitasoft.engine.profile.exception.profilemember.SProfileMemberCreationException
addGroupToProfile in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profilemember.SProfileMemberCreationExceptionpublic org.bonitasoft.engine.profile.model.SProfileMember addRoleToProfile(long profileId, long roleId, String roleName) throws org.bonitasoft.engine.profile.exception.profilemember.SProfileMemberCreationException
addRoleToProfile in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profilemember.SProfileMemberCreationExceptionpublic org.bonitasoft.engine.profile.model.SProfileMember addRoleAndGroupToProfile(long profileId, long roleId, long groupId, String roleName, String groupName, String groupParentPath) throws org.bonitasoft.engine.profile.exception.profilemember.SProfileMemberCreationException
addRoleAndGroupToProfile in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profilemember.SProfileMemberCreationExceptionpublic void deleteProfileMember(long profileMemberId)
throws org.bonitasoft.engine.profile.exception.profilemember.SProfileMemberDeletionException,
org.bonitasoft.engine.profile.exception.profilemember.SProfileMemberNotFoundException
public org.bonitasoft.engine.profile.model.SProfileMember getProfileMemberWithoutDisplayName(long profileMemberId) throws org.bonitasoft.engine.profile.exception.profilemember.SProfileMemberNotFoundException
getProfileMemberWithoutDisplayName in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profilemember.SProfileMemberNotFoundExceptionpublic void deleteProfileMember(org.bonitasoft.engine.profile.model.SProfileMember profileMember) throws org.bonitasoft.engine.profile.exception.profilemember.SProfileMemberDeletionException
deleteProfileMember in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profilemember.SProfileMemberDeletionExceptionpublic List<org.bonitasoft.engine.profile.model.SProfileMember> getProfileMembersOfUser(long userId, int fromIndex, int numberOfElements, String field, org.bonitasoft.engine.persistence.OrderByType order) throws org.bonitasoft.engine.persistence.SBonitaReadException
getProfileMembersOfUser in interface ProfileServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.profile.model.SProfileMember> getProfileMembersOfGroup(long groupId, int fromIndex, int numberOfElements, String field, org.bonitasoft.engine.persistence.OrderByType order) throws org.bonitasoft.engine.persistence.SBonitaReadException
getProfileMembersOfGroup in interface ProfileServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.profile.model.SProfileMember> getProfileMembersOfRole(long roleId, int fromIndex, int numberOfElements, String field, org.bonitasoft.engine.persistence.OrderByType order) throws org.bonitasoft.engine.persistence.SBonitaReadException
getProfileMembersOfRole in interface ProfileServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.profile.model.SProfile> searchProfilesOfUser(long userId, int fromIndex, int numberOfElements, String field, org.bonitasoft.engine.persistence.OrderByType order) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchProfilesOfUser in interface ProfileServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.profile.model.SProfileMember> getProfileMembers(long profileId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.profile.exception.profilemember.SProfileMemberNotFoundException
getProfileMembers in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profilemember.SProfileMemberNotFoundExceptionpublic List<org.bonitasoft.engine.profile.model.SProfileMember> searchProfileMembers(String querySuffix, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchProfileMembers in interface ProfileServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfProfileMembers(String querySuffix, org.bonitasoft.engine.persistence.QueryOptions countOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfProfileMembers in interface ProfileServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.profile.model.SProfileMember> getProfileMembers(List<Long> profileIds) throws org.bonitasoft.engine.persistence.SBonitaReadException
getProfileMembers in interface ProfileServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic void deleteAllProfileMembers()
throws org.bonitasoft.engine.profile.exception.profilemember.SProfileMemberDeletionException
deleteAllProfileMembers in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profilemember.SProfileMemberDeletionExceptionpublic long getNumberOfProfiles(org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfProfiles in interface ProfileServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.profile.model.SProfile> searchProfiles(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchProfiles in interface ProfileServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.profile.model.SProfileMember> getProfileMembers(int fromIndex, int numberOfElements, String field, org.bonitasoft.engine.persistence.OrderByType order) throws org.bonitasoft.engine.persistence.SBonitaReadException
org.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfProfileEntries(org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfProfileEntries in interface ProfileServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.profile.model.SProfileEntry> searchProfileEntries(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchProfileEntries in interface ProfileServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic void updateProfileMetaData(long profileId)
throws org.bonitasoft.engine.profile.exception.profile.SProfileUpdateException
updateProfileMetaData in interface ProfileServiceorg.bonitasoft.engine.profile.exception.profile.SProfileUpdateExceptionpublic void start()
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
start in interface org.bonitasoft.engine.commons.LifecycleServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void stop()
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
stop in interface org.bonitasoft.engine.commons.LifecycleServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void pause()
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
pause in interface org.bonitasoft.engine.commons.LifecycleServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void resume()
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
resume in interface org.bonitasoft.engine.commons.LifecycleServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionCopyright © 2015 Bonitasoft S.A.. All rights reserved.