# HG changeset patch # User Ingo Weinzierl # Date 1303393404 0 # Node ID 9e12f3fbcf7815d83bb44adcd287785ba8521eae # Parent 366cf4694d45ec64e9f8508eaaef6456528ac631 Added a method to add new facets to an output. artifacts/trunk@1742 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 366cf4694d45 -r 9e12f3fbcf78 ChangeLog --- a/ChangeLog Thu Apr 14 13:24:35 2011 +0000 +++ b/ChangeLog Thu Apr 21 13:43:24 2011 +0000 @@ -1,3 +1,9 @@ +2011-04-21 Ingo Weinzierl + + * artifact-database/src/main/java/de/intevation/artifactdatabase/state/Output.java, + artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java: + Added a method to add further facets. + 2011-04-14 Ingo Weinzierl * artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java: diff -r 366cf4694d45 -r 9e12f3fbcf78 artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java --- a/artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java Thu Apr 14 13:24:35 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java Thu Apr 21 13:43:24 2011 +0000 @@ -1,5 +1,6 @@ package de.intevation.artifactdatabase.state; +import java.util.ArrayList; import java.util.List; /** @@ -29,6 +30,7 @@ this.name = name; this.description = description; this.mimeType = mimeType; + this.facets = new ArrayList(); } @@ -90,5 +92,10 @@ public List getFacets() { return facets; } + + + public void addFacet(Facet facet) { + facets.add(facet); + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : diff -r 366cf4694d45 -r 9e12f3fbcf78 artifact-database/src/main/java/de/intevation/artifactdatabase/state/Output.java --- a/artifact-database/src/main/java/de/intevation/artifactdatabase/state/Output.java Thu Apr 14 13:24:35 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/state/Output.java Thu Apr 21 13:43:24 2011 +0000 @@ -35,5 +35,12 @@ * @return the facets of this output. */ public List getFacets(); + + /** + * Add a new facet to this output. + * + * @param facet The new facet. + */ + public void addFacet(Facet facet); } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :