# HG changeset patch # User Ingo Weinzierl # Date 1324026854 0 # Node ID b47d0464f0dbfc11e001408c0eec8837242c5b09 # Parent c065a1a90ba0bba81150e4973dead83d9d3ecebc Extended the Output interface and its default implementation with a method to replace an existing list of Facets. artifacts/trunk@3429 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r c065a1a90ba0 -r b47d0464f0db ChangeLog --- a/ChangeLog Wed Dec 14 14:03:28 2011 +0000 +++ b/ChangeLog Fri Dec 16 09:14:14 2011 +0000 @@ -1,3 +1,10 @@ +2011-12-16 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 new method setFacets(List) to replace an existing list of + Facets. + 2011-12-14 Ingo Weinzierl * artifact-database/src/main/java/de/intevation/artifactdatabase/state/Attribute.java: diff -r c065a1a90ba0 -r b47d0464f0db artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java --- a/artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java Wed Dec 14 14:03:28 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java Fri Dec 16 09:14:14 2011 +0000 @@ -142,6 +142,12 @@ @Override + public void setFacets(List facets) { + this.facets = facets; + } + + + @Override public void setSettings(Settings settings) { this.settings = settings; } diff -r c065a1a90ba0 -r b47d0464f0db artifact-database/src/main/java/de/intevation/artifactdatabase/state/Output.java --- a/artifact-database/src/main/java/de/intevation/artifactdatabase/state/Output.java Wed Dec 14 14:03:28 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/state/Output.java Fri Dec 16 09:14:14 2011 +0000 @@ -59,6 +59,13 @@ public void addFacets(List facets); /** + * Replaces the old list of facets with a new one. + * + * @param facets A list of new facets. + */ + public void setFacets(List facets); + + /** * Returns a Settings object for this Output. */ public Settings getSettings();