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


Constructor Summary
MockGroupRoleActor(Long projectRoleId, Long projectId, com.atlassian.crowd.embedded.api.Group group)
           
 
Method Summary
 boolean contains(com.atlassian.crowd.embedded.api.User user)
          Does this RoleActor contain the specified user.
 Set 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
 
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 Set 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


Copyright © 2002-2013 Atlassian. All Rights Reserved.