public interface ProfileService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ENTRY_PROFILE |
static java.lang.String |
PROFILE |
static java.lang.String |
PROFILE_MEMBER |
| Modifier and Type | Method and Description |
|---|---|
SProfileMember |
addGroupToProfile(long profileId,
long groupId,
java.lang.String groupName,
java.lang.String parentPath)
Add a group to exist profile
|
SProfileMember |
addRoleAndGroupToProfile(long profileId,
long roleId,
long groupId,
java.lang.String roleName,
java.lang.String groupName,
java.lang.String groupParentPath)
Add a role and a group to exist profile
|
SProfileMember |
addRoleToProfile(long profileId,
long roleId,
java.lang.String roleName)
Add a role to exist profile
|
SProfileMember |
addUserToProfile(long profileId,
long userId,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String userName)
Add a user to exist profile
|
SProfile |
createProfile(SProfile profile)
Add a new profile
|
SProfileEntry |
createProfileEntry(SProfileEntry profileEntry)
Add new profile entry
|
void |
deleteAllProfileEntriesOfProfile(SProfile profile) |
void |
deleteAllProfileMembers()
Delete all profile members for the connected tenant
|
void |
deleteAllProfileMembersOfProfile(SProfile profile) |
void |
deleteProfile(long profileId)
Delete profile by its id
|
void |
deleteProfile(SProfile profile)
Delete profile by given sProfile
|
void |
deleteProfileEntry(long profileEntryId)
Delete a profile entry by its id
|
void |
deleteProfileEntry(SProfileEntry profileEntry)
Delete a profileEntry by given profileEntry
|
void |
deleteProfileMember(long profileMemberId)
Delete a profile member by its id
|
void |
deleteProfileMember(SProfileMember profileMember)
Delete a profile member by given sProfile member
|
java.util.List<SProfileEntry> |
getEntriesOfProfile(java.lang.String profileName) |
long |
getNumberOfProfileEntries(QueryOptions queryOptions) |
long |
getNumberOfProfileMembers(java.lang.String querySuffix,
QueryOptions countOptions)
Get the total number of profile members
|
long |
getNumberOfProfiles(QueryOptions queryOptions) |
SProfile |
getProfile(long profileId)
Get profile by its id
|
SProfile |
getProfileByName(java.lang.String profileName)
Get profile by given name
|
SProfileEntry |
getProfileEntry(long profileEntryId)
Get profile entry by its id
|
java.util.List<SProfileMember> |
getProfileMembers(java.util.List<java.lang.Long> profileIds)
Get the total number of sProfileMember by a list contains profileIds
|
java.util.List<SProfileMember> |
getProfileMembers(long profileId,
QueryOptions queryOptions)
Get a list of profileMembers by the given profileId
|
java.util.List<SProfileMember> |
getProfileMembersOfGroup(long groupId,
int fromIndex,
int numberOfElements,
java.lang.String field,
OrderByType order)
Get all sProfileMembers with same group having the given value for the given int index
|
java.util.List<SProfileMember> |
getProfileMembersOfRole(long roleId,
int fromIndex,
int numberOfElements,
java.lang.String field,
OrderByType order)
Get all sProfileMembers with same group having the given value for the given int index
|
java.util.List<SProfileMember> |
getProfileMembersOfUser(long userId,
int fromIndex,
int numberOfElements,
java.lang.String field,
OrderByType order)
Get all sProfileMembers with same user having the given value for the given int index
|
SProfileMember |
getProfileMemberWithoutDisplayName(long profileMemberId) |
java.util.List<SProfile> |
getProfiles(java.util.List<java.lang.Long> profileIds)
Get all profiles by given ids
|
java.util.List<SProfile> |
getProfilesOfUser(long userId) |
java.util.List<SProfileEntry> |
searchProfileEntries(QueryOptions queryOptions) |
java.util.List<SProfileMember> |
searchProfileMembers(java.lang.String querySuffix,
QueryOptions searchOptions)
Get all sProfileMember by profileId and queryOptions
|
java.util.List<SProfile> |
searchProfiles(QueryOptions queryOptions) |
java.util.List<SProfile> |
searchProfilesOfUser(long userId,
int fromIndex,
int numberOfElements,
java.lang.String field,
OrderByType order)
Get all profiles of the user by userId
|
java.util.List<SProfile> |
searchProfilesWithNavigationOfUser(long userId,
int fromIndex,
int numberOfElements,
java.lang.String field,
OrderByType order)
Get all profiles with portal navigation for a user
|
SProfile |
updateProfile(SProfile profile,
EntityUpdateDescriptor descriptor)
Update profile by given profile and new content
|
SProfileEntry |
updateProfileEntry(SProfileEntry profileEntry,
EntityUpdateDescriptor descriptor)
Update a profileEntry by given profileEntry and new content
|
void |
updateProfileMetaData(long profileId)
updates profile metaData fields lastUpdateDate and lastUpdatedBy for a given profile
|
static final java.lang.String PROFILE
static final java.lang.String ENTRY_PROFILE
static final java.lang.String PROFILE_MEMBER
SProfile getProfile(long profileId) throws SProfileNotFoundException
profileId - SProfileNotFoundException - occurs when the identifier does not refer to an existing sProfilejava.util.List<SProfile> getProfiles(java.util.List<java.lang.Long> profileIds) throws SProfileNotFoundException
profileIds - a list contains many profile idSProfileNotFoundException - occurs when the identifier does not refer to an existing sProfileSProfile createProfile(SProfile profile) throws SProfileCreationException
profile - SProfileCreationException - occurs when an exception is thrown during sProfile creationSProfile updateProfile(SProfile profile, EntityUpdateDescriptor descriptor) throws SProfileUpdateException
profile - descriptor - SProfileUpdateException - occurs when an exception is thrown during sProfile updatevoid deleteProfile(SProfile profile) throws SProfileNotFoundException, SProfileDeletionException, SProfileEntryDeletionException, SProfileMemberDeletionException
profile - SProfileNotFoundException - occurs when the identifier does not refer to an existing sProfileSProfileDeletionException - occurs when an exception is thrown during sProfile deletionSProfileEntryDeletionExceptionSProfileMemberDeletionExceptionvoid deleteProfile(long profileId)
throws SProfileNotFoundException,
SProfileDeletionException,
SProfileEntryDeletionException,
SProfileMemberDeletionException
profileId - SProfileNotFoundException - occurs when the identifier does not refer to an existing sProfileSProfileDeletionException - occurs when an exception is thrown during sProfile deletionSProfileEntryDeletionExceptionSProfileMemberDeletionExceptionjava.util.List<SProfile> searchProfilesOfUser(long userId, int fromIndex, int numberOfElements, java.lang.String field, OrderByType order) throws SBonitaReadException
userId - fromIndex - first result to be considered(>=0)numberOfProfileEntry - the max number of profileEntry to be returned (>=0)field - order - SBonitaReadExceptionjava.util.List<SProfile> getProfilesOfUser(long userId) throws SBonitaReadException
SBonitaReadExceptionjava.util.List<SProfile> searchProfilesWithNavigationOfUser(long userId, int fromIndex, int numberOfElements, java.lang.String field, OrderByType order) throws SBonitaReadException
userId - fromIndex - first result to be considered(>=0)numberOfProfileEntry - the max number of profileEntry to be returned (>=0)field - order - SBonitaReadExceptionSProfileEntry getProfileEntry(long profileEntryId) throws SProfileEntryNotFoundException
profileEntryId - SProfileEntryNotFoundException - occurs when the identifier does not refer to an existing sProfileEntryjava.util.List<SProfileEntry> getEntriesOfProfile(java.lang.String profileName) throws SBonitaReadException, SProfileNotFoundException
profileName - SBonitaReadExceptionSProfileNotFoundExceptionSProfileEntry createProfileEntry(SProfileEntry profileEntry) throws SProfileEntryCreationException
profileEntry - SProfileEntryCreationException - occurs when an exception is thrown during sProfileEntry creationSProfileEntry updateProfileEntry(SProfileEntry profileEntry, EntityUpdateDescriptor descriptor) throws SProfileEntryUpdateException
profileEntry - descriptor - SProfileEntryUpdateException - occurs when an exception is thrown during sProfileEntry updatevoid deleteProfileEntry(SProfileEntry profileEntry) throws SProfileEntryDeletionException
profileEntry - SProfileEntryDeletionException - occurs when an exception is thrown during sProfileEntry deletionvoid deleteProfileEntry(long profileEntryId)
throws SProfileEntryNotFoundException,
SProfileEntryDeletionException
profileEntryId - SProfileEntryNotFoundException - occurs when the identifier does not refer to an existing sProfileEntrySProfileEntryDeletionException - occurs when an exception is thrown during sProfileEntry deletionSProfileMember addUserToProfile(long profileId, long userId, java.lang.String firstName, java.lang.String lastName, java.lang.String userName) throws SProfileMemberCreationException
profileId - the identifier of profileuserId - the identifier of userfirstName - lastName - userName - SProfileMemberCreationExceptionSProfileMember addGroupToProfile(long profileId, long groupId, java.lang.String groupName, java.lang.String parentPath) throws SProfileMemberCreationException
profileId - the identifier of profilegroupId - the identifier of groupgroupName - parentPath - SProfileMemberCreationException - TODOSProfileMember addRoleToProfile(long profileId, long roleId, java.lang.String roleName) throws SProfileMemberCreationException
profileId - the identifier of profileroleId - the identifier of roleroleName - SProfileMemberCreationException - TODOSProfileMember addRoleAndGroupToProfile(long profileId, long roleId, long groupId, java.lang.String roleName, java.lang.String groupName, java.lang.String groupParentPath) throws SProfileMemberCreationException
profileId - the identifier of profileroleId - the identifier of rolegroupId - the identifier of grouproleName - groupName - groupParentPath - SProfileMemberCreationException - TODOjava.util.List<SProfileMember> getProfileMembersOfUser(long userId, int fromIndex, int numberOfElements, java.lang.String field, OrderByType order) throws SBonitaReadException
userId - the identifier of userfromIndex - first result to be considered(>=0)numberOfProfileEntry - the max number of profileEntry to be returned (>=0)field - order - SBonitaReadException - occurs when an exception is thrown during sProfileMember creationjava.util.List<SProfileMember> getProfileMembersOfGroup(long groupId, int fromIndex, int numberOfElements, java.lang.String field, OrderByType order) throws SBonitaReadException
groupId - the identifier of groupfromIndex - first result to be considered(>=0)numberOfProfileEntry - the max number of profileEntry to be returned (>=0)field - order - SBonitaReadException - occurs when an exception is thrown during sProfileMember creationjava.util.List<SProfileMember> getProfileMembersOfRole(long roleId, int fromIndex, int numberOfElements, java.lang.String field, OrderByType order) throws SBonitaReadException
roleId - the identifier of rolefromIndex - first result to be considered(>=0)numberOfProfileEntry - the max number of profileEntry to be returned (>=0)field - order - SBonitaReadException - occurs when an exception is thrown during sProfileMember creationvoid deleteProfileMember(long profileMemberId)
throws SProfileMemberDeletionException,
SProfileMemberNotFoundException
profileMemberId - SProfileMemberDeletionException - occurs when an exception is thrown during sProfileMember deletionSProfileMemberNotFoundException - occurs when the identifier does not refer to an existing sProfileMembervoid deleteProfileMember(SProfileMember profileMember) throws SProfileMemberDeletionException
profileMember - SProfileMemberDeletionException - occurs when an exception is thrown during sProfileMember deletionlong getNumberOfProfileMembers(java.lang.String querySuffix,
QueryOptions countOptions)
throws SBonitaReadException
querySuffix - the suffix of query stringcountOptions - The criterion used to search profileMembersSBonitaReadExceptionjava.util.List<SProfileMember> searchProfileMembers(java.lang.String querySuffix, QueryOptions searchOptions) throws SBonitaReadException
querySuffix - the suffix of query stringcountOptions - The criterion used to search profileMembersSBonitaReadExceptionjava.util.List<SProfileMember> getProfileMembers(java.util.List<java.lang.Long> profileIds) throws SBonitaReadException
profileIds - SBonitaReadExceptionSProfile getProfileByName(java.lang.String profileName) throws SProfileNotFoundException, SBonitaReadException
profileName - SProfileNotFoundException - occurs when the identifier does not refer to an existing sProfileSBonitaReadExceptionjava.util.List<SProfileMember> getProfileMembers(long profileId, QueryOptions queryOptions) throws SProfileMemberNotFoundException
profileId - SProfileMemberNotFoundExceptionvoid deleteAllProfileMembers()
throws SProfileMemberDeletionException
SProfileMemberDeletionExceptionlong getNumberOfProfiles(QueryOptions queryOptions) throws SBonitaReadException
queryOptions - SBonitaReadExceptionjava.util.List<SProfile> searchProfiles(QueryOptions queryOptions) throws SBonitaReadException
queryOptions - SBonitaReadExceptionlong getNumberOfProfileEntries(QueryOptions queryOptions) throws SBonitaReadException
queryOptions - SBonitaReadExceptionjava.util.List<SProfileEntry> searchProfileEntries(QueryOptions queryOptions) throws SBonitaReadException
queryOptions - SBonitaReadExceptionvoid deleteAllProfileMembersOfProfile(SProfile profile) throws SProfileMemberDeletionException
profile - SProfileMemberDeletionExceptionvoid deleteAllProfileEntriesOfProfile(SProfile profile) throws SProfileEntryDeletionException
profile - SProfileEntryDeletionExceptionSProfileMember getProfileMemberWithoutDisplayName(long profileMemberId) throws SProfileMemberNotFoundException
profileMemberId - SProfileMemberNotFoundExceptionvoid updateProfileMetaData(long profileId)
throws SProfileUpdateException
profileId - SProfileUpdateException - when given profileId is not found