org.bonitasoft.engine.actor.mapping.impl
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) |
org.bonitasoft.engine.actor.mapping.model.SActorMember |
deleteActorMember(long actorMemberId) |
void |
deleteActorMember(org.bonitasoft.engine.actor.mapping.model.SActorMember sActorMember) |
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) |
org.bonitasoft.engine.actor.mapping.model.SActorMember |
getActorMember(long actorId,
long userId,
long groupId,
long roleId) |
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,
int fromIndex,
int numberOfActorMembers) |
List<org.bonitasoft.engine.actor.mapping.model.SActorMember> |
getActorMembersOfRole(long roleId,
int fromIndex,
int numberOfActorMembers) |
List<org.bonitasoft.engine.actor.mapping.model.SActorMember> |
getActorMembersOfUser(long userId,
int fromIndex,
int numberOfActorMembers) |
List<org.bonitasoft.engine.actor.mapping.model.SActor> |
getActors(List<Long> actorIds) |
List<org.bonitasoft.engine.actor.mapping.model.SActor> |
getActors(long processDefinitionId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
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,
int fromIndex,
int numberOfElements) |
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) |
boolean |
isUserInActorMemberOrManagerOfAUserInActorMember(long userId,
long actorId) |
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 deleteActorMember(long actorMemberId)
throws org.bonitasoft.engine.actor.mapping.SActorMemberNotFoundException,
org.bonitasoft.engine.actor.mapping.SActorMemberDeletionException
deleteActorMember in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.actor.mapping.SActorMemberNotFoundExceptionorg.bonitasoft.engine.actor.mapping.SActorMemberDeletionExceptionpublic void deleteActorMember(org.bonitasoft.engine.actor.mapping.model.SActorMember sActorMember)
throws org.bonitasoft.engine.actor.mapping.SActorMemberDeletionException
deleteActorMember in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.actor.mapping.SActorMemberDeletionExceptionpublic org.bonitasoft.engine.actor.mapping.model.SActorMember getActorMember(long actorId,
long userId,
long groupId,
long roleId)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getActorMember in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic 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> getActorMembersOfUser(long userId, int fromIndex, int numberOfActorMembers) 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, int fromIndex, int numberOfActorMembers) 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, int fromIndex, int numberOfActorMembers) 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, int fromIndex, int numberOfElements) 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, org.bonitasoft.engine.persistence.QueryOptions queryOptions) 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.SBonitaReadExceptionpublic boolean isUserInActorMemberOrManagerOfAUserInActorMember(long userId,
long actorId)
throws org.bonitasoft.engine.persistence.SBonitaReadException
isUserInActorMemberOrManagerOfAUserInActorMember in interface org.bonitasoft.engine.actor.mapping.ActorMappingServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionCopyright © 2014 Bonitasoft S.A.. All rights reserved.