changeset 361:b47d0464f0db

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
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 16 Dec 2011 09:14:14 +0000
parents c065a1a90ba0
children 5b6ba54d488a
files ChangeLog artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java artifact-database/src/main/java/de/intevation/artifactdatabase/state/Output.java
diffstat 3 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 <ingo@intevation.de>
+
+	* 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<Facet>) to replace an existing list of
+	  Facets.
+
 2011-12-14  Ingo Weinzierl <ingo@intevation.de>
 
 	* artifact-database/src/main/java/de/intevation/artifactdatabase/state/Attribute.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<Facet> facets) {
+        this.facets = facets;
+    }
+
+
+    @Override
     public void setSettings(Settings settings) {
         this.settings = settings;
     }
--- 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<Facet> facets);
 
     /**
+     * Replaces the old list of facets with a new one.
+     *
+     * @param facets A list of new facets.
+     */
+    public void setFacets(List<Facet> facets);
+
+    /**
      * Returns a Settings object for this Output.
      */
     public Settings getSettings();

http://dive4elements.wald.intevation.org