info.magnolia.cms.core
Class Access

java.lang.Object
  extended by info.magnolia.cms.core.Access

public final class Access
extends java.lang.Object

Simply utility class for AccessManager.

Author:
Sameer Charles $Id: Access.java 41137 2011-01-06 18:19:25Z gjoseph $

Method Summary
static void isGranted(AccessManager manager, java.lang.String path, long permissions)
          Checks if the given AccessManager allows specified permission on the given path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isGranted

public static void isGranted(AccessManager manager,
                             java.lang.String path,
                             long permissions)
                      throws AccessDeniedException
Checks if the given AccessManager allows specified permission on the given path. If no AccessManager is passed, the permission is assumed granted, no exception is thrown.

Throws:
AccessDeniedException - if the permission isn't granted.


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.