changeset 2112:2d0b22602fc2

Cosmetics. flys-artifacts/trunk@3675 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 13 Jan 2012 11:41:05 +0000
parents 85d31c2620e5
children d109e7702995
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/AnnotationArtifact.java
diffstat 2 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Fri Jan 13 11:40:27 2012 +0000
+++ b/flys-artifacts/ChangeLog	Fri Jan 13 11:41:05 2012 +0000
@@ -1,3 +1,8 @@
+2011-01-13	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/AnnotationArtifact.java:
+	  Cosmetics.
+
 2011-01-13	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/AnnotationArtifact.java	Fri Jan 13 11:40:27 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/AnnotationArtifact.java	Fri Jan 13 11:41:05 2012 +0000
@@ -43,17 +43,18 @@
     /** The name of the artifact. */
     public static final String ARTIFACT_NAME = "annotation";
 
-    /* Name of cache. */
+    /** Name of cache. */
     public static final String CACHE_NAME = "annotations";
 
+    /** Get river, setup Facets. */
     @Override
     protected void initialize(Artifact artifact, Object context,
             CallMeta meta) {
         logger.debug("AnnotationArtifact.initialize, id: "
-                + artifact.identifier());
+            + artifact.identifier());
 
         FLYSArtifact flys = (FLYSArtifact) artifact;
-        addData("river", flys.getData("river"));
+        importData(flys, "river");
 
         List<Facet> fs = new ArrayList<Facet>();
 
@@ -255,6 +256,7 @@
             : new ArrayList<Annotation>();
     }
 
+
     /**
      * Gets Annotations from Session/Database.
      *

http://dive4elements.wald.intevation.org