Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/ArtifactDescriptionFactory.java @ 6136:8d9859d776e5
Handle target_out in the Recommendation / Client datacage code.
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 31 May 2013 15:20:55 +0200 |
parents | ea9eef426962 |
children | b9decb8bfb21 |
comparison
equal
deleted
inserted
replaced
6135:804e50149d6a | 6136:8d9859d776e5 |
---|---|
573 int num = list != null ? list.getLength() : 0; | 573 int num = list != null ? list.getLength() : 0; |
574 | 574 |
575 Recommendation[] rec = new Recommendation[num]; | 575 Recommendation[] rec = new Recommendation[num]; |
576 | 576 |
577 for (int i = 0; i < num; i++) { | 577 for (int i = 0; i < num; i++) { |
578 Element e = (Element) list.item(i); | 578 Element e = (Element) list.item(i); |
579 String factory = e.getAttribute("factory"); | 579 String factory = e.getAttribute("factory"); |
580 String index = e.getAttribute("ids"); | 580 String index = e.getAttribute("ids"); |
581 String targetOut = e.getAttribute("target_out"); | |
581 | 582 |
582 if (factory != null && factory.length() > 0) { | 583 if (factory != null && factory.length() > 0) { |
583 rec[i] = new Recommendation(factory, index); | 584 logger.debug("Adding Recommendation. Factory: " + factory + |
585 " IDs: " + index + " target out " + targetOut); | |
586 rec[i] = new Recommendation(factory, index, null, null, targetOut); | |
584 } | 587 } |
585 } | 588 } |
586 | 589 |
587 return rec; | 590 return rec; |
588 } | 591 } |