com.atlassian.jira.security.roles
Class MockGroupRoleActor

java.lang.Object
  extended by com.atlassian.jira.security.roles.MockRoleActor
      extended by com.atlassian.jira.security.roles.MockGroupRoleActor
All Implemented Interfaces:
ProjectRoleActor, RoleActor

public class MockGroupRoleActor
extends MockRoleActor


Field Summary
 
Fields inherited from interface com.atlassian.jira.security.roles.ProjectRoleActor
GROUP_ROLE_ACTOR_TYPE, USER_ROLE_ACTOR_TYPE
 
Constructor Summary
MockGroupRoleActor(Long projectRoleId, Long projectId, com.atlassian.crowd.embedded.api.Group group)
           
 
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.
 SortedSet<com.atlassian.crowd.embedded.api.User> getUsers()
          Will provide a Set of users encapsulated by this RoleActor.
 
Methods inherited from class com.atlassian.jira.security.roles.MockRoleActor
equals, getDescriptor, getId, getParameter, getPrettyName, getProjectId, getProjectRoleId, getType, hashCode, isActive
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockGroupRoleActor

public MockGroupRoleActor(Long projectRoleId,
                          Long projectId,
                          com.atlassian.crowd.embedded.api.Group group)
Method Detail

getUsers

public SortedSet<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-2014 Atlassian. All Rights Reserved.