ca.sqlpower.wabit.enterprise.client.security
Class CachingWabitAccessManager

java.lang.Object
  extended by ca.sqlpower.wabit.enterprise.client.security.WabitAccessManager
      extended by ca.sqlpower.wabit.enterprise.client.security.CachingWabitAccessManager

public class CachingWabitAccessManager
extends WabitAccessManager


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

CachingWabitAccessManager

public CachingWabitAccessManager()
Method Detail

isGranted

public 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

Overrides:
isGranted in class WabitAccessManager
Parameters:
type - The type of wabit object in question. This is the simple name of the class
permissions - The permissions requested, as a set of Permission enums

isGranted

public 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

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.