- public Content get(ProvidedSession contentSession, String mountPath, String relativePath) {
- String workspace = ContentUtils.getParentPath(mountPath)[1];
+ public ProvidedContent get(ProvidedSession contentSession, String relativePath) {
+ String jcrWorkspace = ContentUtils.getParentPath(mountPath)[1];
+ String jcrPath = "/" + relativePath;
+ return new JcrContent(contentSession, this, jcrWorkspace, jcrPath);
+ }
+
+ @Override
+ public boolean exists(ProvidedSession contentSession, String relativePath) {
+ String jcrWorkspace = ContentUtils.getParentPath(mountPath)[1];
+ String jcrPath = "/" + relativePath;
+ return new JcrContent(contentSession, this, jcrWorkspace, jcrPath).exists();
+ }
+
+ public Session getJcrSession(ProvidedSession contentSession, String jcrWorkspace) {