Mercurial > dive4elements > framework
changeset 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 | ecfc33a4ba3d |
children | 98695dc6d94d |
files | ChangeLog artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactCollection.java artifacts/src/main/java/de/intevation/artifacts/ArtifactCollection.java |
diffstat | 3 files changed, 37 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Mar 24 17:43:45 2011 +0000 +++ b/ChangeLog Thu Mar 24 18:42:43 2011 +0000 @@ -1,3 +1,10 @@ +2011-03-24 Ingo Weinzierl <ingo@intevation.de> + + * artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactCollection.java, + artifacts/src/main/java/de/intevation/artifacts/ArtifactCollection.java: + Made the document 'attribute' of the ArtifactCollection accessible via + getter and setter methods. + 2011-03-24 Ingo Weinzierl <ingo@intevation.de> * artifacts-common/src/main/java/de/intevation/artifacts/common/utils/ClientProtocolUtils.java:
--- 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.
--- a/artifacts/src/main/java/de/intevation/artifacts/ArtifactCollection.java Thu Mar 24 17:43:45 2011 +0000 +++ b/artifacts/src/main/java/de/intevation/artifacts/ArtifactCollection.java Thu Mar 24 18:42:43 2011 +0000 @@ -39,6 +39,10 @@ void setCreationTime(Date creationTime); + Document getAttribute(); + + void setAttribute(Document attribute); + /** * Set a new owner of this collection. * @param user New owner for this collection.