Mercurial > dive4elements > framework
diff artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactCollection.java @ 221:f75f83af19e0
Made the 'attribute' document of an ArtifactCollection accessible with getter and setter methods.
artifacts/trunk@1564 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 24 Mar 2011 18:42:43 +0000 |
parents | 70cbbe144931 |
children | d9a99b28a847 |
line wrap: on
line diff
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactCollection.java Thu Mar 24 17:43:45 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactCollection.java Thu Mar 24 18:42:43 2011 +0000 @@ -56,6 +56,11 @@ protected User user; /** + * The attribute of this collection. + */ + protected Document attribute; + + /** * The artifacts stored in this collection. */ protected List<Artifact> artifacts; @@ -103,6 +108,7 @@ setIdentifier(identifier); setName(name); setCreationTime(creationTime); + setAttribute(data); } @@ -187,6 +193,26 @@ /** + * Returns the attribute of the collection. + * + * @return the attribute of the collection. + */ + public Document getAttribute() { + return attribute; + } + + + /** + * Sets the attribute of the collection. + * + * @param attribute The attribute of this collection. + */ + public void setAttribute(Document attribute) { + this.attribute = attribute; + } + + + /** * Called from artifact database when an artifact is * going to be removed from system. * @param context The global context of the runtime system.