Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ru.gammalabs.ice.security
Class RoleWrapper  view RoleWrapper download RoleWrapper.java

java.lang.Object
  extended byru.gammalabs.ice.security.RoleWrapper
All Implemented Interfaces:
Role
Direct Known Subclasses:
RoleWithAction

public abstract class RoleWrapper
extends java.lang.Object
implements Role


Field Summary
protected  Role role
           
 
Constructor Summary
RoleWrapper(Role role)
           
 
Method Summary
 long getId()
          Получить идентификатор роли
 java.lang.String getName()
          Получить название роли.
 java.util.Set getSimplePermissions()
          Множество простых привилений роли.
 void grantPermission(Permission permission)
          Grant permission to role.
 void remove()
           
 void revokePermission(Permission permission)
          Revoke permission from role
 void save()
           
 void setName(java.lang.String name)
          Установить название роли
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

role

protected Role role
Constructor Detail

RoleWrapper

public RoleWrapper(Role role)
Method Detail

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