]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
a08b6289dfdb5965a79eab7c12433e8b2e8a5446
[tmp/jakarta-migration.git] /
1 /**\r
2  * \r
3  */\r
4 package org.collectionspace.services.collectionobject;\r
5 \r
6 import java.io.IOException;\r
7 import org.dom4j.Document;\r
8 import org.dom4j.DocumentException;\r
9 \r
10 import org.collectionspace.services.collectionobject.CollectionObject;\r
11 \r
12 /**\r
13  * @author remillet\r
14  * \r
15  */\r
16 public interface CollectionObjectService {\r
17 \r
18         public final static String CO_SCHEMA_NAME = "collectionobject";\r
19 \r
20         // Create\r
21         Document postCollectionObject(CollectionObject co)\r
22                         throws DocumentException, IOException;\r
23 \r
24         // Read single object\r
25         Document getCollectionObject(String csid) throws DocumentException,\r
26                         IOException;\r
27 \r
28         // Read a list of objects\r
29         Document getCollectionObjectList() throws DocumentException, IOException;\r
30 \r
31         // Update\r
32         Document putCollectionObject(String csid, CollectionObject theUpdate)\r
33                         throws DocumentException, IOException;\r
34 \r
35         // Delete\r
36         Document deleteCollectionObject(String csid) throws DocumentException,\r
37                         IOException;\r
38 }\r