コード例 #1
0
 /** @see AccessManager#isGranted(Path, int) */
 public boolean isGranted(Path absPath, int permissions) throws RepositoryException {
   checkInitialized();
   if (!absPath.isAbsolute()) {
     throw new RepositoryException("Absolute path expected");
   }
   return compiledPermissions.grants(absPath, permissions);
 }
コード例 #2
0
 /** @see AbstractAccessControlManager#checkValidNodePath(String) */
 @Override
 protected void checkValidNodePath(String absPath)
     throws PathNotFoundException, RepositoryException {
   Path p = getPath(absPath);
   if (p != null) {
     if (!p.isAbsolute()) {
       throw new RepositoryException("Absolute path expected.");
     }
     if (hierMgr.resolveNodePath(p) == null) {
       throw new PathNotFoundException("No such node " + absPath);
     }
   }
 }