]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
fef1b5df3db3e508197dfe86adf3abae19004596
[tmp/jakarta-migration.git] /
1 /**
2  *  This document is a part of the source code and related artifacts
3  *  for CollectionSpace, an open source collections management system
4  *  for museums and related institutions:
5
6  *  http://www.collectionspace.org
7  *  http://wiki.collectionspace.org
8
9  *  Copyright 2009 University of California at Berkeley
10
11  *  Licensed under the Educational Community License (ECL), Version 2.0.
12  *  You may not use this file except in compliance with this License.
13
14  *  You may obtain a copy of the ECL 2.0 License at
15
16  *  https://source.collectionspace.org/collection-space/LICENSE.txt
17
18  *  Unless required by applicable law or agreed to in writing, software
19  *  distributed under the License is distributed on an "AS IS" BASIS,
20  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  *  See the License for the specific language governing permissions and
22  *  limitations under the License.
23  */
24 package org.collectionspace.services.common.document;
25
26 import java.util.HashMap;
27 import java.util.Map;
28
29 import java.util.StringTokenizer;
30 import org.collectionspace.services.common.context.ServiceContext;
31
32 import org.slf4j.Logger;
33 import org.slf4j.LoggerFactory;
34
35 /**
36  * AbstractMultipartDocumentHandler
37  *
38  * $LastChangedRevision: $
39  * $LastChangedDate: $
40  */
41 public abstract class AbstractMultipartDocumentHandler<T, TL, WT, WTL>
42         extends AbstractDocumentHandler<T, TL, WT, WTL>
43         implements MultipartDocumentHandler<T, TL, WT, WTL> {
44
45     private final Logger logger = LoggerFactory.getLogger(AbstractMultipartDocumentHandler.class);
46
47     public AbstractMultipartDocumentHandler() {
48     }
49
50     @Override
51     public abstract void handleCreate(DocumentWrapper<WT> wrapDoc) throws Exception;
52
53     @Override
54     public abstract void handleUpdate(DocumentWrapper<WT> wrapDoc) throws Exception;
55
56     @Override
57     public abstract void handleGet(DocumentWrapper<WT> wrapDoc) throws Exception;
58
59     @Override
60     public abstract void handleGetAll(DocumentWrapper<WTL> wrapDoc) throws Exception;
61
62     @Override
63     public abstract void extractAllParts(DocumentWrapper<WT> wrapDoc)
64             throws Exception;
65
66     @Override
67     public abstract void fillAllParts(DocumentWrapper<WT> wrapDoc)
68             throws Exception;
69
70     @Override
71     public abstract T extractCommonPart(DocumentWrapper<WT> wrapDoc)
72             throws Exception;
73
74     @Override
75     public abstract void fillCommonPart(T obj, DocumentWrapper<WT> wrapDoc)
76             throws Exception;
77
78     @Override
79     public abstract TL extractCommonPartList(DocumentWrapper<WTL> wrapDoc)
80             throws Exception;
81
82     @Override
83     public abstract T getCommonPart();
84
85     @Override
86     public abstract void setCommonPart(T obj);
87
88     @Override
89     public abstract TL getCommonPartList();
90
91     @Override
92     public abstract void setCommonPartList(TL obj);
93
94     @Override
95     public abstract String getQProperty(String prop);
96
97 }