Class DefaultRoleActorsImpl
java.lang.Object
com.atlassian.jira.security.roles.DefaultRoleActorsImpl
- All Implemented Interfaces:
DefaultRoleActors
- Direct Known Subclasses:
ProjectRoleActorsImpl
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultRoleActorsImpl(Long projectRoleId, RoleActor roleActor) This will allow you to add a single role actor to the internal Set used for the role actors.DefaultRoleActorsImpl(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 setbooleancontains(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 settoString()
-
Constructor Details
-
DefaultRoleActorsImpl
-
DefaultRoleActorsImpl
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 modellingroleActor- the Project Role we are modelling
-
-
Method Details
-
getUsers
- Specified by:
getUsersin interfaceDefaultRoleActors
-
getApplicationUsers
- Specified by:
getApplicationUsersin interfaceDefaultRoleActors
-
getRoleActors
- Specified by:
getRoleActorsin interfaceDefaultRoleActors
-
getProjectRoleId
- Specified by:
getProjectRoleIdin interfaceDefaultRoleActors
-
getRoleActorsByType
- Specified by:
getRoleActorsByTypein interfaceDefaultRoleActors
-
contains
Description copied from interface:DefaultRoleActorsDoes the collection of RoleActor instances contain the specified user.- Specified by:
containsin interfaceDefaultRoleActors- Parameters:
user- the application user to check if they are contained- Returns:
- true if the user is matched by this RoleActor
-
addRoleActor
Description copied from interface:DefaultRoleActorsAdd the RoleActor to the contained set of RoleActors and return a new DefaultRoleActors with the modified set- Specified by:
addRoleActorin interfaceDefaultRoleActors- 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:DefaultRoleActorsAdd the collection of RoleActors to the contained set of RoleActors and return a new DefaultRoleActors with the modified set- Specified by:
addRoleActorsin interfaceDefaultRoleActors- 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:DefaultRoleActorsRemove the RoleActor from the contained set of RoleActors and return a new DefaultRoleActors with the modified set- Specified by:
removeRoleActorin interfaceDefaultRoleActors- 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:DefaultRoleActorsRemove the RoleActor from the contained set of RoleActors and return a new DefaultRoleActors with the modified set- Specified by:
removeRoleActorsin interfaceDefaultRoleActors- 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
-