public class ProfileAPIImpl
extends java.lang.Object
implements org.bonitasoft.engine.api.ProfileAPI
| Constructor and Description |
|---|
ProfileAPIImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkIfProfileMemberExists(TenantServiceAccessor tenantAccessor,
ProfileService profileService,
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.ProfileMember |
convertToProfileMember(CreateProfileMember createProfileMember) |
org.bonitasoft.engine.profile.ProfileMember |
createProfileMember(java.lang.Long profileId,
java.lang.Long userId,
java.lang.Long groupId,
java.lang.Long roleId) |
org.bonitasoft.engine.profile.ProfileMember |
createProfileMember(org.bonitasoft.engine.profile.ProfileMemberCreator creator) |
void |
deleteProfileMember(java.lang.Long profileMemberId) |
org.bonitasoft.engine.identity.MemberType |
getMemberType(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.Profile |
getProfile(long id) |
java.util.List<org.bonitasoft.engine.profile.ProfileEntry> |
getProfileEntries(java.lang.String profileName) |
org.bonitasoft.engine.profile.ProfileEntry |
getProfileEntry(long id) |
java.util.List<org.bonitasoft.engine.profile.Profile> |
getProfilesForUser(long userId)
Deprecated.
|
java.util.List<org.bonitasoft.engine.profile.Profile> |
getProfilesForUser(long userId,
int startIndex,
int maxResults,
org.bonitasoft.engine.profile.ProfileCriterion criterion) |
java.util.List<org.bonitasoft.engine.profile.Profile> |
getProfilesWithNavigationForUser(long userId,
int startIndex,
int maxResults,
org.bonitasoft.engine.profile.ProfileCriterion criterion) |
protected TenantServiceAccessor |
getTenantAccessor() |
protected long |
getUserIdFromSession() |
org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.profile.ProfileEntry> |
searchProfileEntries(org.bonitasoft.engine.search.SearchOptions options) |
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) |
protected TenantServiceAccessor getTenantAccessor()
public org.bonitasoft.engine.profile.Profile getProfile(long id)
throws org.bonitasoft.engine.profile.ProfileNotFoundException
getProfile in interface org.bonitasoft.engine.api.ProfileAPIorg.bonitasoft.engine.profile.ProfileNotFoundException@Deprecated public java.util.List<org.bonitasoft.engine.profile.Profile> getProfilesForUser(long userId)
getProfilesForUser in interface org.bonitasoft.engine.api.ProfileAPIpublic java.util.List<org.bonitasoft.engine.profile.Profile> getProfilesForUser(long userId,
int startIndex,
int maxResults,
org.bonitasoft.engine.profile.ProfileCriterion criterion)
getProfilesForUser in interface org.bonitasoft.engine.api.ProfileAPIpublic java.util.List<org.bonitasoft.engine.profile.Profile> getProfilesWithNavigationForUser(long userId,
int startIndex,
int maxResults,
org.bonitasoft.engine.profile.ProfileCriterion criterion)
getProfilesWithNavigationForUser in interface org.bonitasoft.engine.api.ProfileAPIpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.profile.Profile> searchProfiles(org.bonitasoft.engine.search.SearchOptions options)
throws org.bonitasoft.engine.exception.SearchException
searchProfiles in interface org.bonitasoft.engine.api.ProfileAPIorg.bonitasoft.engine.exception.SearchExceptionpublic java.util.Map<java.lang.Long,java.lang.Long> getNumberOfProfileMembers(java.util.List<java.lang.Long> profileIds)
getNumberOfProfileMembers in interface org.bonitasoft.engine.api.ProfileAPIpublic 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
searchProfileMembers in interface org.bonitasoft.engine.api.ProfileAPIorg.bonitasoft.engine.exception.SearchExceptionpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.profile.ProfileEntry> searchProfileEntries(org.bonitasoft.engine.search.SearchOptions options)
throws org.bonitasoft.engine.exception.SearchException
searchProfileEntries in interface org.bonitasoft.engine.api.ProfileAPIorg.bonitasoft.engine.exception.SearchExceptionpublic java.util.List<org.bonitasoft.engine.profile.ProfileEntry> getProfileEntries(java.lang.String profileName)
throws org.bonitasoft.engine.profile.ProfileNotFoundException
getProfileEntries in interface org.bonitasoft.engine.api.ProfileAPIorg.bonitasoft.engine.profile.ProfileNotFoundExceptionpublic org.bonitasoft.engine.profile.ProfileEntry getProfileEntry(long id)
throws org.bonitasoft.engine.profile.ProfileEntryNotFoundException
getProfileEntry in interface org.bonitasoft.engine.api.ProfileAPIorg.bonitasoft.engine.profile.ProfileEntryNotFoundExceptionpublic 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
createProfileMember in interface org.bonitasoft.engine.api.ProfileAPIorg.bonitasoft.engine.exception.CreationExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionprotected org.bonitasoft.engine.profile.ProfileMember convertToProfileMember(CreateProfileMember 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
createProfileMember in interface org.bonitasoft.engine.api.ProfileAPIorg.bonitasoft.engine.exception.CreationExceptionorg.bonitasoft.engine.exception.AlreadyExistsExceptionprotected void checkIfProfileMemberExists(TenantServiceAccessor tenantAccessor, ProfileService profileService, java.lang.Long profileId, java.lang.Long userId, java.lang.Long groupId, java.lang.Long roleId, org.bonitasoft.engine.identity.MemberType memberType) throws SBonitaException
SBonitaExceptionpublic org.bonitasoft.engine.identity.MemberType getMemberType(java.lang.Long userId,
java.lang.Long groupId,
java.lang.Long roleId)
throws org.bonitasoft.engine.exception.CreationException
org.bonitasoft.engine.exception.CreationExceptionpublic void deleteProfileMember(java.lang.Long profileMemberId)
throws org.bonitasoft.engine.exception.DeletionException
deleteProfileMember in interface org.bonitasoft.engine.api.ProfileAPIorg.bonitasoft.engine.exception.DeletionExceptionprotected long getUserIdFromSession()