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

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

public abstract class AbstractRoleActor
extends Object
implements ProjectRoleActor

Base class for ProjectRoleActor implementations.


Constructor Summary
AbstractRoleActor(Long id, ProjectRole projectRole, Project project, String parameter)
           
 
Method Summary
 boolean equals(Object o)
           
 String getDescriptor()
          Returns a pretty viewable representation of the contents of the RoleActor (e.g.
 Long getId()
          The id for the Role Actor
 String getParameter()
          Returns the string that identifies the target of this role actor (ex.
 Project getProject()
          Gets the project this is associated with.
protected abstract  ProjectManager getProjectManager()
           
 ProjectRole getProjectRole()
          This will get the ProjectRole that this RoleActor belongs to.
protected abstract  ProjectRoleManager getProjectRoleManager()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.security.roles.RoleActor
contains, getType, getUsers
 

Constructor Detail

AbstractRoleActor

public AbstractRoleActor(Long id,
                         ProjectRole projectRole,
                         Project project,
                         String parameter)
Method Detail

getId

public Long getId()
Description copied from interface: RoleActor
The id for the Role Actor

Specified by:
getId in interface RoleActor

getProjectRole

public ProjectRole getProjectRole()
Description copied from interface: RoleActor
This will get the ProjectRole that this RoleActor belongs to.

Specified by:
getProjectRole in interface RoleActor
Returns:
the project role that this instance belongs to.

getProject

public Project getProject()
Description copied from interface: ProjectRoleActor
Gets the project this is associated with.

Specified by:
getProject in interface ProjectRoleActor
Returns:
project associated with

getParameter

public String getParameter()
Description copied from interface: RoleActor
Returns the string that identifies the target of this role actor (ex. if you are a group role actor, then this will be the unique identifier of the group, the group name).

Specified by:
getParameter in interface RoleActor
Returns:
the target of the role actor

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
Returns:
pretty descriptor

getProjectRoleManager

protected abstract ProjectRoleManager getProjectRoleManager()

getProjectManager

protected abstract ProjectManager getProjectManager()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2007 Atlassian. All Rights Reserved.