|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.platform.engine.security.AcegiPermissionMgr
public class AcegiPermissionMgr
Method Summary | |
---|---|
Map<IPermissionRecipient,IPermissionMask> |
getEffectivePermissions(Object domainInstance)
Returns permission map containing access control entries that are defined directly on this domainInstance . |
Map<IPermissionRecipient,IPermissionMask> |
getPermissions(Object domainInstance)
Returns permission map containing access control entries that are defined directly on this domainInstance . |
boolean |
hasPermission(IPermissionRecipient permissionRecipient,
IPermissionMask permissionMask,
Object object)
mlowery Note that this method takes a single recipient--either a role or user. |
static AcegiPermissionMgr |
instance()
|
void |
setPermission(IPermissionRecipient permissionRecipient,
IPermissionMask permission,
Object object)
|
void |
setPermissions(Map<IPermissionRecipient,IPermissionMask> permissionsMap,
Object object)
TODO mlowery This is really addPermission. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AcegiPermissionMgr instance()
public Map<IPermissionRecipient,IPermissionMask> getPermissions(Object domainInstance)
IPermissionMgr
domainInstance
.
getPermissions
in interface IPermissionMgr
domainInstance
- the object for which to fetch permissions
public Map<IPermissionRecipient,IPermissionMask> getEffectivePermissions(Object domainInstance)
IPermissionMgr
domainInstance
. If there are no direct entries, then the permission map will be the map of one of
domainInstance
's ancestors.
getEffectivePermissions
in interface IPermissionMgr
domainInstance
- the object for which to fetch permissions
public boolean hasPermission(IPermissionRecipient permissionRecipient, IPermissionMask permissionMask, Object object)
IPermissionMgr
hasPermission
in interface IPermissionMgr
public void setPermission(IPermissionRecipient permissionRecipient, IPermissionMask permission, Object object)
setPermission
in interface IPermissionMgr
public void setPermissions(Map<IPermissionRecipient,IPermissionMask> permissionsMap, Object object)
IPermissionMgr
setPermissions
in interface IPermissionMgr
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |