@Internal public class GroupRoleActorFactory extends Object implements OptimizedRoleActorFactory
Modifier and Type | Class and Description |
---|---|
class |
GroupRoleActorFactory.GroupRoleActor |
Modifier and Type | Field and Description |
---|---|
static String |
TYPE
Deprecated.
Use
ProjectRoleActor.GROUP_ROLE_ACTOR_TYPE instead. Since v6.4. |
Constructor and Description |
---|
GroupRoleActorFactory(GroupManager groupManager,
DbConnectionManager dbConnectionManager) |
Modifier and Type | Method and Description |
---|---|
ProjectRoleActor |
createRoleActor(Long id,
Long projectRoleId,
Long projectId,
String type,
String groupName)
Create instances of the ProjectRoleActor
|
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 static final String TYPE
ProjectRoleActor.GROUP_ROLE_ACTOR_TYPE
instead. Since v6.4.public GroupRoleActorFactory(GroupManager groupManager, DbConnectionManager dbConnectionManager)
public ProjectRoleActor createRoleActor(Long id, Long projectRoleId, Long projectId, String type, String groupName) throws RoleActorDoesNotExistException
RoleActorFactory
createRoleActor
in interface RoleActorFactory
RoleActorDoesNotExistException
public Set<RoleActor> optimizeRoleActorSet(Set<RoleActor> roleActors)
RoleActorFactory
optimizeRoleActorSet
in interface RoleActorFactory
roleActors
- a Set of RoleActor instances@Nonnull public Set<ProjectRoleActor> getAllRoleActorsForUser(@Nullable ApplicationUser user)
OptimizedRoleActorFactory
getAllRoleActorsForUser
in interface OptimizedRoleActorFactory
user
- for which actors will be obtainedCopyright © 2002-2015 Atlassian. All Rights Reserved.