Interface Group

All Superinterfaces:
Identifiable<Long>, SecurityEntity<Long>, Serializable
All Known Subinterfaces:
EasyDeskGroup, Module
All Known Implementing Classes:
EasyDeskGroupImpl, EasyDeskModule, TemplateModule

public interface Group extends SecurityEntity<Long>
This class represents a Group of Users in the system that are associated with specific entity or resource. The users belonging to the Group may have various Roles. The Permissions to perform actions upon the resource depend on the Roles in the Group that they are assigned.
Version:
$Id$
Author:
Rafal Krzewski, Youngho Cho
  • Method Summary

    Modifier and Type
    Method
    Description
    RoleSet<? extends Role>
    Returns the role set defined by this group.
    UserSet<? extends User>
    getUsers(Role... role)
    이 group 에 속한 사용자들을 구한다.
    boolean
    hasRole(Role role)
    Checks whether the given role is assigned to this group.

    Methods inherited from interface com.easydesk.security.entity.Identifiable

    getId, setId

    Methods inherited from interface com.easydesk.security.entity.SecurityEntity

    getName, setName
  • Method Details

    • getRoles

      RoleSet<? extends Role> getRoles()
      Returns the role set defined by this group.
      Returns:
      the role set associated with this group
    • hasRole

      boolean hasRole(Role role)
      Checks whether the given role is assigned to this group.
      Parameters:
      role - the role to check
      Returns:
      true if the group contains the role, otherwise false
    • getUsers

      UserSet<? extends User> getUsers(Role... role)
      이 group 에 속한 사용자들을 구한다.
      Parameters:
      role - 이 role 들을 가진 사용자만 구한다. 지정하지 않으면 모든 role 을 적용한다.
      Returns:
      the user set associated with this group