comparison artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java @ 418:8d8aed23c323

Remove spaces and newline artifacts/trunk@5283 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Tue, 28 Aug 2012 14:02:51 +0000
parents 410a1bfb9590
children
comparison
equal deleted inserted replaced
417:410a1bfb9590 418:8d8aed23c323
1215 ArtifactNamespaceContext.NAMESPACE_URI, 1215 ArtifactNamespaceContext.NAMESPACE_URI,
1216 ArtifactNamespaceContext.NAMESPACE_PREFIX); 1216 ArtifactNamespaceContext.NAMESPACE_PREFIX);
1217 1217
1218 Element root = ec.create("users"); 1218 Element root = ec.create("users");
1219 result.appendChild(root); 1219 result.appendChild(root);
1220 1220
1221 if(users != null) { 1221 if(users != null) {
1222 for (User user: users) { 1222 for (User user: users) {
1223 Element ue = ec.create("user"); 1223 Element ue = ec.create("user");
1224 ec.addAttr(ue, "uuid", user.identifier(), true); 1224 ec.addAttr(ue, "uuid", user.identifier(), true);
1225 ec.addAttr(ue, "name", user.getName(), true); 1225 ec.addAttr(ue, "name", user.getName(), true);
1232 if (role != null) { 1232 if (role != null) {
1233 ue.appendChild(result.importNode(role.getFirstChild(), true)); 1233 ue.appendChild(result.importNode(role.getFirstChild(), true));
1234 } 1234 }
1235 1235
1236 root.appendChild(ue); 1236 root.appendChild(ue);
1237
1238 } 1237 }
1239 } 1238 }
1240 1239
1241 return result; 1240 return result;
1242 } 1241 }

http://dive4elements.wald.intevation.org