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
  • Constructor Details

    • MockGroupRoleActor

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

    • getUsers

      public SortedSet<ApplicationUser> 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(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