comparison artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java @ 316:0ca9b1073ccf

Added dummy user to fresh created collections to have it available in the backend listeners. artifacts/trunk@2451 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 02 Aug 2011 13:10:56 +0000
parents 31ee2b3b5a57
children 824051dff018
comparison
equal deleted inserted replaced
315:03e508e57b85 316:0ca9b1073ccf
1101 } 1101 }
1102 1102
1103 collection[0] = factory.createCollection( 1103 collection[0] = factory.createCollection(
1104 identifier, name, creationTime, ttl, attribute, context); 1104 identifier, name, creationTime, ttl, attribute, context);
1105 1105
1106 if (collection[0] != null) {
1107 // XXX: Little hack to make the listeners happy
1108 collection[0].setUser(new DefaultUser(ownerIdentifier));
1109 }
1110
1106 return true; 1111 return true;
1107 } 1112 }
1108 }; 1113 };
1109 1114
1110 boolean success = exec.runWrite(); 1115 boolean success = exec.runWrite();

http://dive4elements.wald.intevation.org