From 07b35ab4c75e22867b750d1a9decff460b62697a Mon Sep 17 00:00:00 2001 From: Richard Millet Date: Tue, 15 Jan 2013 09:14:08 -0800 Subject: [PATCH] CSPACE-5564: Cleaning up pom.xml files to place some of the dependencies into the test scope. --- services/blob/client/pom.xml | 3 +-- services/collectionobject/client/pom.xml | 8 ++------ .../services/client/CollectionObjectFactory.java | 15 ++++++++++++--- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/services/blob/client/pom.xml b/services/blob/client/pom.xml index c38c1d13d..7d6ee4791 100644 --- a/services/blob/client/pom.xml +++ b/services/blob/client/pom.xml @@ -5,11 +5,10 @@ org.collectionspace.services org.collectionspace.services.blob - 3.2.1-SNAPSHOT + 3.2-SNAPSHOT 4.0.0 - org.collectionspace.services org.collectionspace.services.blob.client services.blob.client diff --git a/services/collectionobject/client/pom.xml b/services/collectionobject/client/pom.xml index 07307daec..2a532a5aa 100644 --- a/services/collectionobject/client/pom.xml +++ b/services/collectionobject/client/pom.xml @@ -5,7 +5,7 @@ org.collectionspace.services org.collectionspace.services.collectionobject - 3.2.1-SNAPSHOT + 3.2-SNAPSHOT 4.0.0 @@ -55,11 +55,7 @@ org.collectionspace.services org.collectionspace.services.organization.client ${project.version} - - - org.collectionspace.services - org.collectionspace.services.person.client - ${project.version} + test diff --git a/services/collectionobject/client/src/main/java/org/collectionspace/services/client/CollectionObjectFactory.java b/services/collectionobject/client/src/main/java/org/collectionspace/services/client/CollectionObjectFactory.java index 498546f6a..2af0aa313 100644 --- a/services/collectionobject/client/src/main/java/org/collectionspace/services/client/CollectionObjectFactory.java +++ b/services/collectionobject/client/src/main/java/org/collectionspace/services/client/CollectionObjectFactory.java @@ -24,7 +24,6 @@ package org.collectionspace.services.client; -import javax.ws.rs.core.MediaType; import org.collectionspace.services.client.PayloadOutputPart; import org.collectionspace.services.client.PoxPayloadOut; import org.collectionspace.services.collectionobject.CollectionobjectsCommon; @@ -55,6 +54,15 @@ public class CollectionObjectFactory { * @return */ + public static PoxPayloadOut createCollectionObjectInstance(String commonPartName, + CollectionobjectsCommon collectionObjectCommon) { + + PoxPayloadOut multipart = new PoxPayloadOut(getServicePathComponent()); + PayloadOutputPart commonPart = + multipart.addPart(commonPartName, collectionObjectCommon); + + return multipart; + } /** * Creates the collection object instance. * @@ -71,13 +79,14 @@ public class CollectionObjectFactory { PoxPayloadOut multipart = new PoxPayloadOut(getServicePathComponent()); PayloadOutputPart commonPart = - multipart.addPart(collectionObjectCommon, MediaType.APPLICATION_XML_TYPE); + multipart.addPart(commonPartName, collectionObjectCommon); commonPart.setLabel(commonPartName); if (conh != null) { - PayloadOutputPart nhPart = multipart.addPart(conh, MediaType.APPLICATION_XML_TYPE); + PayloadOutputPart nhPart = multipart.addPart(nhPartName, conh); nhPart.setLabel(nhPartName); } + return multipart; } -- 2.47.3