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
RoleActorDoesNotExistException
public Long getId()
RoleActor
public void setId(Long id)
public Long getProjectRoleId()
RoleActor
getProjectRoleId
in interface RoleActor
public void setProjectRoleId(Long projectRoleId)
public Long getProjectId()
ProjectRoleActor
getProjectId
in interface ProjectRoleActor
public void setProjectId(Long projectId)
public String getPrettyName()
public String getDescriptor()
RoleActor
getDescriptor
in interface RoleActor
public String getType()
RoleActor
public String getParameter()
RoleActor
getParameter
in interface RoleActor
public Set<ApplicationUser> getUsers()
RoleActor
public void setParameter(String parameter) throws RoleActorDoesNotExistException
RoleActorDoesNotExistException
public boolean contains(ApplicationUser user)
RoleActor
public boolean isActive()
RoleActor
Copyright © 2002-2022 Atlassian. All Rights Reserved.