java.lang.Object
ru.gammalabs.ice.security.RoleWrapper
- All Implemented Interfaces:
- Role
- Direct Known Subclasses:
- RoleWithAction
- public abstract class RoleWrapper
- extends java.lang.Object
- implements Role
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
role
protected Role role
RoleWrapper
public RoleWrapper(Role role)
getId
public long getId()
- Description copied from interface:
Role
- Получить идентификатор роли
- Specified by:
getId in interface Role
setName
public void setName(java.lang.String name)
- Description copied from interface:
Role
- Установить название роли
- Specified by:
setName in interface Role
getName
public java.lang.String getName()
- Description copied from interface:
Role
- Получить название роли.
- Specified by:
getName in interface Role
grantPermission
public void grantPermission(Permission permission)
throws ru.gammalabs.ice.framework.UnauthorizedAccessException
- Description copied from interface:
Role
- Grant permission to role.
- Specified by:
grantPermission in interface Role
revokePermission
public void revokePermission(Permission permission)
throws ru.gammalabs.ice.framework.UnauthorizedAccessException
- Description copied from interface:
Role
- Revoke permission from role
- Specified by:
revokePermission in interface Role
getSimplePermissions
public java.util.Set getSimplePermissions()
- Description copied from interface:
Role
- Множество простых привилений роли.
- Specified by:
getSimplePermissions in interface Role
save
public void save()
throws ru.gammalabs.ice.framework.UnauthorizedAccessException,
DuplicateRoleNameException
- Specified by:
save in interface Role
remove
public void remove()
throws ru.gammalabs.ice.framework.UnauthorizedAccessException
- Specified by:
remove in interface Role