org.pentaho.platform.api.engine
Interface IPermissionMgr

All Known Implementing Classes:
SpringSecurityPermissionMgr

public interface IPermissionMgr


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.
 void setPermission(IPermissionRecipient permissionRecipient, IPermissionMask permission, Object domainInstance)
          TODO mlowery This is really addPermission.
 void setPermissions(Map<IPermissionRecipient,IPermissionMask> acl, Object domainInstance)
           
 

Method Detail

setPermission

void setPermission(IPermissionRecipient permissionRecipient,
                   IPermissionMask permission,
                   Object domainInstance)
TODO mlowery This is really addPermission. Perhaps a method name change?


getPermissions

Map<IPermissionRecipient,IPermissionMask> getPermissions(Object domainInstance)
Returns permission map containing access control entries that are defined directly on this domainInstance.

Parameters:
domainInstance - the object for which to fetch permissions
Returns:
a map of permissions

getEffectivePermissions

Map<IPermissionRecipient,IPermissionMask> getEffectivePermissions(Object domainInstance)
Returns permission map containing access control entries that are defined directly on this domainInstance. If there are no direct entries, then the permission map will be the map of one of domainInstance's ancestors.

Parameters:
domainInstance - the object for which to fetch permissions
Returns:
a map of permissions

setPermissions

void setPermissions(Map<IPermissionRecipient,IPermissionMask> acl,
                    Object domainInstance)