ca.sqlpower.wabit.enterprise.client.security
Class CachingWabitAccessManager
java.lang.Object
ca.sqlpower.wabit.enterprise.client.security.WabitAccessManager
ca.sqlpower.wabit.enterprise.client.security.CachingWabitAccessManager
- All Implemented Interfaces:
- ca.sqlpower.enterprise.client.security.SPAccessManager
public class CachingWabitAccessManager
- extends WabitAccessManager
| Nested classes/interfaces inherited from interface ca.sqlpower.enterprise.client.security.SPAccessManager |
ca.sqlpower.enterprise.client.security.SPAccessManager.Permission |
|
Method Summary |
boolean |
isGranted(java.lang.String type,
java.util.Set<ca.sqlpower.enterprise.client.security.SPAccessManager.Permission> permissions)
Checks if the current User has grants to perform an action on the given
type of object |
boolean |
isGranted(java.lang.String subject,
java.lang.String type,
java.util.Set<ca.sqlpower.enterprise.client.security.SPAccessManager.Permission> permissions)
Checks if the current User has grants to perform an action on the given
UUID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingWabitAccessManager
public CachingWabitAccessManager()
isGranted
public boolean isGranted(java.lang.String type,
java.util.Set<ca.sqlpower.enterprise.client.security.SPAccessManager.Permission> permissions)
- Checks if the current User has grants to perform an action on the given
type of object
- Specified by:
isGranted in interface ca.sqlpower.enterprise.client.security.SPAccessManager- Overrides:
isGranted in class WabitAccessManager
- Parameters:
type - The type of wabit object in question. This is the simple name
of the classpermissions - The permissions requested, as a set of Permission enums
isGranted
public boolean isGranted(java.lang.String subject,
java.lang.String type,
java.util.Set<ca.sqlpower.enterprise.client.security.SPAccessManager.Permission> permissions)
- Checks if the current User has grants to perform an action on the given
UUID
- Specified by:
isGranted in interface ca.sqlpower.enterprise.client.security.SPAccessManager- Overrides:
isGranted in class WabitAccessManager
- Parameters:
subject - The UUID of the wabit object in question. This must be a
secured object (A WabitWorkspace, or a first level child of a
workspace)type - The type of the wabit object in question. This is the simple
name of the class of the object.permissions - The permissions requested, as a set of Permission enums
Copyright © 2009. All Rights Reserved.