Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/CollectionHelper.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | 238fc722f87a |
children | 853f2dafc16e 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
77 public static final String ERROR_REMOVE_ARTIFACT = "error_remove_artifact"; | 77 public static final String ERROR_REMOVE_ARTIFACT = "error_remove_artifact"; |
78 | 78 |
79 public static final String XPATH_FACETS = "art:facets/art:facet"; | 79 public static final String XPATH_FACETS = "art:facets/art:facet"; |
80 | 80 |
81 public static final String XPATH_LOADED_RECOMMENDATIONS = | 81 public static final String XPATH_LOADED_RECOMMENDATIONS = |
82 "/art:artifact-collection/art:attribute/art:loaded-recommendations/art:recommendation"; | 82 "/art:artifact-collection/art:attribute/" |
83 + "art:loaded-recommendations/art:recommendation"; | |
83 | 84 |
84 | 85 |
85 public static Document createAttribute(Collection collection) { | 86 public static Document createAttribute(Collection collection) { |
86 log.debug("CollectionHelper.createAttribute"); | 87 log.debug("CollectionHelper.createAttribute"); |
87 | 88 |
241 cr.addAttr(t, "artifact", theme.getArtifact(), true); | 242 cr.addAttr(t, "artifact", theme.getArtifact(), true); |
242 cr.addAttr(t, "facet", theme.getFacet(), true); | 243 cr.addAttr(t, "facet", theme.getFacet(), true); |
243 cr.addAttr(t, "pos", Integer.toString(theme.getPosition()), true); | 244 cr.addAttr(t, "pos", Integer.toString(theme.getPosition()), true); |
244 cr.addAttr(t, "index", Integer.toString(theme.getIndex()), true); | 245 cr.addAttr(t, "index", Integer.toString(theme.getIndex()), true); |
245 cr.addAttr(t, "description", theme.getDescription(), true); | 246 cr.addAttr(t, "description", theme.getDescription(), true); |
246 cr.addAttr(t, "visible", Integer.toString(theme.getVisible()), true); | 247 cr.addAttr(t, "visible", Integer.toString(theme.getVisible()), |
248 true); | |
247 } | 249 } |
248 | 250 |
249 return t; | 251 return t; |
250 } | 252 } |
251 | 253 |
477 c.addItem(item); | 479 c.addItem(item); |
478 collectionItems.put(item.identifier() ,item); | 480 collectionItems.put(item.identifier() ,item); |
479 } | 481 } |
480 } | 482 } |
481 | 483 |
482 Map<String, ThemeList> themeLists = parseThemeLists(description, collectionItems); | 484 Map<String, ThemeList> themeLists = parseThemeLists( |
485 description, collectionItems); | |
483 c.setThemeLists(themeLists); | 486 c.setThemeLists(themeLists); |
484 | 487 |
485 Map<String, Settings> outSettings = parseSettings(description); | 488 Map<String, Settings> outSettings = parseSettings(description); |
486 c.setSettings(outSettings); | 489 c.setSettings(outSettings); |
487 log.debug( | 490 log.debug( |