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

java.lang.Object
  extended bycom.atlassian.jira.security.roles.actor.AbstractRoleActor
      extended bycom.atlassian.jira.security.roles.actor.GroupRoleActor
All Implemented Interfaces:
ProjectRoleActor, RoleActor

public class GroupRoleActor
extends AbstractRoleActor

Group impl of actor for project roles.


Field Summary
static String TYPE
           
 
Fields inherited from class com.atlassian.jira.security.roles.actor.AbstractRoleActor
parameter
 
Constructor Summary
GroupRoleActor(JiraAuthenticationContext jiraAuthenticationContext)
           
 
Method Summary
 boolean equals(Object o)
           
 String getDescriptor()
          Returns a pretty viewable representation of the contents of the RoleActor (e.g.
 String getPrettyName()
          Gets the pretty viewable name for this role actor, this is the user-presentable version of the role actors type.
 String getType()
          Returns a string that identifies the implementation type.
 Set getUsers()
          Will provide a Set of users encapsulated by this RoleActor.
 int hashCode()
           
 void setGroup(Group group)
          Another way of setting this RoleActor implementation's parameter.
 void setParameter(String parameter)
          Sets the implementation specific configuration data.
 
Methods inherited from class com.atlassian.jira.security.roles.actor.AbstractRoleActor
getId, getParameter, getProject, getProjectRole, setId, setProject, setProjectRole
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

GroupRoleActor

public GroupRoleActor(JiraAuthenticationContext jiraAuthenticationContext)
Method Detail

setGroup

public void setGroup(Group group)
Another way of setting this RoleActor implementation's parameter.

Parameters:
group - the group to set as the parameter.

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:
implmentation type

getPrettyName

public String getPrettyName()
Description copied from interface: RoleActor
Gets the pretty viewable name for this role actor, this is the user-presentable version of the role actors type.

Returns:
a pretty viewable name

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

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.

setParameter

public void setParameter(String parameter)
Description copied from interface: RoleActor
Sets the implementation specific configuration data.

Parameters:
parameter - the configuration parameter.

equals

public boolean equals(Object o)

hashCode

public int hashCode()


Copyright © 2002-2007 Atlassian. All Rights Reserved.