public static class MockProjectRoleManager.MockRoleActor extends Object implements ProjectRoleActor
| Modifier and Type | Field and Description |
|---|---|
static String |
INVALID_PARAMETER |
static String |
TYPE |
GROUP_ROLE_ACTOR_TYPE, USER_ROLE_ACTOR_TYPE| Constructor and Description |
|---|
MockRoleActor(Long id,
Long projectRoleId,
Long projectId,
Set<ApplicationUser> users,
String type,
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;
|
void |
setId(Long id) |
void |
setParameter(String parameter) |
void |
setProjectId(Long projectId) |
void |
setProjectRoleId(Long projectRoleId) |
String |
toString() |
public static final String INVALID_PARAMETER
public static final String TYPE
public MockRoleActor(Long id, Long projectRoleId, Long projectId, Set<ApplicationUser> users, String type, String parameter) throws RoleActorDoesNotExistException
RoleActorDoesNotExistExceptionpublic Long getId()
RoleActorpublic void setId(Long id)
public Long getProjectRoleId()
RoleActorgetProjectRoleId in interface RoleActorpublic void setProjectRoleId(Long projectRoleId)
public Long getProjectId()
ProjectRoleActorgetProjectId in interface ProjectRoleActorpublic void setProjectId(Long projectId)
public String getPrettyName()
public String getDescriptor()
RoleActorgetDescriptor in interface RoleActorpublic String getType()
RoleActorpublic String getParameter()
RoleActorgetParameter in interface RoleActorpublic Set<ApplicationUser> getUsers()
RoleActorpublic void setParameter(String parameter) throws RoleActorDoesNotExistException
RoleActorDoesNotExistExceptionpublic boolean contains(ApplicationUser user)
RoleActorpublic boolean isActive()
RoleActorCopyright © 2002-2018 Atlassian. All Rights Reserved.