Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactCollection.java @ 170:ac0f8bd97277
Fix parameter propagation of creation time ond collection names.
artifacts/trunk@1395 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 04 Mar 2011 10:51:10 +0000 |
parents | db0d20440b92 |
children | b2115f484edb |
comparison
equal
deleted
inserted
replaced
169:2f575d594fdb | 170:ac0f8bd97277 |
---|---|
84 * @param data The data which can be use to setup a collection with | 84 * @param data The data which can be use to setup a collection with |
85 * more details. | 85 * more details. |
86 */ | 86 */ |
87 public void setup( | 87 public void setup( |
88 String identifier, | 88 String identifier, |
89 String name, | |
90 Date creationTime, | |
89 ArtifactCollectionFactory factory, | 91 ArtifactCollectionFactory factory, |
90 Object context, | 92 Object context, |
91 Document data) | 93 Document data) |
92 { | 94 { |
93 logger.debug("DefaultArtifactCollection.setup: " + identifier); | 95 logger.debug("DefaultArtifactCollection.setup: " + identifier); |
94 | 96 |
95 artifacts = new ArrayList<Artifact>(); | 97 artifacts = new ArrayList<Artifact>(); |
96 attributes = new HashMap<String, Document>(); | 98 attributes = new HashMap<String, Document>(); |
97 | 99 |
98 setIdentifier(identifier); | 100 setIdentifier(identifier); |
101 setName(name); | |
102 setCreationTime(creationTime); | |
99 } | 103 } |
100 | 104 |
101 | 105 |
102 /** | 106 /** |
103 * Set a new identifier for this collection. | 107 * Set a new identifier for this collection. |