diff flys-artifacts/ChangeLog @ 1709:f643ea084213

Allow simple codepaths to have Facets initially being 'inactive' (wrt rendering). flys-artifacts/trunk@2969 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 14 Oct 2011 08:52:44 +0000
parents e99b4bd32cd5
children 055f32a5388a
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Thu Oct 13 12:42:31 2011 +0000
+++ b/flys-artifacts/ChangeLog	Fri Oct 14 08:52:44 2011 +0000
@@ -1,6 +1,30 @@
+2011-10-14	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	Add possibility of programmatic configuration of initial "activity"
+	state (active or inactive) of (Managed)Facets by introducing
+	FLYSArtifact.getInitialFacetActivity. This method shall be overriden
+	by subclasses where Facets are wanted to come to live inactive.
+	Artifacts will be asked only once how the MangedFacet should come to live,
+	namely when AttributeWriter finds a genuinely new Facet.
+
+	* src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java,
+	  src/main/java/de/intevation/flys/artifacts/WaterlevelArtifact.java
+	  (getInitialFacetActivity):
+	  New function to let Artifact decide whether a ManagedFacet shall
+	  initially be set to active or inactive.
+
+	 * src/main/java/de/intevation/flys/collections/AttributeWriter.java:
+	   Accept database in constructor. For genuinely new Facets, spawn its
+	   mother artifact and ask whether the (Managed)Facet shall be active
+	   or inactive (initially).
+
+	 * src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java
+	   (buildOutAttributes): Pass database to AttributeWrite (which needs it
+	   to spawn artifacts), rename items parameter to reflect content.
+
 2011-10-13	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
-	Cosemtics, removed obsolete imports.
+	Cosmetics, removed obsolete imports.
 
 	* src/main/java/de/intevation/flys/artifacts/WaterlevelArtifact.java,
 	  src/main/java/de/intevation/flys/exports/WDifferencesCurveGenerator.java:

http://dive4elements.wald.intevation.org