From 75c44a52c19bd0b37f2691884b5806bbacaca296 Mon Sep 17 00:00:00 2001 From: Richard Millet Date: Fri, 1 May 2009 17:51:00 +0000 Subject: [PATCH] CSPACE-84: Created an interface for a CollectionObjectService POJO. --- .../services/CollectionObjectService.java | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 services/collectionobject/src/main/java/org/collectionspace/services/CollectionObjectService.java 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 index 000000000..8cb906780 --- /dev/null +++ b/services/collectionobject/src/main/java/org/collectionspace/services/CollectionObjectService.java @@ -0,0 +1,38 @@ +/** + * + */ +package org.collectionspace.services; + +import java.io.IOException; +import org.dom4j.Document; +import org.dom4j.DocumentException; + +import org.collectionspace.services.collectionobject.CollectionObject; + +/** + * @author remillet + * + */ +public interface CollectionObjectService extends CollectionSpaceService { + + public final static String CO_SCHEMA_NAME = "collectionobject"; + + // Create + Document postCollectionObject(CollectionObject co) + throws DocumentException, IOException; + + // Read single object + Document getCollectionObject(String csid) throws DocumentException, + IOException; + + // Read a list of objects + Document getCollectionObjectList() throws DocumentException, IOException; + + // Update + Document putCollectionObject(String csid, CollectionObject theUpdate) + throws DocumentException, IOException; + + // Delete + Document deleteCollectionObject(String csid) throws DocumentException, + IOException; +} -- 2.47.3