]> git.argeo.org Git - lgpl/argeo-commons.git/blob - jcr/org.argeo.cms.jcr/src/org/argeo/security/jackrabbit/ArgeoAccessManager.java
Disable OSGi configuration admin and LDIF-based deploy config.
[lgpl/argeo-commons.git] / jcr / org.argeo.cms.jcr / src / org / argeo / security / jackrabbit / ArgeoAccessManager.java
1 package org.argeo.security.jackrabbit;
2
3 import javax.jcr.PathNotFoundException;
4 import javax.jcr.RepositoryException;
5 import javax.jcr.security.Privilege;
6
7 import org.apache.jackrabbit.core.id.ItemId;
8 import org.apache.jackrabbit.core.security.DefaultAccessManager;
9 import org.apache.jackrabbit.spi.Path;
10
11 /**
12 * Intermediary class in order to have a consistent naming in config files. Does
13 * nothing for the time being, but may in the future.
14 */
15 public class ArgeoAccessManager extends DefaultAccessManager {
16
17 @Override
18 public boolean canRead(Path itemPath, ItemId itemId)
19 throws RepositoryException {
20 return super.canRead(itemPath, itemId);
21 }
22
23 @Override
24 public Privilege[] getPrivileges(String absPath)
25 throws PathNotFoundException, RepositoryException {
26 return super.getPrivileges(absPath);
27 }
28
29 @Override
30 public boolean hasPrivileges(String absPath, Privilege[] privileges)
31 throws PathNotFoundException, RepositoryException {
32 return super.hasPrivileges(absPath, privileges);
33 }
34
35 }