X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=security%2Fruntime%2Forg.argeo.security.jackrabbit%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fsecurity%2Fjackrabbit%2FArgeoAccessManager.java;h=7464078d802a75c717a93dfe4bf9cf8823d86973;hb=72c5c4c7e5348ad96a451ef866a1e231db976dc7;hp=b29606318297750081356bb6f679e215262f6b48;hpb=03db65bd74ce09b696a4c5af15a58df988e5368d;p=lgpl%2Fargeo-commons.git diff --git a/security/runtime/org.argeo.security.jackrabbit/src/main/java/org/argeo/security/jackrabbit/ArgeoAccessManager.java b/security/runtime/org.argeo.security.jackrabbit/src/main/java/org/argeo/security/jackrabbit/ArgeoAccessManager.java index b29606318..7464078d8 100644 --- a/security/runtime/org.argeo.security.jackrabbit/src/main/java/org/argeo/security/jackrabbit/ArgeoAccessManager.java +++ b/security/runtime/org.argeo.security.jackrabbit/src/main/java/org/argeo/security/jackrabbit/ArgeoAccessManager.java @@ -1,16 +1,35 @@ package org.argeo.security.jackrabbit; +import javax.jcr.PathNotFoundException; import javax.jcr.RepositoryException; +import javax.jcr.security.Privilege; +import org.apache.jackrabbit.core.id.ItemId; import org.apache.jackrabbit.core.security.DefaultAccessManager; +import org.apache.jackrabbit.spi.Path; -/** Intermediary class in order to have a consistent naming in config files. */ +/** + * Intermediary class in order to have a consistent naming in config files. Does + * nothing for the time being, but may in the future. + */ public class ArgeoAccessManager extends DefaultAccessManager { @Override - public boolean canAccess(String workspaceName) throws RepositoryException { - // TODO Auto-generated method stub - return super.canAccess(workspaceName); + public boolean canRead(Path itemPath, ItemId itemId) + throws RepositoryException { + return super.canRead(itemPath, itemId); + } + + @Override + public Privilege[] getPrivileges(String absPath) + throws PathNotFoundException, RepositoryException { + return super.getPrivileges(absPath); + } + + @Override + public boolean hasPrivileges(String absPath, Privilege[] privileges) + throws PathNotFoundException, RepositoryException { + return super.hasPrivileges(absPath, privileges); } }