public class

DefaultRoleActorsImpl

extends Object
implements DefaultRoleActors
java.lang.Object
   ↳ com.atlassian.jira.security.roles.DefaultRoleActorsImpl
Known Direct Subclasses

Summary

Public Constructors
DefaultRoleActorsImpl(Long projectRoleId, Set<? extends RoleActor> roleActors)
DefaultRoleActorsImpl(Long projectRoleId, RoleActor roleActor)
This will allow you to add a single role actor to the internal Set used for the role actors.
Public Methods
DefaultRoleActors addRoleActor(RoleActor roleActor)
Add the RoleActor to the contained set of RoleActors and return a new DefaultRoleActors with the modified set
DefaultRoleActors addRoleActors(Collection<? extends RoleActor> roleActors)
Add the collection of RoleActors to the contained set of RoleActors and return a new DefaultRoleActors with the modified set
boolean contains(ApplicationUser user)
Does the collection of RoleActor instances contain the specified user.
Set<ApplicationUser> getApplicationUsers()
Long getProjectRoleId()
Set<RoleActor> getRoleActors()
Set<RoleActor> getRoleActorsByType(String type)
Set<ApplicationUser> getUsers()
DefaultRoleActors removeRoleActor(RoleActor roleActor)
Remove the RoleActor from the contained set of RoleActors and return a new DefaultRoleActors with the modified set
DefaultRoleActors removeRoleActors(Collection<? extends RoleActor> roleActors)
Remove the RoleActor from the contained set of RoleActors and return a new DefaultRoleActors with the modified set
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.security.roles.DefaultRoleActors

Public Constructors

public DefaultRoleActorsImpl (Long projectRoleId, Set<? extends RoleActor> roleActors)

public DefaultRoleActorsImpl (Long projectRoleId, RoleActor roleActor)

This will allow you to add a single role actor to the internal Set used for the role actors. This is a convience constructor to allow us to easily add a single RoleActor

Parameters
projectRoleId the Project Role Id we are modelling
roleActor the Project Role we are modelling

Public Methods

public DefaultRoleActors addRoleActor (RoleActor roleActor)

Add the RoleActor to the contained set of RoleActors and return a new DefaultRoleActors with the modified set

Parameters
roleActor the RoleActor to add
Returns
  • a copy of this DefaultRoleActors with the added RoleActor in its set of RoleActors

public DefaultRoleActors addRoleActors (Collection<? extends RoleActor> roleActors)

Add the collection of RoleActors to the contained set of RoleActors and return a new DefaultRoleActors with the modified set

Parameters
roleActors the collection RoleActor to add
Returns
  • a copy of this DefaultRoleActors with the added RoleActors in its set of RoleActors

public boolean contains (ApplicationUser user)

Does the collection of RoleActor instances contain the specified user.

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

public Set<ApplicationUser> getApplicationUsers ()

public Long getProjectRoleId ()

public Set<RoleActor> getRoleActors ()

public Set<RoleActor> getRoleActorsByType (String type)

public Set<ApplicationUser> getUsers ()

public DefaultRoleActors removeRoleActor (RoleActor roleActor)

Remove the RoleActor from the contained set of RoleActors and return a new DefaultRoleActors with the modified set

Parameters
roleActor the RoleActor to remove
Returns
  • a copy of this DefaultRoleActors with the removed RoleActor in its set of RoleActors, may be this if unchanged

public DefaultRoleActors removeRoleActors (Collection<? extends RoleActor> roleActors)

Remove the RoleActor from the contained set of RoleActors and return a new DefaultRoleActors with the modified set

Parameters
roleActors the RoleActor to remove
Returns
  • a copy of this DefaultRoleActors with the removed RoleActors in its set of RoleActors, may be this if unchanged.

public String toString ()