Refactor to use ACR instead of JCR.
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / acr / AbstractContent.java
index b614a14cbb0702ef2723bd11e12ee0943adcb2d1..fa8062f7c12ea4fa7c596df69ffb89541112444d 100644 (file)
@@ -100,6 +100,18 @@ public abstract class AbstractContent extends AbstractMap<QName, Object> impleme
                collectAncestors(ancestors, content.getParent());
        }
 
+       @Override
+       public int getDepth() {
+               List<Content> ancestors = new ArrayList<>();
+               collectAncestors(ancestors, this);
+               return ancestors.size();
+       }
+       
+       @Override
+       public String getSessionLocalId() {
+               return getPath();
+       }
+
        /*
         * UTILITIES
         */