comparison artifacts/src/main/java/org/dive4elements/river/artifacts/CollectionMonitor.java @ 7434:505b05e223b1

Experimental patch: Do not run datacage on artifacts that are loaded from datacage. His hopefully minimizes the datacage runs when a lot of data is loaded.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 25 Oct 2013 03:47:04 +0200
parents af13ceeba52a
children f16dce7a2407
comparison
equal deleted inserted replaced
7433:73946c0007ff 7434:505b05e223b1
42 42
43 43
44 @Override 44 @Override
45 public void execute(Artifact artifact, CallContext context, Document doc) { 45 public void execute(Artifact artifact, CallContext context, Document doc) {
46 D4EArtifact flys = (D4EArtifact) artifact; 46 D4EArtifact flys = (D4EArtifact) artifact;
47
48 // Do not generate recommendations for a loaded artifact.
49 String out = flys.getBoundToOut();
50 if (out != null && !out.isEmpty()) {
51 return;
52 }
47 53
48 Element result = (Element) XMLUtils.xpath( 54 Element result = (Element) XMLUtils.xpath(
49 doc, 55 doc,
50 XPATH_RESULT, 56 XPATH_RESULT,
51 XPathConstants.NODE, 57 XPathConstants.NODE,

http://dive4elements.wald.intevation.org