comparison artifact-database/src/main/java/de/intevation/artifactdatabase/rest/UserResource.java @ 395:b77465617071

Cosmetics. artifacts/trunk@4790 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 25 Jun 2012 18:14:38 +0000
parents f92ad0e40df2
children
comparison
equal deleted inserted replaced
394:c40729bfe06d 395:b77465617071
33 * @author <a href="mailto:ingo.weinzierl@intevation">Ingo Weinzierl</a> 33 * @author <a href="mailto:ingo.weinzierl@intevation">Ingo Weinzierl</a>
34 */ 34 */
35 public class UserResource 35 public class UserResource
36 extends BaseResource 36 extends BaseResource
37 { 37 {
38 /** The logger that is used in this class.*/ 38 /** The logger that is used in this class. */
39 private static Logger logger = Logger.getLogger(UserResource.class); 39 private static Logger logger = Logger.getLogger(UserResource.class);
40 40
41 /** server URL where to reach the resource.*/ 41 /** server URL where to reach the resource. */
42 public static final String PATH = "/user/{uuid}"; 42 public static final String PATH = "/user/{uuid}";
43 43
44 /** 44 /**
45 * XPath to figure out the type of action (feed, advance) via the 45 * XPath to figure out the type of action (feed, advance) via the
46 * incoming POST request. 46 * incoming POST request.
47 */ 47 */
48 public static final String XPATH_ACTION = "/art:action/art:type/@name"; 48 public static final String XPATH_ACTION = "/art:action/art:type/@name";
49 49
50 /** Error message if no action was given.*/ 50 /** Error message if no action was given. */
51 public static final String NO_ACTION_MSG = "no action given"; 51 public static final String NO_ACTION_MSG = "no action given";
52 52
53 /** Error message if a unknown action was given.*/ 53 /** Error message if a unknown action was given. */
54 public static final String NO_SUCH_ACTION_MSG = "no such action"; 54 public static final String NO_SUCH_ACTION_MSG = "no such action";
55 55
56 /** Action name for deleting users.*/ 56 /** Action name for deleting users. */
57 public static final String ACTION_DELETE = "delete"; 57 public static final String ACTION_DELETE = "delete";
58 58
59 59
60 @Override 60 @Override
61 protected Representation innerPost(Representation requestRepr) { 61 protected Representation innerPost(Representation requestRepr) {

http://dive4elements.wald.intevation.org