]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
1341263dfad3de730b3fd4c2b274194796a12e39
[tmp/jakarta-migration.git] /
1 /**
2  * PermissionProxy.java
3  *
4  * {Purpose of This Class}
5  *
6  * {Other Notes Relating to This Class (Optional)}
7  *
8  * $LastChangedBy: $
9  * $LastChangedRevision: $
10  * $LastChangedDate: $
11  *
12  * This document is a part of the source code and related artifacts
13  * for CollectionSpace, an open source collections management system
14  * for museums and related institutions:
15  *
16  * http://www.collectionspace.org
17  * http://wiki.collectionspace.org
18  *
19  * Copyright (C) 2009 {Contributing Institution}
20  *
21  * Licensed under the Educational Community License (ECL), Version 2.0.
22  * You may not use this file except in compliance with this License.
23  *
24  * You may obtain a copy of the ECL 2.0 License at
25  * https://source.collectionspace.org/collection-space/LICENSE.txt
26  */
27 package org.collectionspace.services.client;
28
29 import javax.ws.rs.Consumes;
30 import javax.ws.rs.GET;
31 import javax.ws.rs.POST;
32 import javax.ws.rs.PUT;
33 import javax.ws.rs.Path;
34 import javax.ws.rs.PathParam;
35 import javax.ws.rs.Produces;
36 import javax.ws.rs.QueryParam;
37 import javax.ws.rs.core.Response;
38
39 import org.collectionspace.services.authorization.perms.Permission;
40 import org.collectionspace.services.authorization.perms.PermissionsList;
41
42 /**
43  * @version $Revision:$
44  */
45 @Path("/authorization/permissions")
46 @Produces({"application/xml"})
47 @Consumes({"application/xml"})
48 public interface PermissionProxy extends CollectionSpaceProxy<PermissionsList> {
49
50     @GET
51     @Produces({"application/xml"})
52     Response readList();
53
54     @GET
55     Response readSearchList(@QueryParam("res") String resourceName);
56
57     //(C)reate
58     @POST
59     Response create(Permission permission);
60
61     //(R)ead
62     @GET
63     @Path("/{csid}")
64     Response read(@PathParam("csid") String csid);
65
66     //(U)pdate
67     @PUT
68     @Path("/{csid}")
69     Response update(@PathParam("csid") String csid, Permission permission);
70 }