Package com.easydesk.security.entity
Interface Group
- All Superinterfaces:
Identifiable<Long>,SecurityEntity<Long>,Serializable
- All Known Subinterfaces:
EasyDeskGroup,Module
- All Known Implementing Classes:
EasyDeskGroupImpl,EasyDeskModule,TemplateModule
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
Methods inherited from interface com.easydesk.security.entity.Identifiable
getId, setIdMethods inherited from interface com.easydesk.security.entity.SecurityEntity
getName, setName
-
Method Details
-
getRoles
Returns the role set defined by this group.- Returns:
- the role set associated with this group
-
hasRole
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
이 group 에 속한 사용자들을 구한다.- Parameters:
role- 이 role 들을 가진 사용자만 구한다. 지정하지 않으면 모든 role 을 적용한다.- Returns:
- the user set associated with this group
-