com.atlassian.jira.security.roles
Class PluginDelegatingRoleActorFactory

java.lang.Object
  extended by com.atlassian.jira.security.roles.PluginDelegatingRoleActorFactory
All Implemented Interfaces:
RoleActorFactory

public class PluginDelegatingRoleActorFactory
extends Object
implements RoleActorFactory

Creator of RoleActor objects that have been registered dynamically.


Constructor Summary
PluginDelegatingRoleActorFactory(com.atlassian.plugin.PluginManager pluginManager)
           
 
Method Summary
 ProjectRoleActor createRoleActor(Long id, ProjectRole projectRole, Project project, String type, String parameter)
          Create instances of the ProjectRoleActor
(package private)  Map getImplementations()
           
 Set optimizeRoleActorSet(Set 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginDelegatingRoleActorFactory

public PluginDelegatingRoleActorFactory(com.atlassian.plugin.PluginManager pluginManager)
Method Detail

createRoleActor

public ProjectRoleActor createRoleActor(Long id,
                                        ProjectRole projectRole,
                                        Project project,
                                        String type,
                                        String parameter)
Description copied from interface: RoleActorFactory
Create instances of the ProjectRoleActor

Specified by:
createRoleActor in interface RoleActorFactory
Returns:

optimizeRoleActorSet

public Set optimizeRoleActorSet(Set roleActors)
Description copied from interface: RoleActorFactory
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.

Specified by:
optimizeRoleActorSet in interface RoleActorFactory
Parameters:
roleActors - a Set of RoleActor instances
Returns:
the optimized Set perhaps containing aggregations that can be queried more efficiently.

getImplementations

Map getImplementations()


Copyright © 2002-2007 Atlassian. All Rights Reserved.