</parent>
<modelVersion>4.0.0</modelVersion>
- <groupId>org.collectionspace.services</groupId>
<artifactId>org.collectionspace.services.blob.client</artifactId>
<name>services.blob.client</name>
<groupId>org.collectionspace.services</groupId>\r
<artifactId>org.collectionspace.services.organization.client</artifactId>\r
<version>${project.version}</version>\r
- </dependency>\r
- <dependency>\r
- <groupId>org.collectionspace.services</groupId>\r
- <artifactId>org.collectionspace.services.person.client</artifactId>\r
- <version>${project.version}</version>\r
+ <scope>test</scope>\r
</dependency>\r
<!-- External dependencies -->\r
<dependency>\r
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;
* @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.
*
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;
}