com.atlassian.jira.security.roles.actor
Class GroupRoleActorFactory.GroupRoleActor

java.lang.Object
  extended by com.atlassian.jira.security.roles.actor.AbstractRoleActor
      extended by com.atlassian.jira.security.roles.actor.GroupRoleActorFactory.GroupRoleActor
All Implemented Interfaces:
ProjectRoleActor, RoleActor
Enclosing class:
GroupRoleActorFactory

public static class GroupRoleActorFactory.GroupRoleActor
extends AbstractRoleActor


Method Summary
 boolean contains(User user)
          Does this RoleActor contain the specified user.
 String getDescriptor()
          Returns a pretty viewable representation of the contents of the RoleActor (e.g.
 Group getGroup()
           
 String getType()
          Returns a string that identifies the implementation type.
 Set getUsers()
          Will provide a Set of users encapsulated by this RoleActor.
 
Methods inherited from class com.atlassian.jira.security.roles.actor.AbstractRoleActor
equals, getId, getParameter, getProjectId, getProjectRoleId, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getType

public String getType()
Description copied from interface: RoleActor
Returns a string that identifies the implementation type. This allows us to group common types.

Returns:
implementation type

getDescriptor

public String getDescriptor()
Description copied from interface: RoleActor
Returns a pretty viewable representation of the contents of the RoleActor (e.g. if a UserRoleActor, then their full name, James Brown, if a GroupRoleActor, then the name of the group, Business Analysts). NOTE that the returned value is used in RoleActorComparator for sorting.

Specified by:
getDescriptor in interface RoleActor
Overrides:
getDescriptor in class AbstractRoleActor
Returns:
pretty descriptor

getUsers

public Set getUsers()
Description copied from interface: RoleActor
Will provide a Set of users encapsulated by this RoleActor.

Returns:
a Set of users encapsulated by this RoleActor.

contains

public boolean contains(User user)
Description copied from interface: RoleActor
Does this RoleActor contain the specified user.

Parameters:
user - the user to check if they are contained
Returns:
true if the user is matched by this RoleActor

getGroup

public Group getGroup()


Copyright © 2002-2007 Atlassian. All Rights Reserved.