Interface DefaultRoleActors

All Known Subinterfaces:
ProjectRoleActors
All Known Implementing Classes:
DefaultRoleActorsImpl, ProjectRoleActorsImpl

@PublicApi public interface DefaultRoleActors
This interface defines the association between a ProjectRole and a collection of default Actors. Actors associated with a ProjectRole in this way will be used to populate the ProjectRoleActors association when a new project is created within JIRA.

Note: implementations must be immutable.

  • Method Details

    • getUsers

      Set<ApplicationUser> getUsers()
    • getApplicationUsers

      Set<ApplicationUser> getApplicationUsers()
    • getRoleActors

      Set<RoleActor> getRoleActors()
    • getProjectRoleId

      Long getProjectRoleId()
    • getRoleActorsByType

      Set<RoleActor> getRoleActorsByType(String type)
    • contains

      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
    • addRoleActor

      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
    • addRoleActors

      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
    • removeRoleActor

      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
    • removeRoleActors

      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.