public class MockRoleActor extends Object implements ProjectRoleActor
GROUP_ROLE_ACTOR_TYPE, USER_ROLE_ACTOR_TYPE| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(ApplicationUser 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<ApplicationUser> |
getUsers()
Will provide a Set of users encapsulated by this RoleActor.
|
int |
hashCode() |
boolean |
isActive()
Whether this Role Actor entity is active or not;
|
public MockRoleActor(Long projectRoleId, Long projectId, String descriptor, String parameter, String type)
public String getDescriptor()
RoleActorgetDescriptor in interface RoleActorpublic String getPrettyName()
public String getType()
RoleActorpublic Set<ApplicationUser> getUsers()
RoleActorpublic boolean contains(ApplicationUser user)
RoleActorpublic boolean isActive()
RoleActorpublic Long getProjectId()
ProjectRoleActorgetProjectId in interface ProjectRoleActorpublic Long getProjectRoleId()
RoleActorgetProjectRoleId in interface RoleActorpublic Long getId()
RoleActorpublic String getParameter()
RoleActorgetParameter in interface RoleActorCopyright © 2002-2017 Atlassian. All Rights Reserved.