+ @Override
+ public String getPath() {
+ try {
+ // Note: it is important to to use the default way (recursing through parents),
+ // since the session may not have access to parent nodes
+ return ContentUtils.ROOT_SLASH + jcrWorkspace + getJcrNode().getPath();
+ } catch (RepositoryException e) {
+ throw new JcrException("Cannot get depth of " + getJcrNode(), e);
+ }
+ }
+
+ @Override
+ public int getDepth() {
+ try {
+ return getJcrNode().getDepth() + 1;
+ } catch (RepositoryException e) {
+ throw new JcrException("Cannot get depth of " + getJcrNode(), e);
+ }
+ }
+