]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
360b429de09f0a7ddfb35696a91cb458328a3b84
[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
27
28 import org.slf4j.Logger;
29 import org.slf4j.LoggerFactory;
30
31 /**
32  * AbstractMultipartDocumentHandler
33  *
34  * $LastChangedRevision: $
35  * $LastChangedDate: $
36  */
37 public abstract class AbstractMultipartDocumentHandlerImpl<T, TL, WT, WTL>
38         extends AbstractDocumentHandlerImpl<T, TL, WT, WTL>
39         implements MultipartDocumentHandler<T, TL, WT, WTL> {
40
41     private final Logger logger = LoggerFactory.getLogger(AbstractMultipartDocumentHandlerImpl.class);
42
43     public AbstractMultipartDocumentHandlerImpl() {
44     }
45
46     @Override
47     public abstract void handleCreate(DocumentWrapper<WT> wrapDoc) throws Exception;
48
49     @Override
50     public abstract void handleUpdate(DocumentWrapper<WT> wrapDoc) throws Exception;
51
52     @Override
53     public abstract void handleGet(DocumentWrapper<WT> wrapDoc) throws Exception;
54
55     @Override
56     public abstract void handleGetAll(DocumentWrapper<WTL> wrapDoc) throws Exception;
57
58     @Override
59     public abstract void extractAllParts(DocumentWrapper<WT> wrapDoc)
60             throws Exception;
61
62     @Override
63     public abstract void fillAllParts(DocumentWrapper<WT> wrapDoc)
64             throws Exception;
65
66     @Override
67     public abstract T extractCommonPart(DocumentWrapper<WT> wrapDoc)
68             throws Exception;
69
70     @Override
71     public abstract void fillCommonPart(T obj, DocumentWrapper<WT> wrapDoc)
72             throws Exception;
73
74     @Override
75     public abstract TL extractCommonPartList(DocumentWrapper<WTL> wrapDoc)
76             throws Exception;
77
78     @Override
79     public abstract T getCommonPart();
80
81     @Override
82     public abstract void setCommonPart(T obj);
83
84     @Override
85     public abstract TL getCommonPartList();
86
87     @Override
88     public abstract void setCommonPartList(TL obj);
89
90     @Override
91     public abstract String getQProperty(String prop);
92
93 }