com.atlassian.jira.security.roles
Interface RoleActorFactory

All Known Implementing Classes:
GroupRoleActorFactory, PluginDelegatingRoleActorFactory, UserRoleActorFactory

@PublicSpi
public interface RoleActorFactory

Create RoleActor instances.


Method Summary
 ProjectRoleActor createRoleActor(Long id, Long projectRoleId, Long projectId, String type, String parameter)
          Create instances of the ProjectRoleActor
 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.
 

Method Detail

createRoleActor

ProjectRoleActor createRoleActor(Long id,
                                 Long projectRoleId,
                                 Long projectId,
                                 String type,
                                 String parameter)
                                 throws RoleActorDoesNotExistException
Create instances of the ProjectRoleActor

Parameters:
id -
projectRoleId -
projectId -
type -
parameter -
Returns:
Throws:
RoleActorDoesNotExistException

optimizeRoleActorSet

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.

Parameters:
roleActors - a Set of RoleActor instances
Returns:
the optimized Set perhaps containing aggregations that can be queried more efficiently.


Copyright © 2002-2012 Atlassian. All Rights Reserved.