|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.wabit.enterprise.client.security.WabitAccessManager
ca.sqlpower.wabit.enterprise.client.security.CachingWabitAccessManager
public class CachingWabitAccessManager
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ca.sqlpower.wabit.enterprise.client.security.WabitAccessManager |
|---|
WabitAccessManager.Permission |
| Field Summary |
|---|
| Fields inherited from class ca.sqlpower.wabit.enterprise.client.security.WabitAccessManager |
|---|
currentSession, currentUser, systemSession |
| Constructor Summary | |
|---|---|
CachingWabitAccessManager()
|
|
| Method Summary | |
|---|---|
boolean |
isGranted(java.lang.String type,
java.util.Set<WabitAccessManager.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<WabitAccessManager.Permission> permissions)
Checks if the current User has grants to perform an action on the given UUID |
| Methods inherited from class ca.sqlpower.wabit.enterprise.client.security.WabitAccessManager |
|---|
doSystemGrantsPermit, init, init, isGrantGranted, isWorkspaceGranted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachingWabitAccessManager()
| Method Detail |
|---|
public boolean isGranted(java.lang.String type,
java.util.Set<WabitAccessManager.Permission> permissions)
isGranted in class WabitAccessManagertype - The type of wabit object in question. This is the simple name
of the classpermissions - The permissions requested, as a set of Permission enums
public boolean isGranted(java.lang.String subject,
java.lang.String type,
java.util.Set<WabitAccessManager.Permission> permissions)
isGranted in class WabitAccessManagersubject - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||