public class ProfileAPIImpl extends Object implements ProfileAPI
| Constructor and Description |
|---|
ProfileAPIImpl() |
protected TenantServiceAccessor getTenantAccessor()
public Profile getProfile(long id) throws ProfileNotFoundException
getProfile in interface ProfileAPIProfileNotFoundExceptionpublic List<Profile> getProfilesForUser(long userId)
getProfilesForUser in interface ProfileAPIpublic SearchResult<Profile> searchProfiles(SearchOptions options) throws SearchException
searchProfiles in interface ProfileAPISearchExceptionprotected String getQuerySuffix(MemberType memberType)
public Map<Long,Long> getNumberOfProfileMembers(List<Long> profileIds)
getNumberOfProfileMembers in interface ProfileAPIpublic SearchResult<ProfileMember> searchProfileMembers(String memberType, SearchOptions options) throws SearchException
searchProfileMembers in interface ProfileAPISearchExceptionpublic SearchResult<ProfileEntry> searchProfileEntries(SearchOptions options) throws SearchException
searchProfileEntries in interface ProfileAPISearchExceptionpublic ProfileEntry getProfileEntry(long id) throws ProfileEntryNotFoundException
getProfileEntry in interface ProfileAPIProfileEntryNotFoundExceptionpublic ProfileMember createProfileMember(Long profileId, Long userId, Long groupId, Long roleId) throws CreationException, AlreadyExistsException
createProfileMember in interface ProfileAPICreationExceptionAlreadyExistsExceptionpublic ProfileMember createProfileMember(ProfileMemberCreator creator) throws CreationException, AlreadyExistsException
createProfileMember in interface ProfileAPICreationExceptionAlreadyExistsExceptionprotected void checkIfProfileMemberExists(TenantServiceAccessor tenantAccessor, ProfileService profileService, Long profileId, Long userId, Long groupId, Long roleId, MemberType memberType) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic MemberType getMemberType(Long userId, Long groupId, Long roleId) throws CreationException
CreationExceptionpublic void deleteProfileMember(Long profilMemberId) throws DeletionException
deleteProfileMember in interface ProfileAPIDeletionExceptionCopyright © 2013 BonitaSoft. All Rights Reserved.