Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/TestArtifactDatabase.java @ 1119:7c4f81f74c47
merged gnv-artifacts
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:00 +0200 |
parents | c01c220312d0 |
children |
comparison
equal
deleted
inserted
replaced
1027:fca4b5eb8d2f | 1119:7c4f81f74c47 |
---|---|
1 /* | |
2 * Copyright (c) 2010 by Intevation GmbH | |
3 * | |
4 * This program is free software under the LGPL (>=v2.1) | |
5 * Read the file LGPL.txt coming with the software for details | |
6 * or visit http://www.gnu.org/licenses/ if it does not exist. | |
7 */ | |
8 | |
9 package de.intevation.gnv.artifacts; | |
10 | |
11 import de.intevation.artifacts.Artifact; | |
12 import de.intevation.artifacts.ArtifactDatabase; | |
13 import de.intevation.artifacts.ArtifactDatabaseException; | |
14 import de.intevation.artifacts.ArtifactFactory; | |
15 import de.intevation.artifacts.CallMeta; | |
16 | |
17 import org.w3c.dom.Document; | |
18 | |
19 /** | |
20 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | |
21 * | |
22 */ | |
23 public class TestArtifactDatabase implements ArtifactDatabase { | |
24 | |
25 private ArtifactFactory artifactFactory = null; | |
26 /** | |
27 * Constructor | |
28 */ | |
29 public TestArtifactDatabase(ArtifactFactory artifactFactory) { | |
30 this.artifactFactory = artifactFactory; | |
31 } | |
32 | |
33 /** | |
34 * @see de.intevation.artifacts.ArtifactDatabase#advance(java.lang.String, org.w3c.dom.Document, de.intevation.artifacts.CallMeta) | |
35 */ | |
36 public Document advance(String artifact, Document target, CallMeta callMeta) | |
37 throws ArtifactDatabaseException { | |
38 | |
39 return null; | |
40 } | |
41 | |
42 /** | |
43 * @see de.intevation.artifacts.ArtifactDatabase#artifactFactoryNamesAndDescriptions() | |
44 */ | |
45 public String[][] artifactFactoryNamesAndDescriptions() { | |
46 | |
47 return null; | |
48 } | |
49 | |
50 /** | |
51 * @see de.intevation.artifacts.ArtifactDatabase#createArtifactWithFactory(java.lang.String, de.intevation.artifacts.CallMeta, org.w3c.dom.Document) | |
52 */ | |
53 public Document createArtifactWithFactory(String factory, | |
54 CallMeta callMeta, | |
55 Document data) | |
56 throws ArtifactDatabaseException { | |
57 | |
58 return null; | |
59 } | |
60 | |
61 /** | |
62 * @see de.intevation.artifacts.ArtifactDatabase#describe(java.lang.String, org.w3c.dom.Document, de.intevation.artifacts.CallMeta) | |
63 */ | |
64 public Document describe(String artifact, Document data, CallMeta callMeta) | |
65 throws ArtifactDatabaseException { | |
66 | |
67 return null; | |
68 } | |
69 | |
70 /** | |
71 * @see de.intevation.artifacts.ArtifactDatabase#feed(java.lang.String, org.w3c.dom.Document, de.intevation.artifacts.CallMeta) | |
72 */ | |
73 public Document feed(String artifact, Document data, CallMeta callMeta) | |
74 throws ArtifactDatabaseException { | |
75 | |
76 return null; | |
77 } | |
78 | |
79 /** | |
80 * @see de.intevation.artifacts.ArtifactDatabase#getInternalArtifactFactory(java.lang.String) | |
81 */ | |
82 public ArtifactFactory getInternalArtifactFactory(String factoryName) { | |
83 return this.artifactFactory; | |
84 } | |
85 | |
86 /** | |
87 * @see de.intevation.artifacts.ArtifactDatabase#out(java.lang.String, org.w3c.dom.Document, de.intevation.artifacts.CallMeta) | |
88 */ | |
89 public DeferredOutput out( | |
90 String artifact, | |
91 Document format, | |
92 CallMeta callMeta) | |
93 throws ArtifactDatabaseException { | |
94 | |
95 return null; | |
96 } | |
97 | |
98 public DeferredOutput out( | |
99 String artifact, | |
100 String type, | |
101 Document format, | |
102 CallMeta callMeta) | |
103 throws ArtifactDatabaseException | |
104 { | |
105 return null; | |
106 | |
107 } | |
108 | |
109 public Document process(String service, Document input, CallMeta callMeta) { | |
110 return null; | |
111 } | |
112 | |
113 public String[][] serviceNamesAndDescriptions() { | |
114 return null; | |
115 } | |
116 | |
117 public Document exportArtifact(String artifact, CallMeta callMeta) throws ArtifactDatabaseException { | |
118 throw new UnsupportedOperationException("Not supported yet."); | |
119 } | |
120 | |
121 public Document importArtifact(Document data, CallMeta callMeta) throws ArtifactDatabaseException { | |
122 throw new UnsupportedOperationException("Not supported yet."); | |
123 } | |
124 | |
125 | |
126 public void loadAllArtifacts(ArtifactLoadedCallback callback) | |
127 throws ArtifactDatabaseException | |
128 { | |
129 throw new UnsupportedOperationException("Not supported yet."); | |
130 } | |
131 | |
132 public Artifact getRawArtifact(String identifier) | |
133 throws ArtifactDatabaseException { | |
134 throw new UnsupportedOperationException("Not supported yet."); | |
135 } | |
136 | |
137 | |
138 | |
139 // COLLECTION API | |
140 | |
141 public Document setCollectionTTL(String collectionId, Document doc, CallMeta meta) | |
142 throws ArtifactDatabaseException { | |
143 throw new UnsupportedOperationException("Not supported yet."); | |
144 } | |
145 | |
146 public Document setCollectionName(String collectionId, Document doc, CallMeta meta) | |
147 throws ArtifactDatabaseException { | |
148 throw new UnsupportedOperationException("Not supported yet."); | |
149 } | |
150 | |
151 | |
152 public DeferredOutput outCollection(String collectionId, Document format, CallMeta callMeta) | |
153 throws ArtifactDatabaseException | |
154 { | |
155 throw new UnsupportedOperationException("Not supported yet."); | |
156 } | |
157 | |
158 public DeferredOutput outCollection(String collectionId, String type, Document format, CallMeta callMeta) | |
159 throws ArtifactDatabaseException | |
160 { | |
161 throw new UnsupportedOperationException("Not supported yet."); | |
162 } | |
163 | |
164 /** | |
165 * @param collectionId | |
166 * @param meta | |
167 * | |
168 * @throws ArtifactDatabaseException | |
169 * | |
170 * @return | |
171 */ | |
172 public Document getCollectionsMasterArtifact( | |
173 String collectionId, | |
174 CallMeta meta | |
175 ) | |
176 throws ArtifactDatabaseException | |
177 { | |
178 throw new UnsupportedOperationException("Not supported yet."); | |
179 } | |
180 | |
181 /** | |
182 * @param userId | |
183 * @param callMeta | |
184 * | |
185 * @throws ArtifactDatabaseException | |
186 * | |
187 * @return | |
188 */ | |
189 public Document listCollections(String userId, CallMeta callMeta) | |
190 throws ArtifactDatabaseException { | |
191 throw new UnsupportedOperationException("Not supported yet."); | |
192 } | |
193 | |
194 /** | |
195 * @param ownerId | |
196 * @param data | |
197 * @param callMeta | |
198 * | |
199 * @throws ArtifactDatabaseException | |
200 * | |
201 * @return | |
202 */ | |
203 public Document createCollection( | |
204 String ownerId, | |
205 Document data, | |
206 CallMeta callMeta | |
207 ) | |
208 throws ArtifactDatabaseException | |
209 { | |
210 throw new UnsupportedOperationException("Not supported yet."); | |
211 } | |
212 | |
213 /** | |
214 * @param collectionId | |
215 * @param callMeta | |
216 * | |
217 * @throws ArtifactDatabaseException | |
218 * | |
219 * @return | |
220 */ | |
221 public Document deleteCollection(String collectionId, CallMeta callMeta) | |
222 throws ArtifactDatabaseException { | |
223 throw new UnsupportedOperationException("Not supported yet."); | |
224 } | |
225 | |
226 /** | |
227 * @param collectionId | |
228 * @param callMeta | |
229 * | |
230 * @throws ArtifactDatabaseException | |
231 * | |
232 * @return | |
233 */ | |
234 public Document describeCollection(String collectionId, CallMeta callMeta) | |
235 throws ArtifactDatabaseException { | |
236 throw new UnsupportedOperationException("Not supported yet."); | |
237 } | |
238 | |
239 /** | |
240 * @param collectionId | |
241 * @param callMeta | |
242 * | |
243 * @throws ArtifactDatabaseException | |
244 * | |
245 * @return | |
246 */ | |
247 public Document getCollectionAttribute( | |
248 String collectionId, | |
249 CallMeta callMeta | |
250 ) | |
251 throws ArtifactDatabaseException | |
252 { | |
253 throw new UnsupportedOperationException("Not supported yet."); | |
254 } | |
255 | |
256 public Document setCollectionAttribute( | |
257 String collectionId, | |
258 CallMeta callMeta, | |
259 Document attribute) | |
260 throws ArtifactDatabaseException | |
261 { | |
262 throw new UnsupportedOperationException("Not supported yet."); | |
263 } | |
264 | |
265 /** | |
266 * @param collectionId | |
267 * @param artifactId | |
268 * @param callMeta | |
269 * | |
270 * @throws ArtifactDatabaseException | |
271 * | |
272 * @return | |
273 */ | |
274 public Document getCollectionItemAttribute( | |
275 String collectionId, | |
276 String artifactId, | |
277 CallMeta callMeta | |
278 ) | |
279 throws ArtifactDatabaseException | |
280 { | |
281 throw new UnsupportedOperationException("Not supported yet."); | |
282 } | |
283 | |
284 /** | |
285 * @param collectionId | |
286 * @param artifactId | |
287 * @param attribute | |
288 * @param callMeta | |
289 * | |
290 * @throws ArtifactDatabaseException | |
291 * | |
292 * @return | |
293 */ | |
294 public Document setCollectionItemAttribute( | |
295 String collectionId, | |
296 String artifactId, | |
297 Document attribute, | |
298 CallMeta callMeta | |
299 ) | |
300 throws ArtifactDatabaseException | |
301 { | |
302 throw new UnsupportedOperationException("Not supported yet."); | |
303 } | |
304 | |
305 /** | |
306 * @param collectionId | |
307 * @param artifactId | |
308 * @param input | |
309 * @param callMeta | |
310 * | |
311 * @throws ArtifactDatabaseException | |
312 * | |
313 * @return | |
314 */ | |
315 public Document addCollectionArtifact( | |
316 String collectionId, | |
317 String artifactId, | |
318 Document input, | |
319 CallMeta callMeta | |
320 ) | |
321 throws ArtifactDatabaseException | |
322 { | |
323 throw new UnsupportedOperationException("Not supported yet."); | |
324 } | |
325 | |
326 /** | |
327 * @param collectionId | |
328 * @param artifactId | |
329 * @param callMeta | |
330 * | |
331 * @throws ArtifactDatabaseException | |
332 * | |
333 * @return | |
334 */ | |
335 public Document removeCollectionArtifact( | |
336 String collectionId, | |
337 String artifactId, | |
338 CallMeta callMeta | |
339 ) | |
340 throws ArtifactDatabaseException | |
341 { | |
342 throw new UnsupportedOperationException("Not supported yet."); | |
343 } | |
344 | |
345 /** | |
346 * @param collectionId | |
347 * @param callMeta | |
348 * | |
349 * @throws ArtifactDatabaseException | |
350 * | |
351 * @return | |
352 */ | |
353 public Document listCollectionArtifacts( | |
354 String collectionId, | |
355 CallMeta callMeta | |
356 ) | |
357 throws ArtifactDatabaseException | |
358 { | |
359 throw new UnsupportedOperationException("Not supported yet."); | |
360 } | |
361 | |
362 | |
363 public Document listUsers(CallMeta callMeta) | |
364 throws ArtifactDatabaseException | |
365 { | |
366 throw new UnsupportedOperationException("Not supported yet."); | |
367 } | |
368 | |
369 public Document createUser(Document data, CallMeta callMeta) | |
370 throws ArtifactDatabaseException | |
371 { | |
372 throw new UnsupportedOperationException("Not supported yet."); | |
373 } | |
374 | |
375 public Document deleteUser(String userId, CallMeta callMeta) | |
376 throws ArtifactDatabaseException | |
377 { | |
378 throw new UnsupportedOperationException("Not supported yet."); | |
379 } | |
380 } |