comparison artifacts/src/main/java/org/dive4elements/river/artifacts/MainValuesArtifact.java @ 7842:8d5ca5175038

Updated signature of artifacts setup method; Removed unnecessary setup overrides.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 30 Apr 2014 15:12:32 +0200
parents a9eb777463e1
children e4606eae8ea5
comparison
equal deleted inserted replaced
7841:8036688f24e1 7842:8d5ca5175038
105 public void setup( 105 public void setup(
106 String identifier, 106 String identifier,
107 ArtifactFactory factory, 107 ArtifactFactory factory,
108 Object context, 108 Object context,
109 CallMeta callMeta, 109 CallMeta callMeta,
110 Document data) 110 Document data,
111 List<Class> loadFacets)
111 { 112 {
112 logger.debug("MainValuesArtifact.setup"); 113 logger.debug("MainValuesArtifact.setup");
113 state = new StaticState(STATIC_STATE_NAME); 114 state = new StaticState(STATIC_STATE_NAME);
114 115
115 initFromGaugeDoc(data, callMeta); 116 initFromGaugeDoc(data, callMeta);
116 117
117 List<Facet> fs = new ArrayList<Facet>(); 118 List<Facet> fs = new ArrayList<Facet>();
118 addFacets(state.getID(), fs); 119 addFacets(state.getID(), fs);
119 spawnState(); 120 spawnState();
120 super.setup(identifier, factory, context, callMeta, data); 121 super.setup(identifier, factory, context, callMeta, data, loadFacets);
121 String restriction = getDatacageIDValue(data); 122 String restriction = getDatacageIDValue(data);
122 logger.debug("mainvalue restriction " + restriction); 123 logger.debug("mainvalue restriction " + restriction);
123 boolean restricted = restriction.endsWith("q") || restriction.endsWith("w"); 124 boolean restricted = restriction.endsWith("q") || restriction.endsWith("w");
124 if (!restricted || restriction.endsWith("q")) { 125 if (!restricted || restriction.endsWith("q")) {
125 Facet qfacet0 = new MainValuesQFacet( 126 Facet qfacet0 = new MainValuesQFacet(

http://dive4elements.wald.intevation.org