|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.security.roles.MockRoleActor
public class MockRoleActor
Field Summary |
---|
Fields inherited from interface com.atlassian.jira.security.roles.ProjectRoleActor |
---|
GROUP_ROLE_ACTOR_TYPE, USER_ROLE_ACTOR_TYPE |
Constructor Summary | |
---|---|
MockRoleActor(Long projectRoleId,
Long projectId,
String parameter,
String type)
|
|
MockRoleActor(Long projectRoleId,
Long projectId,
String descriptor,
String parameter,
String type)
|
|
MockRoleActor(String descriptor,
String parameter)
|
Method Summary | |
---|---|
boolean |
contains(ApplicationUser user)
Does this RoleActor contain the specified user. |
boolean |
contains(com.atlassian.crowd.embedded.api.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()
Returns the id for the Role Actor |
String |
getParameter()
Returns the string that identifies the target of this role actor (ex. |
String |
getPrettyName()
|
Long |
getProjectId()
Gets the project this is associated with. |
Long |
getProjectRoleId()
This will get the ProjectRole that this RoleActor belongs to. |
String |
getType()
Returns a string that identifies the implementation type. |
Set<com.atlassian.crowd.embedded.api.User> |
getUsers()
Will provide a Set of users encapsulated by this RoleActor. |
int |
hashCode()
|
boolean |
isActive()
Whether this Role Actor entity is active or not; |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockRoleActor(String descriptor, String parameter)
public MockRoleActor(Long projectRoleId, Long projectId, String descriptor, String parameter, String type)
public MockRoleActor(Long projectRoleId, Long projectId, String parameter, String type)
Method Detail |
---|
public String getDescriptor()
RoleActor
getDescriptor
in interface RoleActor
public String getPrettyName()
public String getType()
RoleActor
getType
in interface RoleActor
public Set<com.atlassian.crowd.embedded.api.User> getUsers()
RoleActor
getUsers
in interface RoleActor
public boolean contains(ApplicationUser user)
RoleActor
contains
in interface RoleActor
user
- the user to check if they are contained
public boolean contains(com.atlassian.crowd.embedded.api.User user)
RoleActor
contains
in interface RoleActor
user
- the user to check if they are contained
public boolean isActive()
RoleActor
isActive
in interface RoleActor
public Long getProjectId()
ProjectRoleActor
getProjectId
in interface ProjectRoleActor
public Long getProjectRoleId()
RoleActor
getProjectRoleId
in interface RoleActor
public Long getId()
RoleActor
getId
in interface RoleActor
public String getParameter()
RoleActor
getParameter
in interface RoleActor
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 |