]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
56b375bc318206e59f2cd88a674da7df2f5ce033
[tmp/jakarta-migration.git] /
1 /**     
2  * OrgAuthorityClient.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 © 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 /**
30  * The Class OrgAuthorityClient.
31  */
32 public class OrgAuthorityClient extends AuthorityWithContactsClientImpl<OrgAuthorityProxy> {
33         public static final String SERVICE_NAME = "orgauthorities";
34         public static final String SERVICE_PATH_COMPONENT = SERVICE_NAME;       
35         public static final String SERVICE_PATH = "/" + SERVICE_PATH_COMPONENT;
36         public static final String SERVICE_PAYLOAD_NAME = SERVICE_NAME;
37         //
38         // Subitem constants
39         //
40         public static final String SERVICE_ITEM_NAME = "organizations";
41         public static final String SERVICE_ITEM_PAYLOAD_NAME = SERVICE_ITEM_NAME;
42         //
43         // Payload Part/Schema part names
44         //
45         public static final String SERVICE_COMMON_PART_NAME = SERVICE_NAME + 
46                 PART_LABEL_SEPARATOR + PART_COMMON_LABEL;
47         public static final String SERVICE_ITEM_COMMON_PART_NAME = SERVICE_ITEM_NAME + 
48                 PART_LABEL_SEPARATOR + PART_COMMON_LABEL;
49         
50     @Override
51         public String getServiceName() {
52                 return SERVICE_NAME;
53         }
54         
55         @Override
56     public String getServicePathComponent() {
57         return SERVICE_PATH_COMPONENT;
58     }
59         
60         @Override
61         public Class<OrgAuthorityProxy> getProxyClass() {
62                 return OrgAuthorityProxy.class;
63         }
64         
65         @Override
66     public String getItemCommonPartName() {
67         return getCommonPartName(SERVICE_ITEM_NAME);
68     }
69 }