]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-7060: Add core values part to return payload of PUT/update requests.
authorremillet <remillet@yahoo.com>
Mon, 27 Feb 2017 22:56:04 +0000 (14:56 -0800)
committerremillet <remillet@yahoo.com>
Mon, 27 Feb 2017 22:56:04 +0000 (14:56 -0800)
services/JaxRsServiceProvider/build.xml
services/common/src/main/java/org/collectionspace/services/common/AbstractMultiPartCollectionSpaceResourceImpl.java
services/common/src/main/java/org/collectionspace/services/common/workflow/service/nuxeo/WorkflowDocumentModelHandler.java

index 5203ffc1614410d070a41820d9f08fafd07577dd..dcad21410c194b1844b9c981d59d4271d4626004 100644 (file)
         </exec>
     </target>
 
-    <target name="deploy" depends="package,deploy_services_artifacts"
+    <target name="deploy" depends="quick-deploy,deploy_services_artifacts"
+    description="deploy cspace services in ${jee.server.cspace}">
+    </target>
+
+    <target name="quick-deploy" depends="package"
     description="deploy cspace services in ${jee.server.cspace}">
                <delete file="${catalina.context.cspace}"/> <!-- This is a Tomcat specific file that we seem to need to delete inorder for it to be replace with a more recent one during deployment -->
                <delete dir="${jee.deploy.cspace}/${cspace.services.context}"/>
index 5b69b050198b54d8ef17920f58168aa6e4e130bd..7d5d1810aabb1a15440d93a43ab6091e8aa6bbaa 100644 (file)
@@ -289,10 +289,10 @@ public abstract class AbstractMultiPartCollectionSpaceResourceImpl extends Abstr
                @Context UriInfo uriInfo,
                @PathParam("csid") String csid,
                @PathParam("transition") String transition) {
-        PoxPayloadOut result = null;
+       PoxPayloadOut result = null;
                 
         try {
-               result = this.updateWorkflowWithTransition(NULL_CONTEXT, uriInfo, csid, transition);
+               result = updateWorkflowWithTransition(NULL_CONTEXT, uriInfo, csid, transition);
         } catch (Exception e) {
             throw bigReThrow(e, ServiceMessages.UPDATE_FAILED + WorkflowClient.SERVICE_PAYLOAD_NAME, csid);
         }
index 10e3ab8e1545feac16cd5accf792434fac16163f..0842347f8acf2656b951da69977b6614e62073ca 100644 (file)
@@ -176,5 +176,17 @@ public class WorkflowDocumentModelHandler
                throw ce;
        }
     }
+    
+    /*
+     * Add the workflow common part(s) to the output result
+     * (non-Javadoc)
+     * @see org.collectionspace.services.nuxeo.client.java.RemoteDocumentModelHandlerImpl#completeUpdate(org.collectionspace.services.common.document.DocumentWrapper)
+     */
+    @Override
+    public void completeUpdate(DocumentWrapper<DocumentModel> wrapDoc) throws Exception {
+       extractAllParts(wrapDoc);
+       super.completeUpdate(wrapDoc);
+    }
+
 }