comparison gwt-client/src/main/java/org/dive4elements/river/client/server/RiverServiceImpl.java @ 7761:350a7cf09fbc

Load modules with supported rivers and rivers with model_uuid.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 27 Feb 2014 16:38:45 +0100
parents ea9eef426962
children 238fc722f87a
comparison
equal deleted inserted replaced
7760:5811dfe22897 7761:350a7cf09fbc
91 for (int i = 0; i < count; i++) { 91 for (int i = 0; i < count; i++) {
92 Element tmp = (Element)rivers.item(i); 92 Element tmp = (Element)rivers.item(i);
93 93
94 String name = tmp.getAttributeNS( 94 String name = tmp.getAttributeNS(
95 ArtifactNamespaceContext.NAMESPACE_URI, "name"); 95 ArtifactNamespaceContext.NAMESPACE_URI, "name");
96 String mUuid = tmp.getAttributeNS(
97 ArtifactNamespaceContext.NAMESPACE_URI, "modeluuid");
96 98
97 if (name.length() > 0 99 if (name.length() > 0
98 && (user == null || user.canUseFeature("river:" + name))) { 100 && (user == null || user.canUseFeature("river:" + name))) {
99 theRivers.add(new DefaultRiver(name)); 101 theRivers.add(new DefaultRiver(name, mUuid));
100 } 102 }
101 } 103 }
102 104
103 return theRivers.toArray(new River[theRivers.size()]); 105 return theRivers.toArray(new River[theRivers.size()]);
104 } 106 }

http://dive4elements.wald.intevation.org