Mercurial > dive4elements > framework
diff artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java @ 233:16cd059945e5
Removed trailing whitespace.
artifacts/trunk@1638 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 03 Apr 2011 10:45:48 +0000 |
parents | fbd57d2eeaef |
children | 3e29395ebac6 |
line wrap: on
line diff
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java Thu Mar 31 17:14:22 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java Sun Apr 03 10:45:48 2011 +0000 @@ -762,7 +762,7 @@ } public User createUser( - final String name, + final String name, final Document role, final UserFactory factory, final Object context @@ -849,7 +849,7 @@ prepareStatement(SQL_DELETE_USER_COLLECTION_ITEMS); stmnt.setInt(1, id); stmnt.execute(); - + reset(); // delete the collections of the user @@ -875,7 +875,7 @@ } public User getUser( - final String identifier, + final String identifier, final UserFactory factory, final Object context ) { @@ -910,7 +910,7 @@ } public User [] getUsers( - final UserFactory factory, + final UserFactory factory, final Object context ) { final ArrayList<User> users = new ArrayList<User>(); @@ -941,7 +941,7 @@ } public ArtifactCollection createCollection( - final String ownerIdentifier, + final String ownerIdentifier, final String name, final ArtifactCollectionFactory factory, final Document attribute, @@ -1107,7 +1107,7 @@ final UserFactory userFactory, final Object context ) { - if (ownerIdentifier != null + if (ownerIdentifier != null && !isValidIdentifier(ownerIdentifier)) { logger.debug("Invalid owner id: '" + ownerIdentifier + "'"); return null; @@ -1238,7 +1238,7 @@ } public boolean setCollectionAttribute( - final String collectionId, + final String collectionId, final String artifactId, Document attribute ) {