Interface Role

All Superinterfaces:
Identifiable<Integer>, SecurityEntity<Integer>, Serializable
All Known Subinterfaces:
EasyDeskRole
All Known Implementing Classes:
EasyDeskRoleImpl

public interface Role extends SecurityEntity<Integer>
This class represents a role played by the User in a Group.

Role is a set of Permissions, a User grant Roles within a Group. So a User has a set of Permissions.

Version:
$Id$
Author:
Frank Y. Kim, John D. McNally, Brett McLaughlin, Youngho Cho
  • Method Details

    • getPermissions

      PermissionSet<? extends Permission> getPermissions()
      이 role 에 부여된 permission 들을 구한다.
      Returns:
      permissionSet
    • hasPermission

      boolean hasPermission(Permission... permissions)
      이 role 에 주어진 permission 들이 모두 부여되어 있는지 확인한다.
      Parameters:
      permissions - 확인할 permission 들
      Returns:
      모두 부여되어 있으면 true