]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
ebeeb796ed3b5f1edc3b21ccb00782e7e5267955
[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 import org.collectionspace.services.organization.OrganizationsCommon;
30
31 /**
32  * The Class OrgAuthorityClient.
33  */
34 public class OrgAuthorityClient extends AuthorityWithContactsClientImpl<OrganizationsCommon, OrgAuthorityProxy> {
35         public static final String SERVICE_NAME = "orgauthorities";
36         public static final String SERVICE_PATH_COMPONENT = SERVICE_NAME;       
37         public static final String SERVICE_PATH = "/" + SERVICE_PATH_COMPONENT;
38         public static final String SERVICE_PAYLOAD_NAME = SERVICE_NAME;
39     public static final String TERM_INFO_GROUP_XPATH_BASE = "organizationTermGroup";
40         //
41         // Subitem constants
42         //
43         public static final String SERVICE_ITEM_NAME = "organizations";
44         public static final String SERVICE_ITEM_PAYLOAD_NAME = SERVICE_ITEM_NAME;
45         //
46         // Payload Part/Schema part names
47         //
48         public static final String SERVICE_COMMON_PART_NAME = SERVICE_NAME + 
49                 PART_LABEL_SEPARATOR + PART_COMMON_LABEL;
50         public static final String SERVICE_ITEM_COMMON_PART_NAME = SERVICE_ITEM_NAME + 
51                 PART_LABEL_SEPARATOR + PART_COMMON_LABEL;
52         
53     @Override
54         public String getServiceName() {
55                 return SERVICE_NAME;
56         }
57         
58         @Override
59     public String getServicePathComponent() {
60         return SERVICE_PATH_COMPONENT;
61     }
62         
63         @Override
64         public Class<OrgAuthorityProxy> getProxyClass() {
65                 return OrgAuthorityProxy.class;
66         }
67         
68         @Override
69     public String getItemCommonPartName() {
70         return getCommonPartName(SERVICE_ITEM_NAME);
71     }
72
73         @Override
74         public String getInAuthority(OrganizationsCommon item) {
75                 return item.getInAuthority();
76         }
77
78         @Override
79         public void setInAuthority(OrganizationsCommon item, String inAuthorityCsid) {
80                 item.setInAuthority(inAuthorityCsid);
81         }
82 }