comparison artifact-database/src/main/java/de/intevation/artifactdatabase/state/ArtifactAndFacet.java @ 357:1d11a0531242

Added artifact parameter to facets getDataProviderKeys. artifacts/trunk@3380 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 09 Dec 2011 16:03:19 +0000
parents 079ab7c971a4
children 33176e6e3c37
comparison
equal deleted inserted replaced
356:079ab7c971a4 357:1d11a0531242
11 * A bundle of a "native" Facet and its Artifact. 11 * A bundle of a "native" Facet and its Artifact.
12 */ 12 */
13 public class ArtifactAndFacet implements DataProvider { 13 public class ArtifactAndFacet implements DataProvider {
14 /** The Artifact. */ 14 /** The Artifact. */
15 protected Artifact artifact; 15 protected Artifact artifact;
16
16 /** The (native) facet. */ 17 /** The (native) facet. */
17 protected Facet facet; 18 protected Facet facet;
18 19
19 20
20 /** Trivial constructor. */ 21 /** Trivial constructor. */
39 } 40 }
40 41
41 42
42 /** (Maybe) Register on blackboard (depending on facet). */ 43 /** (Maybe) Register on blackboard (depending on facet). */
43 public void register(CallContext context) { 44 public void register(CallContext context) {
44 List keys = facet.getDataProviderKeys(); 45 List keys = facet.getDataProviderKeys(this.artifact);
45 if (keys == null) { 46 if (keys == null) {
46 return; 47 return;
47 } 48 }
48 for (Object key: keys) { 49 for (Object key: keys) {
49 context.registerDataProvider(key, this); 50 context.registerDataProvider(key, this);

http://dive4elements.wald.intevation.org