Class MockRoleActor
java.lang.Object
com.atlassian.jira.security.roles.MockRoleActor
- All Implemented Interfaces:
ProjectRoleActor
,RoleActor
- Direct Known Subclasses:
MockGroupRoleActor
,MockUserRoleActor
-
Field Summary
Fields inherited from interface com.atlassian.jira.security.roles.ProjectRoleActor
GROUP_ROLE_ACTOR_TYPE, USER_ROLE_ACTOR_TYPE
-
Constructor Summary
ConstructorDescriptionMockRoleActor
(Long projectRoleId, Long projectId, String parameter, String type) MockRoleActor
(String descriptor, String parameter) -
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(ApplicationUser user) Does this RoleActor contain the specified user.boolean
Returns a pretty viewable representation of the contents of the RoleActor (e.g.getId()
Returns the id for the Role ActorReturns the string that identifies the target of this role actor (ex.Gets the project this is associated with.This will get the ProjectRole that this RoleActor belongs to.getType()
Returns a string that identifies the implementation type.getUsers()
Will provide a Set of users encapsulated by this RoleActor.int
hashCode()
boolean
isActive()
Whether this Role Actor entity is active or not;
-
Constructor Details
-
MockRoleActor
-
MockRoleActor
-
MockRoleActor
-
-
Method Details
-
getDescriptor
Description copied from interface:RoleActor
Returns a pretty viewable representation of the contents of the RoleActor (e.g. if a UserRoleActor, then their full name, James Brown, if a GroupRoleActor, then the name of the group, Business Analysts). NOTE that the returned value is used in RoleActorComparator for sorting.- Specified by:
getDescriptor
in interfaceRoleActor
- Returns:
- pretty descriptor
-
getPrettyName
-
getType
Description copied from interface:RoleActor
Returns a string that identifies the implementation type. This allows us to group common types. -
getUsers
Description copied from interface:RoleActor
Will provide a Set of users encapsulated by this RoleActor. -
contains
Description copied from interface:RoleActor
Does this RoleActor contain the specified user. -
isActive
public boolean isActive()Description copied from interface:RoleActor
Whether this Role Actor entity is active or not; -
getProjectId
Description copied from interface:ProjectRoleActor
Gets the project this is associated with.- Specified by:
getProjectId
in interfaceProjectRoleActor
- Returns:
- project associated with
-
getProjectRoleId
Description copied from interface:RoleActor
This will get the ProjectRole that this RoleActor belongs to.- Specified by:
getProjectRoleId
in interfaceRoleActor
- Returns:
- the project role that this instance belongs to.
-
getId
Description copied from interface:RoleActor
Returns the id for the Role Actor -
getParameter
Description copied from interface:RoleActor
Returns the string that identifies the target of this role actor (ex. if you are a group role actor, then this will be the unique identifier of the group, the group name).- Specified by:
getParameter
in interfaceRoleActor
- Returns:
- the target of the role actor
-
equals
-
hashCode
public int hashCode()
-