Class ProjectRoleActorsImpl
java.lang.Object
com.atlassian.jira.security.roles.DefaultRoleActorsImpl
com.atlassian.jira.security.roles.ProjectRoleActorsImpl
- All Implemented Interfaces:
DefaultRoleActors
,ProjectRoleActors
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionProjectRoleActorsImpl
(Long projectId, Long projectRoleId, RoleActor roleActor) ProjectRoleActorsImpl
(Long projectId, Long projectRoleId, Set<? extends RoleActor> roleActors) -
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 setremoveRoleActor
(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 settoString()
Methods inherited from class com.atlassian.jira.security.roles.DefaultRoleActorsImpl
contains, getApplicationUsers, getProjectRoleId, getRoleActors, getRoleActorsByType, getUsers
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.jira.security.roles.DefaultRoleActors
contains, getApplicationUsers, getProjectRoleId, getRoleActors, getRoleActorsByType, getUsers
-
Constructor Details
-
ProjectRoleActorsImpl
-
ProjectRoleActorsImpl
-
-
Method Details
-
getProjectId
- Specified by:
getProjectId
in interfaceProjectRoleActors
-
addRoleActor
Description copied from interface:DefaultRoleActors
Add the RoleActor to the contained set of RoleActors and return a new DefaultRoleActors with the modified set- Specified by:
addRoleActor
in interfaceDefaultRoleActors
- Overrides:
addRoleActor
in classDefaultRoleActorsImpl
- Parameters:
roleActor
- the RoleActor to add- Returns:
- a copy of this DefaultRoleActors with the added RoleActor in its set of RoleActors
-
addRoleActors
Description copied from interface:DefaultRoleActors
Add the collection of RoleActors to the contained set of RoleActors and return a new DefaultRoleActors with the modified set- Specified by:
addRoleActors
in interfaceDefaultRoleActors
- Overrides:
addRoleActors
in classDefaultRoleActorsImpl
- Parameters:
roleActors
- the collection RoleActor to add- Returns:
- a copy of this DefaultRoleActors with the added RoleActors in its set of RoleActors
-
removeRoleActor
Description copied from interface:DefaultRoleActors
Remove the RoleActor from the contained set of RoleActors and return a new DefaultRoleActors with the modified set- Specified by:
removeRoleActor
in interfaceDefaultRoleActors
- Overrides:
removeRoleActor
in classDefaultRoleActorsImpl
- 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
Description copied from interface:DefaultRoleActors
Remove the RoleActor from the contained set of RoleActors and return a new DefaultRoleActors with the modified set- Specified by:
removeRoleActors
in interfaceDefaultRoleActors
- Overrides:
removeRoleActors
in classDefaultRoleActorsImpl
- 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.
-
toString
- Overrides:
toString
in classDefaultRoleActorsImpl
-