]> git.argeo.org Git - lgpl/argeo-commons.git/blob - ResourceProxy.java
265ee935282fd7ae3efc15d2261263481c866f05
[lgpl/argeo-commons.git] / ResourceProxy.java
1 package org.argeo.jcr.proxy;
2
3 import javax.jcr.Node;
4 import javax.jcr.Session;
5
6 /** A proxy which nows how to resolve and synchronize relative URLs */
7 public interface ResourceProxy {
8 /** Path to the proxied node (which may not already exist) */
9 public String getNodePath(String relativePath);
10
11 /**
12 * Proxy the file referenced by this relative path in the underlying
13 * repository
14 *
15 * @return the unique identifier of the proxied Node, <code>null</code> if
16 * the resource was not found (e.g. HTPP 404)
17 */
18 public Node proxy(Session session,String relativePath);
19 }