public class DefaultRoleActorsImpl extends Object implements DefaultRoleActors
DefaultRoleActors| Constructor and Description |
|---|
DefaultRoleActorsImpl(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) |
| Modifier and Type | Method and Description |
|---|---|
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() |
public DefaultRoleActorsImpl(Long projectRoleId, Set<? extends RoleActor> roleActors)
public DefaultRoleActorsImpl(Long projectRoleId, RoleActor roleActor)
projectRoleId - the Project Role Id we are modellingroleActor - the Project Role we are modellingpublic Set<ApplicationUser> getUsers()
getUsers in interface DefaultRoleActorspublic Set<ApplicationUser> getApplicationUsers()
getApplicationUsers in interface DefaultRoleActorspublic Set<RoleActor> getRoleActors()
getRoleActors in interface DefaultRoleActorspublic Long getProjectRoleId()
getProjectRoleId in interface DefaultRoleActorspublic Set<RoleActor> getRoleActorsByType(String type)
getRoleActorsByType in interface DefaultRoleActorspublic boolean contains(ApplicationUser user)
DefaultRoleActorscontains in interface DefaultRoleActorsuser - the application user to check if they are containedpublic DefaultRoleActors addRoleActor(RoleActor roleActor)
DefaultRoleActorsaddRoleActor in interface DefaultRoleActorsroleActor - the RoleActor to addpublic DefaultRoleActors addRoleActors(Collection<? extends RoleActor> roleActors)
DefaultRoleActorsaddRoleActors in interface DefaultRoleActorsroleActors - the collection RoleActor to addpublic DefaultRoleActors removeRoleActor(RoleActor roleActor)
DefaultRoleActorsremoveRoleActor in interface DefaultRoleActorsroleActor - the RoleActor to removepublic DefaultRoleActors removeRoleActors(Collection<? extends RoleActor> roleActors)
DefaultRoleActorsremoveRoleActors in interface DefaultRoleActorsroleActors - the RoleActor to removeCopyright © 2002-2023 Atlassian. All Rights Reserved.