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 Summary
Modifier and TypeMethodDescriptionaddRoleActor
(RoleActor roleActor) Add the RoleActor to the contained set of RoleActors and return a new DefaultRoleActors with the modified setaddRoleActors
(Collection<? extends RoleActor> roleActors) Add the collection of RoleActors to the contained set of RoleActors and return a new DefaultRoleActors with the modified setboolean
contains
(ApplicationUser user) Does the collection of RoleActor instances contain the specified user.getRoleActorsByType
(String type) getUsers()
removeRoleActor
(RoleActor roleActor) Remove the RoleActor from the contained set of RoleActors and return a new DefaultRoleActors with the modified setremoveRoleActors
(Collection<? extends RoleActor> roleActors) Remove the RoleActor from the contained set of RoleActors and return a new DefaultRoleActors with the modified set
-
Method Details
-
getUsers
Set<ApplicationUser> getUsers() -
getApplicationUsers
Set<ApplicationUser> getApplicationUsers() -
getRoleActors
-
getProjectRoleId
Long getProjectRoleId() -
getRoleActorsByType
-
contains
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
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
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
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
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.
-