Package ru.curs.celesta.dbutils
Class PermissionManager
- java.lang.Object
-
- ru.curs.celesta.dbutils.PermissionManager
-
- All Implemented Interfaces:
IPermissionManager
public final class PermissionManager extends Object implements IPermissionManager
Permission manager. It determines if a user has rights for operations with a table. The rights are defined by contents of the system tables for access rights distribution.To optimize work the object contains cache.
-
-
Field Summary
-
Fields inherited from interface ru.curs.celesta.dbutils.IPermissionManager
EDITOR, READER
-
-
Constructor Summary
Constructors Constructor Description PermissionManager(ICelesta celesta)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisActionAllowed(CallContext c, GrainElement t, Action a)Returnstrueif action is allowed on a grain element.
-
-
-
Constructor Detail
-
PermissionManager
public PermissionManager(ICelesta celesta)
-
-
Method Detail
-
isActionAllowed
public boolean isActionAllowed(CallContext c, GrainElement t, Action a)
Returnstrueif action is allowed on a grain element.- Specified by:
isActionAllowedin interfaceIPermissionManager- Parameters:
c- call contextt- grain elementa- action- Returns:
-
-