public static class MockProjectRoleManager.MockRoleActorFactory extends Object implements RoleActorFactory
| Constructor and Description |
|---|
MockRoleActorFactory() |
| Modifier and Type | Method and Description |
|---|---|
ProjectRoleActor |
createRoleActor(Long id,
Long projectRoleId,
Long projectId,
String type,
String parameter)
Create instance of the ProjectRoleActor representing a role actor stored in the database.
|
Set<ProjectRoleActor> |
getAllRoleActorsForUser(ApplicationUser user)
Find and return all role actors for the given user.
|
Set<RoleActor> |
optimizeRoleActorSet(Set<RoleActor> roleActors)
if RoleActors can be aggregated and queried in a more optimised way, then optimize the set to reduce its size so
we reduce the number of iterations across the set.
|
public ProjectRoleActor createRoleActor(Long id, Long projectRoleId, Long projectId, String type, String parameter) throws RoleActorDoesNotExistException
RoleActorFactorycreateRoleActor in interface RoleActorFactoryid - of the ProjectRoleActorprojectRoleId - of the ProjectRole associated with the actor.projectId - of the Project associated with the actor.type - of the actor which determines the implementation.parameter - saying with which exact entity is actor associated ie. group name, user name.RoleActorDoesNotExistExceptionpublic Set<RoleActor> optimizeRoleActorSet(Set<RoleActor> roleActors)
RoleActorFactoryoptimizeRoleActorSet in interface RoleActorFactoryroleActors - a Set of RoleActor instances@Nonnull public Set<ProjectRoleActor> getAllRoleActorsForUser(@Nullable ApplicationUser user)
RoleActorFactorygetAllRoleActorsForUser in interface RoleActorFactoryuser - for which actors will be obtainedCopyright © 2002-2021 Atlassian. All Rights Reserved.