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