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 DefaultRoleActors
public Set<ApplicationUser> getApplicationUsers()
getApplicationUsers
in interface DefaultRoleActors
public Set<RoleActor> getRoleActors()
getRoleActors
in interface DefaultRoleActors
public Long getProjectRoleId()
getProjectRoleId
in interface DefaultRoleActors
public Set<RoleActor> getRoleActorsByType(String type)
getRoleActorsByType
in interface DefaultRoleActors
public boolean contains(ApplicationUser user)
DefaultRoleActors
contains
in interface DefaultRoleActors
user
- the application user to check if they are containedpublic DefaultRoleActors addRoleActor(RoleActor roleActor)
DefaultRoleActors
addRoleActor
in interface DefaultRoleActors
roleActor
- the RoleActor to addpublic DefaultRoleActors addRoleActors(Collection<? extends RoleActor> roleActors)
DefaultRoleActors
addRoleActors
in interface DefaultRoleActors
roleActors
- the collection RoleActor to addpublic DefaultRoleActors removeRoleActor(RoleActor roleActor)
DefaultRoleActors
removeRoleActor
in interface DefaultRoleActors
roleActor
- the RoleActor to removepublic DefaultRoleActors removeRoleActors(Collection<? extends RoleActor> roleActors)
DefaultRoleActors
removeRoleActors
in interface DefaultRoleActors
roleActors
- the RoleActor to removeCopyright © 2002-2019 Atlassian. All Rights Reserved.