Introduce CRUD to GCR
[lgpl/argeo-commons.git] / org.argeo.api / src / org / argeo / api / gcr / Content.java
index b2fc3c9063a37f156135f5efb078e7a7eb18a850..9ce6ea4f6b3f70f4add3ac5895c5e603523622de 100644 (file)
@@ -9,11 +9,22 @@ public interface Content extends Iterable<Content>, Map<String, Object> {
 
        String getName();
 
-//     Iterable<String> keys();
+       String getPath();
+
+       Content getParent();
+
+       /*
+        * ATTRIBUTES OPERATIONS
+        */
 
        <A> A get(String key, Class<A> clss) throws IllegalArgumentException;
 
-//     ContentSession getSession();
+       /*
+        * CONTENT OPERATIONS
+        */
+       Content add(String name, ContentName... classes);
+
+       void remove();
 
        /*
         * DEFAULT METHODS