2 * PermissionClient.java
4 * {Purpose of This Class}
6 * {Other Notes Relating to This Class (Optional)}
9 * $LastChangedRevision: $
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:
16 * http://www.collectionspace.org
17 * http://wiki.collectionspace.org
19 * Copyright (C) 2009 {Contributing Institution}
21 * Licensed under the Educational Community License (ECL), Version 2.0.
22 * You may not use this file except in compliance with this License.
24 * You may obtain a copy of the ECL 2.0 License at
25 * https://source.collectionspace.org/collection-space/LICENSE.txt
27 package org.collectionspace.services.client;
29 import javax.ws.rs.core.Response;
31 import org.collectionspace.services.authorization.perms.Permission;
32 import org.collectionspace.services.authorization.perms.PermissionsList;
37 * @version $Revision:$
39 public class PermissionClient extends AbstractServiceClientImpl<PermissionsList, Permission, Permission, PermissionProxy> {
40 public static final String SERVICE_NAME = "authorization/permissions";
41 public static final String SERVICE_PATH_COMPONENT = SERVICE_NAME;
42 public static final String SERVICE_PATH = "/" + SERVICE_PATH_COMPONENT;
43 public static final String SERVICE_PATH_PROXY = SERVICE_PATH + "/";
45 public PermissionClient() {
49 public PermissionClient(String clientPropertiesFilename) {
50 super(clientPropertiesFilename);
54 * @see org.collectionspace.services.client.AbstractServiceClientImpl#getServicePathComponent()
57 public String getServicePathComponent() {
58 return SERVICE_PATH_COMPONENT;
62 public String getServiceName() {
67 public Class<PermissionProxy> getProxyClass() {
68 return PermissionProxy.class;
77 * @see org.collectionspace.hello.client.PermissionProxy#readList()
79 public Response readList() {
80 return getProxy().readList();
84 public Response readSearchList(String resourceName) {
85 return getProxy().readSearchList(resourceName);
92 * @see org.collectionspace.hello.client.PermissionProxy#getAccount(java.lang.String)
94 public Response read(String csid) {
95 return getProxy().read(csid);
101 * @see org.collectionspace.hello.client.PermissionProxy#create(org.collectionspace.services.permission.Permission)
103 public Response create(Permission permission) {
104 return getProxy().create(permission);
111 * @see org.collectionspace.hello.client.PermissionProxy#updateAccount(java.lang.Long, org.collectionspace.services.permission.Permission)
113 public Response update(String csid, Permission permission) {
114 return getProxy().update(csid, permission);