|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.security.roles.MockProjectRoleManager.MockRoleActor
public static class MockProjectRoleManager.MockRoleActor
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 |
contains(User user)
Does this RoleActor contain the specified user. |
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()
|
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)
|
void |
setProject(Project project)
|
void |
setProjectRole(ProjectRole projectRole)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String INVALID_PARAMETER
public static final String TYPE
Constructor Detail |
---|
public MockProjectRoleManager.MockRoleActor(Long id, ProjectRole projectRole, Project project, Set users, String type, String parameter)
Method Detail |
---|
public Long getId()
RoleActor
getId
in interface RoleActor
public void setId(Long id)
public ProjectRole getProjectRole()
RoleActor
getProjectRole
in interface RoleActor
public void setProjectRole(ProjectRole projectRole)
public Project getProject()
ProjectRoleActor
getProject
in interface ProjectRoleActor
public void setProject(Project project)
public String getPrettyName()
public String getDescriptor()
RoleActor
RoleActorComparator
for sorting.
getDescriptor
in interface RoleActor
public String getType()
RoleActor
getType
in interface RoleActor
public String getParameter()
RoleActor
getParameter
in interface RoleActor
public Set getUsers()
RoleActor
getUsers
in interface RoleActor
public void setParameter(String parameter)
public boolean contains(User user)
RoleActor
contains
in interface RoleActor
user
- the user to check if they are contained
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |