comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/CrossSectionFacet.java @ 2301:bc23341bf322

Repair area over cross sections. flys-artifacts/trunk@3969 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 08 Feb 2012 14:37:35 +0000
parents 98f3ef8da857
children da35b8a23ffb
comparison
equal deleted inserted replaced
2300:a3dd443976bc 2301:bc23341bf322
18 18
19 /** 19 /**
20 * Trival Facet for Cross Sections (profiles). 20 * Trival Facet for Cross Sections (profiles).
21 */ 21 */
22 public class CrossSectionFacet 22 public class CrossSectionFacet
23 extends DefaultFacet 23 extends BlackboardDataFacet
24 implements FacetTypes { 24 implements FacetTypes {
25 25
26 public static String BLACKBOARD_CS_MASTER_DATA 26 public static String BLACKBOARD_CS_MASTER_DATA
27 = "crosssection.masterprofile.data"; 27 = "crosssection.masterprofile.data";
28 28
44 List keys = new ArrayList(); 44 List keys = new ArrayList();
45 if (artifact.isMaster()) { 45 if (artifact.isMaster()) {
46 keys.add(BLACKBOARD_CS_MASTER_DATA); 46 keys.add(BLACKBOARD_CS_MASTER_DATA);
47 } 47 }
48 keys.add(artifact.identifier() + getIndex()); 48 keys.add(artifact.identifier() + getIndex());
49 keys.addAll(super.getDataProviderKeys(art));
49 return keys; 50 return keys;
50 } 51 }
51 52
52 53
53 /** 54 /**
70 } 71 }
71 else if (key.equals(artifact.identifier() + getIndex())) { 72 else if (key.equals(artifact.identifier() + getIndex())) {
72 return getData(artifact, context); 73 return getData(artifact, context);
73 } 74 }
74 else { 75 else {
75 logger.warn("Cannot provide data for key: " + key); 76 Object obj = super.provideBlackboardData(artifact, key, param,
76 return null; 77 context);
78 if (obj == null) {
79 logger.warn("Cannot provide data for key: " + key);
80 }
81 return obj;
77 } 82 }
78 } 83 }
79 84
80 85
81 /** 86 /**

http://dive4elements.wald.intevation.org