public class ActorMappingServiceImpl extends Object implements org.bonitasoft.engine.actor.mapping.ActorMappingService
| Constructor and Description |
|---|
ActorMappingServiceImpl(org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService,
IdentityService identityService) |
| Modifier and Type | Method and Description |
|---|---|
org.bonitasoft.engine.actor.mapping.model.SActor |
addActor(org.bonitasoft.engine.actor.mapping.model.SActor actor) |
Set<org.bonitasoft.engine.actor.mapping.model.SActor> |
addActors(Set<org.bonitasoft.engine.actor.mapping.model.SActor> actors) |
org.bonitasoft.engine.actor.mapping.model.SActorMember |
addGroupToActor(long actorId,
long groupId) |
org.bonitasoft.engine.actor.mapping.model.SActorMember |
addRoleAndGroupToActor(long actorId,
long roleId,
long groupId) |
org.bonitasoft.engine.actor.mapping.model.SActorMember |
addRoleToActor(long actorId,
long roleId) |
org.bonitasoft.engine.actor.mapping.model.SActorMember |
addUserToActor(long actorId,
long userId) |
void |
deleteActors(long scopeId) |
void |
deleteAllActorMembers() |
org.bonitasoft.engine.actor.mapping.model.SActor |
getActor(long actorId) |
org.bonitasoft.engine.actor.mapping.model.SActor |
getActor(String actorName,
long scopeId) |
List<org.bonitasoft.engine.actor.mapping.model.SActorMember> |
getActorMembers(int fromIndex,
int numberOfActorMembers) |
List<org.bonitasoft.engine.actor.mapping.model.SActorMember> |
getActorMembers(long actorId,
int fromIndex,
int numberOfActorMembers) |
List<org.bonitasoft.engine.actor.mapping.model.SActorMember> |
getActorMembersOfGroup(long groupId) |
List<org.bonitasoft.engine.actor.mapping.model.SActorMember> |
getActorMembersOfRole(long roleId) |
List<org.bonitasoft.engine.actor.mapping.model.SActorMember> |
getActorMembersOfUser(long userId) |
List<org.bonitasoft.engine.actor.mapping.model.SActor> |
getActors(List<Long> actorIds) |
List<org.bonitasoft.engine.actor.mapping.model.SActor> |
getActors(long scopeId) |
List<org.bonitasoft.engine.actor.mapping.model.SActor> |
getActors(long processDefinitionId,
int pageNumber,
int numberPerPage,
String orderByField,
org.bonitasoft.engine.persistence.OrderByType order) |
List<org.bonitasoft.engine.actor.mapping.model.SActor> |
getActors(Set<Long> scopeIds,
Long userId) |
List<org.bonitasoft.engine.actor.mapping.model.SActor> |
getActorsOfUserCanStartProcessDefinition(long userId,
long processDefinitionid) |
long |
getNumberOfActorMembers(long actorId) |
long |
getNumberOfGroupsOfActor(long actorId) |
long |
getNumberOfMembershipsOfActor(long actorId) |
long |
getNumberOfRolesOfActor(long actorId) |
long |
getNumberOfUsersOfActor(long actorId) |
List<Long> |
getPossibleUserIdsOfActorId(long actorId,
int startIndex,
int maxResults) |
org.bonitasoft.engine.actor.mapping.model.SActorMember |
removeActorMember(long actorMemberId) |
void |
removeActorMember(org.bonitasoft.engine.actor.mapping.model.SActorMember sActorMember) |
org.bonitasoft.engine.actor.mapping.model.SActor |
updateActor(long actorId,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) |
public ActorMappingServiceImpl(org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService,
IdentityService identityService)
public Set<org.bonitasoft.engine.actor.mapping.model.SActor> addActors(Set<org.bonitasoft.engine.actor.mapping.model.SActor> actors) throws org.bonitasoft.engine.actor.mapping.SActorCreationException
addActors in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.actor.mapping.SActorCreationExceptionpublic org.bonitasoft.engine.actor.mapping.model.SActor addActor(org.bonitasoft.engine.actor.mapping.model.SActor actor)
throws org.bonitasoft.engine.actor.mapping.SActorCreationException
addActor in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.actor.mapping.SActorCreationExceptionpublic org.bonitasoft.engine.actor.mapping.model.SActor getActor(long actorId)
throws org.bonitasoft.engine.actor.mapping.SActorNotFoundException,
org.bonitasoft.engine.persistence.SBonitaReadException
getActor in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.actor.mapping.SActorNotFoundExceptionorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfUsersOfActor(long actorId)
getNumberOfUsersOfActor in interface org.bonitasoft.engine.actor.mapping.ActorMappingServicepublic long getNumberOfRolesOfActor(long actorId)
getNumberOfRolesOfActor in interface org.bonitasoft.engine.actor.mapping.ActorMappingServicepublic long getNumberOfGroupsOfActor(long actorId)
getNumberOfGroupsOfActor in interface org.bonitasoft.engine.actor.mapping.ActorMappingServicepublic long getNumberOfMembershipsOfActor(long actorId)
getNumberOfMembershipsOfActor in interface org.bonitasoft.engine.actor.mapping.ActorMappingServicepublic List<org.bonitasoft.engine.actor.mapping.model.SActor> getActors(List<Long> actorIds) throws org.bonitasoft.engine.persistence.SBonitaReadException
getActors in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic org.bonitasoft.engine.actor.mapping.model.SActor getActor(String actorName, long scopeId) throws org.bonitasoft.engine.actor.mapping.SActorNotFoundException
getActor in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.actor.mapping.SActorNotFoundExceptionpublic org.bonitasoft.engine.actor.mapping.model.SActor updateActor(long actorId,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor)
throws org.bonitasoft.engine.actor.mapping.SActorNotFoundException,
org.bonitasoft.engine.actor.mapping.SActorUpdateException,
org.bonitasoft.engine.persistence.SBonitaReadException
updateActor in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.actor.mapping.SActorNotFoundExceptionorg.bonitasoft.engine.actor.mapping.SActorUpdateExceptionorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic void deleteActors(long scopeId)
throws org.bonitasoft.engine.actor.mapping.SActorDeletionException
deleteActors in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.actor.mapping.SActorDeletionExceptionpublic List<org.bonitasoft.engine.actor.mapping.model.SActor> getActors(Set<Long> scopeIds, Long userId) throws org.bonitasoft.engine.persistence.SBonitaReadException
getActors in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic org.bonitasoft.engine.actor.mapping.model.SActorMember addUserToActor(long actorId,
long userId)
throws org.bonitasoft.engine.actor.mapping.SActorMemberCreationException
addUserToActor in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.actor.mapping.SActorMemberCreationExceptionpublic org.bonitasoft.engine.actor.mapping.model.SActorMember addGroupToActor(long actorId,
long groupId)
throws org.bonitasoft.engine.actor.mapping.SActorNotFoundException,
org.bonitasoft.engine.actor.mapping.SActorMemberCreationException
addGroupToActor in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.actor.mapping.SActorNotFoundExceptionorg.bonitasoft.engine.actor.mapping.SActorMemberCreationExceptionpublic org.bonitasoft.engine.actor.mapping.model.SActorMember addRoleToActor(long actorId,
long roleId)
throws org.bonitasoft.engine.actor.mapping.SActorMemberCreationException
addRoleToActor in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.actor.mapping.SActorMemberCreationExceptionpublic org.bonitasoft.engine.actor.mapping.model.SActorMember addRoleAndGroupToActor(long actorId,
long roleId,
long groupId)
throws org.bonitasoft.engine.actor.mapping.SActorNotFoundException,
org.bonitasoft.engine.actor.mapping.SActorMemberCreationException
addRoleAndGroupToActor in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.actor.mapping.SActorNotFoundExceptionorg.bonitasoft.engine.actor.mapping.SActorMemberCreationExceptionpublic org.bonitasoft.engine.actor.mapping.model.SActorMember removeActorMember(long actorMemberId)
throws org.bonitasoft.engine.actor.mapping.SActorMemberNotFoundException,
org.bonitasoft.engine.actor.mapping.SActorMemberDeletionException
removeActorMember in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.actor.mapping.SActorMemberNotFoundExceptionorg.bonitasoft.engine.actor.mapping.SActorMemberDeletionExceptionpublic void removeActorMember(org.bonitasoft.engine.actor.mapping.model.SActorMember sActorMember)
throws org.bonitasoft.engine.actor.mapping.SActorMemberDeletionException
removeActorMember in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.actor.mapping.SActorMemberDeletionExceptionpublic long getNumberOfActorMembers(long actorId)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfActorMembers in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.actor.mapping.model.SActorMember> getActorMembers(long actorId, int fromIndex, int numberOfActorMembers) throws org.bonitasoft.engine.persistence.SBonitaReadException
getActorMembers in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.actor.mapping.model.SActorMember> getActorMembers(int fromIndex, int numberOfActorMembers) throws org.bonitasoft.engine.persistence.SBonitaReadException
org.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.actor.mapping.model.SActor> getActors(long scopeId) throws org.bonitasoft.engine.persistence.SBonitaReadException
getActors in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.actor.mapping.model.SActorMember> getActorMembersOfUser(long userId) throws org.bonitasoft.engine.persistence.SBonitaReadException
getActorMembersOfUser in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.actor.mapping.model.SActorMember> getActorMembersOfGroup(long groupId) throws org.bonitasoft.engine.persistence.SBonitaReadException
getActorMembersOfGroup in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.actor.mapping.model.SActorMember> getActorMembersOfRole(long roleId) throws org.bonitasoft.engine.persistence.SBonitaReadException
getActorMembersOfRole in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.actor.mapping.model.SActor> getActorsOfUserCanStartProcessDefinition(long userId, long processDefinitionid) throws org.bonitasoft.engine.persistence.SBonitaReadException
getActorsOfUserCanStartProcessDefinition in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.actor.mapping.model.SActor> getActors(long processDefinitionId, int pageNumber, int numberPerPage, String orderByField, org.bonitasoft.engine.persistence.OrderByType order) throws org.bonitasoft.engine.persistence.SBonitaReadException
getActors in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic void deleteAllActorMembers()
throws org.bonitasoft.engine.actor.mapping.SActorMemberDeletionException
deleteAllActorMembers in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.actor.mapping.SActorMemberDeletionExceptionpublic List<Long> getPossibleUserIdsOfActorId(long actorId, int startIndex, int maxResults) throws org.bonitasoft.engine.persistence.SBonitaReadException
getPossibleUserIdsOfActorId in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionCopyright © 2014 Bonitasoft S.A.. All Rights Reserved.