Package org.bonitasoft.engine.api.impl
Class ProfileAPIImpl
java.lang.Object
org.bonitasoft.engine.api.impl.ProfileAPIImpl
- All Implemented Interfaces:
org.bonitasoft.engine.api.ProfileAPI
- Author:
- Celine Souchet, Matthieu Chaffotte
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bonitasoft.engine.profile.ProfileMembercreateProfileMember(Long profileId, Long userId, Long groupId, Long roleId) org.bonitasoft.engine.profile.ProfileMembercreateProfileMember(org.bonitasoft.engine.profile.ProfileMemberCreator creator) voiddeleteProfileMember(Long profileMemberId) org.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) longorg.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)
-
Constructor Details
-
ProfileAPIImpl
public ProfileAPIImpl()
-
-
Method Details
-
getProfile
public org.bonitasoft.engine.profile.Profile getProfile(long id) throws org.bonitasoft.engine.profile.ProfileNotFoundException - Specified by:
getProfilein interfaceorg.bonitasoft.engine.api.ProfileAPI- 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) - Specified by:
getProfilesForUserin interfaceorg.bonitasoft.engine.api.ProfileAPI
-
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 - Specified by:
searchProfilesin interfaceorg.bonitasoft.engine.api.ProfileAPI- Throws:
org.bonitasoft.engine.exception.SearchException
-
getNumberOfProfileMembers
- Specified by:
getNumberOfProfileMembersin interfaceorg.bonitasoft.engine.api.ProfileAPI
-
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 - Specified by:
searchProfileMembersin interfaceorg.bonitasoft.engine.api.ProfileAPI- 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 - Specified by:
createProfileMemberin interfaceorg.bonitasoft.engine.api.ProfileAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
createProfileMember
public org.bonitasoft.engine.profile.ProfileMember createProfileMember(org.bonitasoft.engine.profile.ProfileMemberCreator creator) throws org.bonitasoft.engine.exception.CreationException, org.bonitasoft.engine.exception.AlreadyExistsException - Specified by:
createProfileMemberin interfaceorg.bonitasoft.engine.api.ProfileAPI- Throws:
org.bonitasoft.engine.exception.CreationExceptionorg.bonitasoft.engine.exception.AlreadyExistsException
-
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
-
deleteProfileMember
public void deleteProfileMember(Long profileMemberId) throws org.bonitasoft.engine.exception.DeletionException - Specified by:
deleteProfileMemberin interfaceorg.bonitasoft.engine.api.ProfileAPI- Throws:
org.bonitasoft.engine.exception.DeletionException
-
getUserIdFromSession
public long getUserIdFromSession()
-