Package com.easydesk.security.model
Interface SecurityEntityModelManager
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
EasyDeskModelManager
Describes all the relationships between entities in the security model.
- Version:
- $Id$
- Author:
- Eric Pugh, Youngho Cho
-
Method Summary
Modifier and TypeMethodDescription<T extends EasyDeskAccessControlList<T>>
EasyDeskAccessControlList<T> 사용자의 AccessControlList 를 구한다.voidGroup 에 Role 을 부여한다.voidgrant(Role role, Permission permission) Puts a permission in a role This method is used when adding a permission to a role TODO : switch argument ordervoidGrant an User a Role in a Group.voidReplaces the assigned old Role to new role in the given group for User user.voidGroup 에서 Role 을 제거한다.voidrevoke(Role role, Permission permission) Removes a permission from a role TODO : switch argument ordervoidRevoke a Role in a Group from an User.voidRevokes all roles and users from a Group.voidRevokes all permissions from a Role.voidRevokes all roles from an User.
-
Method Details
-
getACL
사용자의 AccessControlList 를 구한다.- Type Parameters:
T- AccessControlList type- Parameters:
user- 대상 사용자- Returns:
- 사용자의 AccessControlList
-
replace
void replace(User user, Group group, Role oldRole, Role newRole) throws DataBackendException, UnknownEntityException Replaces the assigned old Role to new role in the given group for User user.- Parameters:
user- the User.group- the GroupoldRole- the old RolenewRole- the new Role- Throws:
DataBackendException- generic exceptionUnknownEntityException- generic exception
-
grant
Puts a permission in a role This method is used when adding a permission to a role TODO : switch argument order- Parameters:
role- the Role.permission- the Permission- Throws:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the account is not present.
-
revoke
Removes a permission from a role TODO : switch argument order- Parameters:
role- the Role.permission- the Permission- Throws:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the role or permission is not present.
-
revokeAll
Revokes all roles from an User. This method is typically used when deleting an account.- Parameters:
user- the User.group- the Group.- Throws:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the account is not present.
-
revokeAll
Revokes all permissions from a Role. This method is typically used when deleting a Role.- Parameters:
role- the Role- Throws:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the Role is not present.
-
revokeAll
Revokes all roles and users from a Group. This method is typically used when deleting a Group.- Parameters:
group- the Group- Throws:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the Group is not present.
-
grant
Grant an User a Role in a Group.- Parameters:
user- the user.group- the group.role- the role.- Throws:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if user account, group or role is not present.
-
revoke
Revoke a Role in a Group from an User.- Parameters:
user- the user.group- the group.role- the role.- Throws:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if user account, group or role is not present.
-
grant
Group 에 Role 을 부여한다. (Group 에서 사용할 수 있는 Role 로 등록)- Parameters:
role- the role.group- the group.- Throws:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if group or role is not present.
-
revoke
Group 에서 Role 을 제거한다.- Parameters:
role- the role.group- the group.- Throws:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if group or role is not present.
-