comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/AnnotationArtifact.java @ 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 a8aa343799a2
children a4bdf7d8527e
comparison
equal deleted inserted replaced
2111:85d31c2620e5 2112:2d0b22602fc2
41 private static Logger logger = Logger.getLogger(AnnotationArtifact.class); 41 private static Logger logger = Logger.getLogger(AnnotationArtifact.class);
42 42
43 /** The name of the artifact. */ 43 /** The name of the artifact. */
44 public static final String ARTIFACT_NAME = "annotation"; 44 public static final String ARTIFACT_NAME = "annotation";
45 45
46 /* Name of cache. */ 46 /** Name of cache. */
47 public static final String CACHE_NAME = "annotations"; 47 public static final String CACHE_NAME = "annotations";
48 48
49 /** Get river, setup Facets. */
49 @Override 50 @Override
50 protected void initialize(Artifact artifact, Object context, 51 protected void initialize(Artifact artifact, Object context,
51 CallMeta meta) { 52 CallMeta meta) {
52 logger.debug("AnnotationArtifact.initialize, id: " 53 logger.debug("AnnotationArtifact.initialize, id: "
53 + artifact.identifier()); 54 + artifact.identifier());
54 55
55 FLYSArtifact flys = (FLYSArtifact) artifact; 56 FLYSArtifact flys = (FLYSArtifact) artifact;
56 addData("river", flys.getData("river")); 57 importData(flys, "river");
57 58
58 List<Facet> fs = new ArrayList<Facet>(); 59 List<Facet> fs = new ArrayList<Facet>();
59 60
60 // TODO Add CallMeta (duplicate TODO in RiverAxisArtifact.java). 61 // TODO Add CallMeta (duplicate TODO in RiverAxisArtifact.java).
61 DefaultState state = (DefaultState) getCurrentState(context); 62 DefaultState state = (DefaultState) getCurrentState(context);
253 return old != null 254 return old != null
254 ? (List<Annotation>) old 255 ? (List<Annotation>) old
255 : new ArrayList<Annotation>(); 256 : new ArrayList<Annotation>();
256 } 257 }
257 258
259
258 /** 260 /**
259 * Gets Annotations from Session/Database. 261 * Gets Annotations from Session/Database.
260 * 262 *
261 * @return List of Annotations fetched fresh from session/database. 263 * @return List of Annotations fetched fresh from session/database.
262 * @see DistanceInfoService to access cached documents. 264 * @see DistanceInfoService to access cached documents.

http://dive4elements.wald.intevation.org