public class ProfileAPIImpl extends Object implements ProfileAPI
| Constructor and Description |
|---|
ProfileAPIImpl() |
protected TenantServiceAccessor getTenantAccessor()
public Profile getProfile(long id) throws ProfileNotFoundException
getProfile in interface ProfileAPIProfileNotFoundException@Deprecated public List<Profile> getProfilesForUser(long userId)
getProfilesForUser in interface ProfileAPIpublic List<Profile> getProfilesForUser(long userId, int startIndex, int maxResults, ProfileCriterion criterion)
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 ProfileAPICreationExceptionAlreadyExistsExceptionprotected ProfileMember convertToProfileMember(CreateProfileMember createProfileMember)
public 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 profileMemberId) throws DeletionException
deleteProfileMember in interface ProfileAPIDeletionExceptionprotected long getUserIdFromSession()
Copyright © 2016 Bonitasoft S.A.. All rights reserved.