com.atlassian.jira.security.roles
Class MockGroupRoleActor
java.lang.Object
com.atlassian.jira.security.roles.MockRoleActor
com.atlassian.jira.security.roles.MockGroupRoleActor
- All Implemented Interfaces:
- ProjectRoleActor, RoleActor
public class MockGroupRoleActor
- extends MockRoleActor
Method Summary |
boolean |
contains(ApplicationUser user)
Does this RoleActor contain the specified user. |
boolean |
contains(com.atlassian.crowd.embedded.api.User user)
Does this RoleActor contain the specified user. |
Set<com.atlassian.crowd.embedded.api.User> |
getUsers()
Will provide a Set of users encapsulated by this RoleActor. |
MockGroupRoleActor
public MockGroupRoleActor(Long projectRoleId,
Long projectId,
com.atlassian.crowd.embedded.api.Group group)
getUsers
public Set<com.atlassian.crowd.embedded.api.User> getUsers()
- Description copied from interface:
RoleActor
- Will provide a Set of users encapsulated by this RoleActor.
- Specified by:
getUsers
in interface RoleActor
- Overrides:
getUsers
in class MockRoleActor
- Returns:
- a Set of users encapsulated by this RoleActor.
contains
public boolean contains(com.atlassian.crowd.embedded.api.User user)
- Description copied from interface:
RoleActor
- Does this RoleActor contain the specified user.
- Specified by:
contains
in interface RoleActor
- Overrides:
contains
in class MockRoleActor
- Parameters:
user
- the user to check if they are contained
- Returns:
- true if the user is matched by this RoleActor
contains
public boolean contains(ApplicationUser user)
- Description copied from interface:
RoleActor
- Does this RoleActor contain the specified user.
- Specified by:
contains
in interface RoleActor
- Overrides:
contains
in class MockRoleActor
- Parameters:
user
- the user to check if they are contained
- Returns:
- true if the user is matched by this RoleActor
Copyright © 2002-2013 Atlassian. All Rights Reserved.