Class ProfileAPIDelegate
java.lang.Object
org.bonitasoft.engine.api.impl.profile.ProfileAPIDelegate
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProfileAPIDelegate(ProfileService profileService, IdentityService identityService, SearchEntitiesDescriptor searchEntitiesDescriptor, ApplicationService applicationService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckIfProfileMemberExists(Long profileId, Long userId, Long groupId, Long roleId, org.bonitasoft.engine.identity.MemberType memberType) protected org.bonitasoft.engine.profile.ProfileMemberconvertToProfileMember(CreateProfileMember createProfileMember) org.bonitasoft.engine.profile.ProfileMembercreateProfileMember(Long profileId, Long userId, Long groupId, Long roleId) voiddeleteProfileMember(Long profileMemberId) static ProfileAPIDelegateorg.bonitasoft.engine.identity.MemberTypegetMemberType(Long userId, Long groupId, Long roleId) getNumberOfProfileMembers(List<Long> profileIds) org.bonitasoft.engine.profile.ProfilegetProfile(long id) List<org.bonitasoft.engine.profile.Profile>getProfilesForUser(long userId, int startIndex, int maxResults, org.bonitasoft.engine.profile.ProfileCriterion criterion) static ServiceAccessororg.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.profile.ProfileMember>searchProfileMembers(String memberType, org.bonitasoft.engine.search.SearchOptions options) org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.profile.Profile>searchProfiles(org.bonitasoft.engine.search.SearchOptions options)
-
Field Details
-
profileService
-
applicationService
-
-
Constructor Details
-
ProfileAPIDelegate
protected ProfileAPIDelegate(ProfileService profileService, IdentityService identityService, SearchEntitiesDescriptor searchEntitiesDescriptor, ApplicationService applicationService)
-
-
Method Details
-
getServiceAccessor
-
getInstance
-
searchProfiles
public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.profile.Profile> searchProfiles(org.bonitasoft.engine.search.SearchOptions options) throws org.bonitasoft.engine.exception.SearchException - Throws:
org.bonitasoft.engine.exception.SearchException
-
getNumberOfProfileMembers
-
getProfile
public org.bonitasoft.engine.profile.Profile getProfile(long id) throws org.bonitasoft.engine.profile.ProfileNotFoundException - Throws:
org.bonitasoft.engine.profile.ProfileNotFoundException
-
getProfilesForUser
public List<org.bonitasoft.engine.profile.Profile> getProfilesForUser(long userId, int startIndex, int maxResults, org.bonitasoft.engine.profile.ProfileCriterion criterion) -
searchProfileMembers
public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.profile.ProfileMember> searchProfileMembers(String memberType, org.bonitasoft.engine.search.SearchOptions options) throws org.bonitasoft.engine.exception.SearchException - Throws:
org.bonitasoft.engine.exception.SearchException
-
createProfileMember
public org.bonitasoft.engine.profile.ProfileMember createProfileMember(Long profileId, Long userId, Long groupId, Long roleId) throws org.bonitasoft.engine.exception.CreationException - Throws:
org.bonitasoft.engine.exception.CreationException
-
deleteProfileMember
public void deleteProfileMember(Long profileMemberId) throws org.bonitasoft.engine.exception.DeletionException - Throws:
org.bonitasoft.engine.exception.DeletionException
-
convertToProfileMember
protected org.bonitasoft.engine.profile.ProfileMember convertToProfileMember(CreateProfileMember createProfileMember) -
checkIfProfileMemberExists
protected void checkIfProfileMemberExists(Long profileId, Long userId, Long groupId, Long roleId, org.bonitasoft.engine.identity.MemberType memberType) throws SBonitaException - Throws:
SBonitaException
-
getMemberType
public org.bonitasoft.engine.identity.MemberType getMemberType(Long userId, Long groupId, Long roleId) throws org.bonitasoft.engine.exception.CreationException - Throws:
org.bonitasoft.engine.exception.CreationException
-