comparison 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
comparison
equal deleted inserted replaced
130:147610c43863 131:82809c5992e1
93 93
94 if (logger.isDebugEnabled()) { 94 if (logger.isDebugEnabled()) {
95 logger.debug("Create artifact with factory '" + factory + "'"); 95 logger.debug("Create artifact with factory '" + factory + "'");
96 } 96 }
97 97
98 ArtifactDatabase db = (ArtifactDatabase)getContext() 98 ArtifactDatabase db = getArtifactDatabase();
99 .getAttributes().get("database");
100 99
101 try { 100 try {
102 return new DomRepresentation( 101 return new DomRepresentation(
103 MediaType.APPLICATION_XML, 102 MediaType.APPLICATION_XML,
104 db.createArtifactWithFactory(factory, 103 db.createArtifactWithFactory(factory,

http://dive4elements.wald.intevation.org