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()
RoleActor
getDescriptor
in interface RoleActor
public String getPrettyName()
public String getType()
RoleActor
public Set<ApplicationUser> getUsers()
RoleActor
public boolean contains(ApplicationUser user)
RoleActor
public boolean isActive()
RoleActor
public Long getProjectId()
ProjectRoleActor
getProjectId
in interface ProjectRoleActor
public Long getProjectRoleId()
RoleActor
getProjectRoleId
in interface RoleActor
public Long getId()
RoleActor
public String getParameter()
RoleActor
getParameter
in interface RoleActor
Copyright © 2002-2021 Atlassian. All Rights Reserved.