Mercurial > dive4elements > framework
comparison artifacts/src/main/java/de/intevation/artifacts/ArtifactCollectionFactory.java @ 115:a1200c6ed048
Initial interfaces to handle with Collections and Users.
artifacts/trunk@1338 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 01 Mar 2011 12:17:00 +0000 |
parents | |
children | c030895edfcb |
comparison
equal
deleted
inserted
replaced
114:19b86e27d0c3 | 115:a1200c6ed048 |
---|---|
1 /* | |
2 * Copyright (c) 2011 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 package de.intevation.artifacts; | |
9 | |
10 import org.w3c.dom.Document; | |
11 import org.w3c.dom.Node; | |
12 | |
13 public interface ArtifactCollectionFactory | |
14 { | |
15 /** | |
16 * The short name of this factory. | |
17 * @return the name of this factory. | |
18 */ | |
19 String getName(); | |
20 | |
21 /** | |
22 * Description of this factory. | |
23 * @return description of the factory. | |
24 */ | |
25 String getDescription(); | |
26 | |
27 /** | |
28 * Create a new artifact of certain type, given a general purpose context and | |
29 * an identifier. | |
30 * @param context a context from the ArtifactDatabase. | |
31 * @param identifier unique identifer for the new artifact | |
32 * @param data the data containing more details for the setup of an Artifact. | |
33 * @return a new {@linkplain de.intevation.artifacts.ArtifactCollection ArtifactCollection} | |
34 */ | |
35 ArtifactCollection createCollection(String identifier, Object context, Document data); | |
36 | |
37 /** | |
38 * Setup the factory with a given configuration | |
39 * @param config the configuration | |
40 * @param factoryNode the ConfigurationNode of this Factory | |
41 */ | |
42 void setup(Document config, Node factoryNode); | |
43 } | |
44 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | |
45 |