]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-84: Created an interface for a CollectionObjectService POJO.
authorRichard Millet <richard.millet@berkeley.edu>
Fri, 1 May 2009 17:51:00 +0000 (17:51 +0000)
committerRichard Millet <richard.millet@berkeley.edu>
Fri, 1 May 2009 17:51:00 +0000 (17:51 +0000)
services/collectionobject/src/main/java/org/collectionspace/services/CollectionObjectService.java [new file with mode: 0644]

diff --git a/services/collectionobject/src/main/java/org/collectionspace/services/CollectionObjectService.java b/services/collectionobject/src/main/java/org/collectionspace/services/CollectionObjectService.java
new file mode 100644 (file)
index 0000000..8cb9067
--- /dev/null
@@ -0,0 +1,38 @@
+/**\r
+ * \r
+ */\r
+package org.collectionspace.services;\r
+\r
+import java.io.IOException;\r
+import org.dom4j.Document;\r
+import org.dom4j.DocumentException;\r
+\r
+import org.collectionspace.services.collectionobject.CollectionObject;\r
+\r
+/**\r
+ * @author remillet\r
+ * \r
+ */\r
+public interface CollectionObjectService extends CollectionSpaceService {\r
+\r
+       public final static String CO_SCHEMA_NAME = "collectionobject";\r
+\r
+       // Create\r
+       Document postCollectionObject(CollectionObject co)\r
+                       throws DocumentException, IOException;\r
+\r
+       // Read single object\r
+       Document getCollectionObject(String csid) throws DocumentException,\r
+                       IOException;\r
+\r
+       // Read a list of objects\r
+       Document getCollectionObjectList() throws DocumentException, IOException;\r
+\r
+       // Update\r
+       Document putCollectionObject(String csid, CollectionObject theUpdate)\r
+                       throws DocumentException, IOException;\r
+\r
+       // Delete\r
+       Document deleteCollectionObject(String csid) throws DocumentException,\r
+                       IOException;\r
+}\r