Package com.easydesk.security.entity
Interface Role
- All Superinterfaces:
Identifiable<Integer>,SecurityEntity<Integer>,Serializable
- All Known Subinterfaces:
EasyDeskRole
- All Known Implementing Classes:
EasyDeskRoleImpl
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 Summary
Modifier and TypeMethodDescriptionPermissionSet<? extends Permission> 이 role 에 부여된 permission 들을 구한다.booleanhasPermission(Permission... permissions) 이 role 에 주어진 permission 들이 모두 부여되어 있는지 확인한다.Methods inherited from interface com.easydesk.security.entity.Identifiable
getId, setIdMethods inherited from interface com.easydesk.security.entity.SecurityEntity
getName, setName
-
Method Details
-
getPermissions
PermissionSet<? extends Permission> getPermissions()이 role 에 부여된 permission 들을 구한다.- Returns:
- permissionSet
-
hasPermission
이 role 에 주어진 permission 들이 모두 부여되어 있는지 확인한다.- Parameters:
permissions- 확인할 permission 들- Returns:
- 모두 부여되어 있으면
true
-