<artifactId>org.collectionspace.services.dimension.service</artifactId>\r
<version>1.0</version>\r
</dependency>\r
+ <dependency>\r
+ <groupId>org.collectionspace.services</groupId>\r
+ <artifactId>org.collectionspace.services.contact.service</artifactId>\r
+ <version>1.0</version>\r
+ </dependency>\r
<dependency>\r
<groupId>org.collectionspace.services</groupId>\r
<artifactId>org.collectionspace.services.acquisition.service</artifactId>\r
+/**
+ * This document is a part of the source code and related artifacts
+ * for CollectionSpace, an open source collections management system
+ * for museums and related institutions:
+ *
+ * http://www.collectionspace.org
+ * http://wiki.collectionspace.org
+ *
+ * Copyright © 2009 Regents of the University of California
+ *
+ * Licensed under the Educational Community License (ECL), Version 2.0.
+ * You may not use this file except in compliance with this License.
+ *
+ * You may obtain a copy of the ECL 2.0 License at
+ * https://source.collectionspace.org/collection-space/LICENSE.txt
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package org.collectionspace.services.jaxrs;
import org.collectionspace.services.account.AccountResource;
import org.collectionspace.services.relation.NewRelationResource;
import org.collectionspace.services.acquisition.AcquisitionResource;
import org.collectionspace.services.dimension.DimensionResource;
+import org.collectionspace.services.contact.ContactResource;
import org.collectionspace.services.vocabulary.VocabularyResource;
import java.util.HashSet;
import java.util.Set;
+/**
+ * CollectionSpaceJaxRsApplication, the root application
+ * for enumerating Resource classes in the Services Layer,
+ * which in turn respond to and route REST-based requests.
+ *
+ * $LastChangedRevision$
+ * $LastChangedDate$
+ */
public class CollectionSpaceJaxRsApplication extends Application {
singletons.add(new NewRelationResource());
singletons.add(new VocabularyResource());
singletons.add(new DimensionResource());
+ singletons.add(new ContactResource());
// singletons.add(new QueryResource());
// singletons.add(new DomainIdentifierResource());
<ant antfile="vocabulary/build.xml" target="deploy" inheritAll="false"/>\r
<ant antfile="acquisition/build.xml" target="deploy" inheritAll="false"/>\r
<ant antfile="dimension/build.xml" target="deploy" inheritAll="false"/>\r
+ <ant antfile="contact/build.xml" target="deploy" inheritAll="false"/>\r
<ant antfile="JaxRsServiceProvider/build.xml" target="deploy" inheritAll="false"/>\r
</target>\r
\r
description="undeploy services from ${jboss.server.cspace}">\r
<ant antfile="JaxRsServiceProvider/build.xml" target="undeploy" inheritAll="false"/>\r
<ant antfile="vocabulary/build.xml" target="undeploy" inheritAll="false"/>\r
- <ant antfile="dimension/build.xml" target="undeploy" inheritAll="false"/> \r
+ <ant antfile="contact/build.xml" target="undeploy" inheritAll="false"/> \r
+ <ant antfile="dimension/build.xml" target="undeploy" inheritAll="false"/> \r
<ant antfile="acquisition/build.xml" target="undeploy" inheritAll="false"/>\r
<ant antfile="intake/build.xml" target="undeploy" inheritAll="false"/>\r
<ant antfile="collectionobject/build.xml" target="undeploy" inheritAll="false"/>\r
<!--
Document : tenants-bindings.xml
Created on : August 31, 2009, 10:52 AM
- Author :
- Description:
- tenant bindings
+ Description: tenant bindings
-->
<tenant:TenantBindingConfig xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:tenant='http://collectionspace.org/services/common/tenant'
xsi:schemaLocation='http://collectionspace.org/services/common/tenant http://collectionspace.org/services/common/tenant.xsd'
>
- <!-- begin movinimages.us tenant meta-data -->
+ <!-- begin movingimages.us tenant meta-data -->
<tenant:tenantBinding
id="1" name="movingimages.us" displayName="Museum of Moving Images" version="0.1" repositoryDomain="default-domain">
<tenant:serviceBindings name="CollectionObjects" version="0.1">
</service:object>
</tenant:serviceBindings>
<!-- end vocabulary service meta-data -->
- <!-- begin vocabularyitem service meta-data.
- Note there is no Vocabularyitem service, but there is a
- Repository workspace so we have to configure that. -->
+ <!--
+ begin vocabularyitem service meta-data.
+ Note there is no Vocabularyitem service, but there is a
+ Repository workspace so we have to configure that.
+ -->
<tenant:serviceBindings name="Vocabularyitems" version="0.1">
<service:repositoryClient xmlns:service='http://collectionspace.org/services/common/service'>nuxeo-java</service:repositoryClient>
<service:object id="1" name="Vocabularyitem" version="0.1"
</service:object>
</tenant:serviceBindings>
<!-- end vocabulary service meta-data -->
- <!-- begin acquisition service meta-data -->
+ <!-- begin acquisition service meta-data -->
<tenant:serviceBindings name="Acquisitions" version="0.1">
<service:repositoryClient xmlns:service='http://collectionspace.org/services/common/service'>nuxeo-java</service:repositoryClient>
<service:object id="1" name="Acquisition" version="0.1"
</service:part>
</service:object>
</tenant:serviceBindings>
- <!-- end dimension service meta-data -->
+ <!-- end dimension service meta-data -->
+ <!-- begin contact service meta-data -->
+ <tenant:serviceBindings name="Contacts" version="0.1">
+ <service:repositoryClient xmlns:service='http://collectionspace.org/services/common/service'>nuxeo-java</service:repositoryClient>
+ <service:object id="1" name="Contact" version="0.1"
+ xmlns:service='http://collectionspace.org/services/common/service'>
+ <service:part id="0" control_group="Managed"
+ versionable="true" auditable="false"
+ label="contacts-system" updated="" order="0">
+ <service:content contentType="application/xml">
+ <service:xmlContent
+ namespaceURI="http://collectionspace.org/services/common/system"
+ schemaLocation="http://collectionspace.org/services/common/system http://collectionspace.org/services/common/system/system-response.xsd">
+ </service:xmlContent>
+ </service:content>
+ </service:part>
+ <service:part id="1" control_group="Managed"
+ versionable="true" auditable="false"
+ label="contacts_common" updated="" order="1">
+ <service:content contentType="application/xml">
+ <service:xmlContent
+ namespaceURI="http://collectionspace.org/services/contact"
+ schemaLocation="http://collectionspace.org/services/contact http://services.collectionspace.org/contact/contacts_common.xsd">
+ </service:xmlContent>
+ </service:content>
+ </service:part>
+ </service:object>
+ </tenant:serviceBindings>
+ <!-- end contact service meta-data -->
</tenant:tenantBinding>
- <!-- end movinimages.us tenant meta-data -->
+ <!-- end movingimages.us tenant meta-data -->
</tenant:TenantBindingConfig>
import javax.ws.rs.core.UriInfo;
import org.collectionspace.services.common.AbstractCollectionSpaceResource;
-import org.collectionspace.services.contact.ContactsCommonList.*;
-
-import org.collectionspace.services.contact.nuxeo.ContactHandlerFactory;
import org.collectionspace.services.common.ClientType;
import org.collectionspace.services.common.ServiceMain;
import org.collectionspace.services.common.context.MultipartServiceContext;
import org.collectionspace.services.common.context.ServiceContext;
import org.collectionspace.services.common.document.DocumentNotFoundException;
import org.collectionspace.services.common.document.DocumentHandler;
+
+import org.collectionspace.services.contact.nuxeo.ContactHandlerFactory;
+
import org.jboss.resteasy.plugins.providers.multipart.MultipartInput;
import org.jboss.resteasy.plugins.providers.multipart.MultipartOutput;
import org.jboss.resteasy.util.HttpResponseCodes;
<!-- add modules below in the order based on dependencies -->
<module>authentication</module>
<module>common</module>
- <module>account</module>
+ <!-- module>account</module -->
<module>relation</module>
<!--module>query</module-->
<module>acquisition</module>
<module>collectionobject</module>
<module>intake</module>
<module>dimension</module>
+ <module>contact</module>
<module>JaxRsServiceProvider</module>
<module>client</module>
<module>sdk</module>