com.atlassian.jira.security.roles
Class MockProjectRoleManager.MockRoleActor

java.lang.Object
  extended bycom.atlassian.jira.security.roles.MockProjectRoleManager.MockRoleActor
All Implemented Interfaces:
ProjectRoleActor, RoleActor
Enclosing class:
MockProjectRoleManager

public static class MockProjectRoleManager.MockRoleActor
extends Object
implements ProjectRoleActor


Field Summary
static String INVALID_PARAMETER
           
static String TYPE
           
 
Constructor Summary
MockProjectRoleManager.MockRoleActor(Long id, ProjectRole projectRole, Project project, Set users, String type, 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.
 String getPrettyName()
          Gets the pretty viewable name for this role actor, this is the user-presentable version of the role actors type.
 Project getProject()
          Gets the project this is associated with.
 ProjectRole getProjectRole()
          This will get the ProjectRole that this RoleActor belongs to.
 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 setId(Long id)
           
 void setParameter(String parameter)
          Sets the implementation specific configuration data.
 void setProject(Project project)
          Sets the project.
 void setProjectRole(ProjectRole projectRole)
          Sets the project role.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVALID_PARAMETER

public static final String INVALID_PARAMETER
See Also:
Constant Field Values

TYPE

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

MockProjectRoleManager.MockRoleActor

public MockProjectRoleManager.MockRoleActor(Long id,
                                            ProjectRole projectRole,
                                            Project project,
                                            Set users,
                                            String type,
                                            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

setId

public void setId(Long id)
Specified by:
setId 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.

setProjectRole

public void setProjectRole(ProjectRole projectRole)
Description copied from interface: RoleActor
Sets the project role.

Specified by:
setProjectRole in interface RoleActor
Parameters:
projectRole - to set

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

setProject

public void setProject(Project project)
Description copied from interface: ProjectRoleActor
Sets the project.

Specified by:
setProject in interface ProjectRoleActor
Parameters:
project - to set

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.

Specified by:
getPrettyName in interface RoleActor
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
Returns:
pretty descriptor

getType

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

Specified by:
getType in interface RoleActor
Returns:
implmentation type

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

getUsers

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

Specified by:
getUsers in interface 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.

Specified by:
setParameter in interface RoleActor
Parameters:
parameter - the configuration parameter.

equals

public boolean equals(Object o)

hashCode

public int hashCode()


Copyright © 2002-2007 Atlassian. All Rights Reserved.