comparison artifacts/src/main/java/org/dive4elements/river/artifacts/services/MetaDataService.java @ 5867:59ff03ff48f1

River artifacts: Renamed FLYSArtifact(Collection) to D4EArtifact(Collection).
author Sascha L. Teichmann <teichmann@intevation.de>
date Sun, 28 Apr 2013 15:23:01 +0200
parents 4897a58c8746
children 35b2d86c3fb5
comparison
equal deleted inserted replaced
5866:9a6741ccf6d4 5867:59ff03ff48f1
26 26
27 import org.dive4elements.artifacts.common.ArtifactNamespaceContext; 27 import org.dive4elements.artifacts.common.ArtifactNamespaceContext;
28 28
29 import org.dive4elements.river.artifacts.datacage.Recommendations; 29 import org.dive4elements.river.artifacts.datacage.Recommendations;
30 30
31 import org.dive4elements.river.artifacts.FLYSArtifact; 31 import org.dive4elements.river.artifacts.D4EArtifact;
32 32
33 33
34 /** 34 /**
35 * Following XPaths are evaluated on the incoming document. 35 * Following XPaths are evaluated on the incoming document.
36 * 36 *
128 String parameters, 128 String parameters,
129 GlobalContext globalContext 129 GlobalContext globalContext
130 ) { 130 ) {
131 Document result = XMLUtils.newDocument(); 131 Document result = XMLUtils.newDocument();
132 132
133 FLYSArtifact flysArtifact; 133 D4EArtifact flysArtifact;
134 134
135 if (log.isDebugEnabled()) { 135 if (log.isDebugEnabled()) {
136 log.debug("artifact : " + artifactId); 136 log.debug("artifact : " + artifactId);
137 log.debug("user : " + userId); 137 log.debug("user : " + userId);
138 log.debug("outs : " + outsString); 138 log.debug("outs : " + outsString);
168 catch (ArtifactDatabaseException adbe) { 168 catch (ArtifactDatabaseException adbe) {
169 log.warn("fetching artifact failed", adbe); 169 log.warn("fetching artifact failed", adbe);
170 return result; 170 return result;
171 } 171 }
172 172
173 if (!(artifact instanceof FLYSArtifact)) { 173 if (!(artifact instanceof D4EArtifact)) {
174 log.warn("artifact is not a FLYS artifact."); 174 log.warn("artifact is not a FLYS artifact.");
175 return result; 175 return result;
176 } 176 }
177 177
178 flysArtifact = (FLYSArtifact)artifact; 178 flysArtifact = (D4EArtifact)artifact;
179 } 179 }
180 else { 180 else {
181 flysArtifact = null; 181 flysArtifact = null;
182 } 182 }
183 183

http://dive4elements.wald.intevation.org