Mercurial > dive4elements > framework
diff artifact-database/src/main/java/de/intevation/artifactdatabase/rest/CreateResource.java @ 131:82809c5992e1
Added a resource '/create-user' to create new users.
artifacts/trunk@1355 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 02 Mar 2011 09:06:05 +0000 |
parents | 7fc0650f194c |
children | b2115f484edb |
line wrap: on
line diff
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/CreateResource.java Wed Mar 02 07:36:00 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/CreateResource.java Wed Mar 02 09:06:05 2011 +0000 @@ -95,8 +95,7 @@ logger.debug("Create artifact with factory '" + factory + "'"); } - ArtifactDatabase db = (ArtifactDatabase)getContext() - .getAttributes().get("database"); + ArtifactDatabase db = getArtifactDatabase(); try { return new DomRepresentation(