Class ProfileAPIDelegate
- java.lang.Object
-
- org.bonitasoft.engine.api.impl.profile.ProfileAPIDelegate
-
public class ProfileAPIDelegate extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ApplicationServiceapplicationServiceprotected ProfileServiceprofileService
-
Constructor Summary
Constructors Modifier Constructor Description protectedProfileAPIDelegate(ProfileService profileService, IdentityService identityService, SearchEntitiesDescriptor searchEntitiesDescriptor, ApplicationService applicationService)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckIfProfileMemberExists(java.lang.Long profileId, java.lang.Long userId, java.lang.Long groupId, java.lang.Long roleId, org.bonitasoft.engine.identity.MemberType memberType)protected org.bonitasoft.engine.profile.ProfileMemberconvertToProfileMember(CreateProfileMember createProfileMember)org.bonitasoft.engine.profile.ProfileMembercreateProfileMember(java.lang.Long profileId, java.lang.Long userId, java.lang.Long groupId, java.lang.Long roleId)voiddeleteProfileMember(java.lang.Long profileMemberId)static ProfileAPIDelegategetInstance()org.bonitasoft.engine.identity.MemberTypegetMemberType(java.lang.Long userId, java.lang.Long groupId, java.lang.Long roleId)java.util.Map<java.lang.Long,java.lang.Long>getNumberOfProfileMembers(java.util.List<java.lang.Long> profileIds)org.bonitasoft.engine.profile.ProfilegetProfile(long id)java.util.List<org.bonitasoft.engine.profile.Profile>getProfilesForUser(long userId, int startIndex, int maxResults, org.bonitasoft.engine.profile.ProfileCriterion criterion)static TenantServiceAccessorgetTenantAccessor()org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.profile.ProfileMember>searchProfileMembers(java.lang.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 Detail
-
profileService
protected ProfileService profileService
-
applicationService
protected ApplicationService applicationService
-
-
Constructor Detail
-
ProfileAPIDelegate
protected ProfileAPIDelegate(ProfileService profileService, IdentityService identityService, SearchEntitiesDescriptor searchEntitiesDescriptor, ApplicationService applicationService)
-
-
Method Detail
-
getTenantAccessor
public static TenantServiceAccessor getTenantAccessor()
-
getInstance
public static ProfileAPIDelegate 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
public java.util.Map<java.lang.Long,java.lang.Long> getNumberOfProfileMembers(java.util.List<java.lang.Long> profileIds)
-
getProfile
public org.bonitasoft.engine.profile.Profile getProfile(long id) throws org.bonitasoft.engine.profile.ProfileNotFoundException- Throws:
org.bonitasoft.engine.profile.ProfileNotFoundException
-
getProfilesForUser
public java.util.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(java.lang.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(java.lang.Long profileId, java.lang.Long userId, java.lang.Long groupId, java.lang.Long roleId) throws org.bonitasoft.engine.exception.CreationException, org.bonitasoft.engine.exception.AlreadyExistsException- Throws:
org.bonitasoft.engine.exception.CreationExceptionorg.bonitasoft.engine.exception.AlreadyExistsException
-
deleteProfileMember
public void deleteProfileMember(java.lang.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(java.lang.Long profileId, java.lang.Long userId, java.lang.Long groupId, java.lang.Long roleId, org.bonitasoft.engine.identity.MemberType memberType) throws SBonitaException- Throws:
SBonitaException
-
getMemberType
public org.bonitasoft.engine.identity.MemberType getMemberType(java.lang.Long userId, java.lang.Long groupId, java.lang.Long roleId) throws org.bonitasoft.engine.exception.CreationException- Throws:
org.bonitasoft.engine.exception.CreationException
-
-