public interface ActorMappingService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTOR |
static java.lang.String |
ACTOR_MEMBER |
| Modifier and Type | Method and Description |
|---|---|
SActor |
addActor(SActor actor)
Create an actor by given actor
|
java.util.Set<SActor> |
addActors(java.util.Set<SActor> actors)
Create actors by given actors
|
SActorMember |
addGroupToActor(long actorId,
long groupId)
Add the groupId specified group to the actorId specified actor
|
SActorMember |
addRoleAndGroupToActor(long actorId,
long roleId,
long groupId)
Add the roleId and groupId specified relationship to the actorId specified actor
|
SActorMember |
addRoleToActor(long actorId,
long roleId)
Add the roleId specified role to the actorId specified actor
|
SActorMember |
addUserToActor(long actorId,
long userId)
Add the userId specified user to the actorId specified actor
|
boolean |
canUserStartProcessDefinition(long userId,
long processDefinitionId)
Is a specified user allowed to start a process?
|
SActorMember |
deleteActorMember(long actorMemberId)
Remove actorMember for the give actorMemberId
|
void |
deleteActorMember(SActorMember actorMember)
Remove an actor member
|
void |
deleteActors(long scopeId)
Delete actors in the id specified scope
|
void |
deleteAllActorMembers()
Delete all actor members for the connected tenant
|
SActor |
getActor(long actorId)
Get actor by actor id
If the actor by a given actorId is not found, it will throw SActorNotFoundException
|
SActor |
getActor(java.lang.String actorName,
long scopeId)
Get actor by actor name and scope id
If the actor by a given actorName and scopeId is not found, it will throw SActorNotFoundException
|
SActorMember |
getActorMember(long actorId,
long userId,
long groupId,
long roleId)
Get the actor member
|
java.util.List<SActorMember> |
getActorMembers(long actorId,
int index,
int numberOfActorMembers)
Get list of SActorMember objects by pagination
|
java.util.List<SActorMember> |
getActorMembersOfGroup(long groupId,
int index,
int numberOfActorMembers)
Get a list of SActorMember objects for given groupId
|
java.util.List<SActorMember> |
getActorMembersOfRole(long roleId,
int fromIndex,
int numberOfActorMembers)
Get a list of SActorMember objects for given roleId
|
java.util.List<SActorMember> |
getActorMembersOfUser(long userId,
int fromIndex,
int numberOfActorMembers)
Get a list of SActorMember objects for given userId
|
java.util.List<SActor> |
getActors(java.util.List<java.lang.Long> actorIds)
Get a list of actors by the given list of actor ids
|
java.util.List<SActor> |
getActors(long processDefinitionId,
QueryOptions queryOptions)
Get paginated actors
|
java.util.List<SActor> |
getActors(java.util.Set<java.lang.Long> scopeIds,
java.lang.Long userId)
Get a list of all actors for the id specified user in certain scopes specified by scopeIds
|
long |
getNumberOfActorMembers(long actorId)
Get number of ActorMembers for give actorId
|
long |
getNumberOfGroupsOfActor(long actorId)
Get the number of groups corresponding to an actor
|
long |
getNumberOfMembershipsOfActor(long actorId)
Get the number of memberships (role and group) of an actor
|
long |
getNumberOfRolesOfActor(long actorId)
Get the number of roles of an actor
|
long |
getNumberOfUsersOfActor(long actorId)
Return the number of users corresponding to an actor
|
java.util.List<java.lang.Long> |
getPossibleUserIdsOfActorId(long actorId,
int startIndex,
int maxResults) |
SActor |
updateActor(long actorId,
EntityUpdateDescriptor updateDescriptor)
Update actor by its id
If the actor by a given actorId is not found, it will throw processDefinitionNotFountExcetion
|
static final java.lang.String ACTOR
static final java.lang.String ACTOR_MEMBER
SActor addActor(SActor actor) throws SActorCreationException
actor - The given actor without idSActorCreationExceptionjava.util.Set<SActor> addActors(java.util.Set<SActor> actors) throws SActorCreationException
actors - The given actors without IDsSActorCreationExceptionSActor getActor(long actorId) throws SActorNotFoundException, SBonitaReadException
actorId - Id of actorSActorNotFoundExceptionSBonitaReadExceptionSActor getActor(java.lang.String actorName, long scopeId) throws SActorNotFoundException
actorName - Name of actorscopeId - Id of scope, it can be processDefinitionIdSActorNotFoundException - Error thrown if no actor have an id corresponding to the parameter.java.util.List<SActor> getActors(java.util.Set<java.lang.Long> scopeIds, java.lang.Long userId) throws SBonitaReadException
scopeIds - Ids of scope, it can be processDefinitionIduserId - Id of user which is added to actorSBonitaReadExceptionSActor updateActor(long actorId, EntityUpdateDescriptor updateDescriptor) throws SActorNotFoundException, SActorUpdateException, SBonitaReadException
actorId - Id of actorupdateDescriptor - Update descriptionSActorNotFoundException - Error thrown if no actor have an id corresponding to the parameter actorId.SActorUpdateException - Error thrown if has exceptions while try to update an actorSBonitaReadExceptionvoid deleteActors(long scopeId)
throws SActorDeletionException
scopeId - Id of scope, it can be processDefinitionIdSActorDeletionException - Error thrown if has exceptions while try to delete actorsSActorMember addUserToActor(long actorId, long userId) throws SActorNotFoundException, SActorMemberCreationException
actorId - Id of actoruserId - Id of userSActorNotFoundException - Error thrown if no actor have an id corresponding to the parameter actorId.SActorMemberCreationException - Error thrown if has exceptions while try to create the SActorMember objectSActorMember addGroupToActor(long actorId, long groupId) throws SActorNotFoundException, SActorMemberCreationException
actorId - Id of actorgroupId - Id of groupSActorNotFoundException - Error thrown if no actor have an id corresponding to the parameter actorId.SActorMemberCreationException - Error thrown if has exceptions while try to create the SActorMember objectSActorMember addRoleToActor(long actorId, long roleId) throws SActorNotFoundException, SActorMemberCreationException
actorId - Id of actorroleId - Id of roleSActorNotFoundException - Error thrown if no actor have an id corresponding to the parameter actorId.SActorMemberCreationException - Error thrown if has exceptions while try to create the SActorMember objectSActorMember addRoleAndGroupToActor(long actorId, long roleId, long groupId) throws SActorNotFoundException, SActorMemberCreationException
actorId - Id of actorroleId - Id of rolegroupId - Id of groupSActorNotFoundException - Error thrown if no actor have an id corresponding to the parameter actorId.SActorMemberCreationException - Error thrown if has exceptions while try to create the SActorMember objectSActorMember deleteActorMember(long actorMemberId) throws SActorMemberNotFoundException, SActorMemberDeletionException
actorMemberId - Id of actorMemberSActorMemberNotFoundException - Error thrown if no actorMember have an id corresponding to the parameter actorMemberId.SActorMemberDeletionException - Error thrown if has exceptions while try to remove the SActorMember objectvoid deleteActorMember(SActorMember actorMember) throws SActorMemberDeletionException
actorMember - the actorMember to removeSActorMemberDeletionException - Error thrown if has exceptions while try to remove the SActorMember objectjava.util.List<SActorMember> getActorMembers(long actorId, int index, int numberOfActorMembers) throws SBonitaReadException
actorId - Id of actorindex - Index of the record to be retrieved from. First record has pageNumber 0.numberOfActorMembers - Number of result we want to get. Maximum number of result returned.SBonitaReadExceptionlong getNumberOfActorMembers(long actorId)
throws SBonitaReadException
actorId - Id of actorSBonitaReadExceptionjava.util.List<SActorMember> getActorMembersOfUser(long userId, int fromIndex, int numberOfActorMembers) throws SBonitaReadException
userId - Id of userfromIndex - Index of the record to be retrieved from. First record has pageNumber 0.numberOfActorMembers - Number of result we want to get. Maximum number of result returned.SBonitaReadExceptionjava.util.List<SActorMember> getActorMembersOfGroup(long groupId, int index, int numberOfActorMembers) throws SBonitaReadException
groupId - Id of groupSBonitaReadExceptionjava.util.List<SActorMember> getActorMembersOfRole(long roleId, int fromIndex, int numberOfActorMembers) throws SBonitaReadException
roleId - Id of roleSBonitaReadExceptionboolean canUserStartProcessDefinition(long userId,
long processDefinitionId)
throws SBonitaReadException
userId - Id of userprocessDefinitionId - Id of processDefinitionSBonitaReadExceptionjava.util.List<SActor> getActors(java.util.List<java.lang.Long> actorIds) throws SActorNotFoundException, SBonitaReadException
actorIds - the list of actor ids to retrieveSActorNotFoundExceptionSBonitaReadExceptionjava.util.List<SActor> getActors(long processDefinitionId, QueryOptions queryOptions) throws SBonitaReadException
processDefinitionId - identifier of process definitionSBonitaReadExceptionlong getNumberOfUsersOfActor(long actorId)
actorId - the id of the actor to retrieve the users fromlong getNumberOfRolesOfActor(long actorId)
actorId - the id corresponding to an actorlong getNumberOfGroupsOfActor(long actorId)
throws java.lang.RuntimeException
actorId - the id of the actor to retrieve the groups fromjava.lang.RuntimeExceptionlong getNumberOfMembershipsOfActor(long actorId)
actorId - the id of the actor to retrieve the memberships fromvoid deleteAllActorMembers()
throws SActorMemberDeletionException
SActorMemberDeletionExceptionjava.util.List<java.lang.Long> getPossibleUserIdsOfActorId(long actorId,
int startIndex,
int maxResults)
throws SBonitaReadException
SBonitaReadExceptionSActorMember getActorMember(long actorId, long userId, long groupId, long roleId) throws SBonitaReadException
actorId - The identifier of the actoruserId - The identifier of the usergroupId - The identifier of the grouproleId - The identifier of the roleSBonitaReadException