]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-114: A basic Contact service is now integrated with the main services project...
authorAron Roberts <aron@socrates.berkeley.edu>
Mon, 14 Dec 2009 21:11:28 +0000 (21:11 +0000)
committerAron Roberts <aron@socrates.berkeley.edu>
Mon, 14 Dec 2009 21:11:28 +0000 (21:11 +0000)
services/JaxRsServiceProvider/pom.xml
services/JaxRsServiceProvider/src/main/java/org/collectionspace/services/jaxrs/CollectionSpaceJaxRsApplication.java
services/build.xml
services/common/src/main/config/tenant-bindings.xml
services/contact/3rdparty/nuxeo-platform-cs-contact/src/main/resources/schemas/contacts_common.xsd [moved from services/contact/3rdparty/nuxeo-platform-cs-contact/src/main/resources/schemas/dimensions_common.xsd with 100% similarity]
services/contact/service/src/main/java/org/collectionspace/services/contact/ContactResource.java
services/pom.xml

index 1b3fe8dd390be7279843e776c1796766b398fde3..c702b73e3d108059b26ec7bc52d723132d40d42b 100644 (file)
             <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
index b1b272696fa2162d40ed8473fc4d196b5ac32a4e..f84d7d666ad10bdc0e7339a8b83ccabeac9a40c2 100644 (file)
@@ -1,3 +1,26 @@
+/**
+ * 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;
@@ -7,6 +30,7 @@ import org.collectionspace.services.intake.IntakeResource;
 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;
 
@@ -16,6 +40,14 @@ import javax.ws.rs.core.Application;
 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 {
 
@@ -31,6 +63,7 @@ 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());
index e27881dc2a8c5feff3e9302e1a8fd7b6b77ebcbd..e36b150ba1b621075e94251f0ca591ef13bf45d8 100644 (file)
         <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
index dbfee3c81cddaf92a7b4464049d0b151990ab46b..c56a3805ed9dc01d29fbeffd0b3deae7bd9512fa 100644 (file)
@@ -2,15 +2,13 @@
 <!--
     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>
index 3dcd55daf89db712f28cf70c7c1f33a131881d2d..2bfca676e184c37a5262a00bfc1d179dea5c70af 100644 (file)
@@ -38,9 +38,6 @@ import javax.ws.rs.core.UriBuilder;
 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;
@@ -48,6 +45,9 @@ import org.collectionspace.services.common.context.MultipartServiceContextFactor
 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;
index 3f96ea312dbdb8ea4523ac23ed2e7c7d65e648e1..98a2e96c734f1edc4202cde68b9c74284e8d4d67 100644 (file)
@@ -16,7 +16,7 @@
         <!-- 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>
@@ -25,6 +25,7 @@
         <module>collectionobject</module>
         <module>intake</module>
         <module>dimension</module>
+        <module>contact</module>
         <module>JaxRsServiceProvider</module>
         <module>client</module>
         <module>sdk</module>