public interface

RoleActor

com.atlassian.jira.security.roles.RoleActor
Known Indirect Subclasses

Class Overview

This is an abstraction that allows us to associate users with ProjectRoles.

Please note: implementations must be immutable as caching presumes this.

Summary

Public Methods
boolean contains(User user)
This method is deprecated. Use this.contains instead. Since v6.0.
boolean contains(ApplicationUser user)
Does this RoleActor contain the specified user.
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.
Long getProjectRoleId()
This will get the ProjectRole that this RoleActor belongs to.
String getType()
Returns a string that identifies the implementation type.
Set<User> getUsers()
Will provide a Set of users encapsulated by this RoleActor.
boolean isActive()
Whether this Role Actor entity is active or not;

Public Methods

public boolean contains (User user)

This method is deprecated.
Use this.contains instead. Since v6.0.

Does this RoleActor contain the specified user.

Parameters
user the user to check if they are contained
Returns
  • true if the user is matched by this RoleActor

public boolean contains (ApplicationUser user)

Does this RoleActor contain the specified user.

Parameters
user the user to check if they are contained
Returns
  • true if the user is matched by this RoleActor

public String getDescriptor ()

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.

Returns
  • pretty descriptor

public Long getId ()

Returns the id for the Role Actor

Returns
  • the id for the Role Actor

public String getParameter ()

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).

Returns
  • the target of the role actor

public Long getProjectRoleId ()

This will get the ProjectRole that this RoleActor belongs to.

Returns
  • the project role that this instance belongs to.

public String getType ()

Returns a string that identifies the implementation type. This allows us to group common types.

Returns
  • implementation type

public Set<User> getUsers ()

Will provide a Set of users encapsulated by this RoleActor.

Returns
  • a Set of users encapsulated by this RoleActor.

public boolean isActive ()

Whether this Role Actor entity is active or not;