|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.security.roles.DefaultRoleActorsImpl
public class DefaultRoleActorsImpl
DefaultRoleActors
Constructor Summary | |
---|---|
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 roleActors)
|
Method Summary | |
---|---|
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 roleActors)
Add the collection of RoleActors to the contained set of RoleActors and return a new DefaultRoleActors with the modified set |
boolean |
contains(com.atlassian.crowd.embedded.api.User user)
Does the collection of RoleActor instances contain the specified user. |
Long |
getProjectRoleId()
|
Set |
getRoleActors()
|
Set |
getRoleActorsByType(String type)
|
Set<com.atlassian.crowd.embedded.api.User> |
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 roleActors)
Remove the RoleActor from the contained set of RoleActors and return a new DefaultRoleActors with the modified set |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultRoleActorsImpl(Long projectRoleId, Set roleActors)
public DefaultRoleActorsImpl(Long projectRoleId, RoleActor roleActor)
projectRoleId
- the Project Role Id we are modellingroleActor
- the Project Role we are modellingMethod Detail |
---|
public Set<com.atlassian.crowd.embedded.api.User> getUsers()
getUsers
in interface DefaultRoleActors
public Set getRoleActors()
getRoleActors
in interface DefaultRoleActors
public Long getProjectRoleId()
getProjectRoleId
in interface DefaultRoleActors
public Set getRoleActorsByType(String type)
getRoleActorsByType
in interface DefaultRoleActors
public boolean contains(com.atlassian.crowd.embedded.api.User user)
DefaultRoleActors
contains
in interface DefaultRoleActors
user
- the user to check if they are contained
public DefaultRoleActors addRoleActor(RoleActor roleActor)
DefaultRoleActors
addRoleActor
in interface DefaultRoleActors
roleActor
- the RoleActor to add
public DefaultRoleActors addRoleActors(Collection roleActors)
DefaultRoleActors
addRoleActors
in interface DefaultRoleActors
roleActors
- the collection RoleActor to add
public DefaultRoleActors removeRoleActor(RoleActor roleActor)
DefaultRoleActors
removeRoleActor
in interface DefaultRoleActors
roleActor
- the RoleActor to remove
public DefaultRoleActors removeRoleActors(Collection roleActors)
DefaultRoleActors
removeRoleActors
in interface DefaultRoleActors
roleActors
- the RoleActor to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |