logger.debug(client.getClass().getCanonicalName() + ": status = " + statusCode);
}
+ PoxPayloadIn input = new PoxPayloadIn((String)res.readEntity(getEntityResponseType())); // Get the entire response!
+
PayloadInputPart payloadInputPart = extractPart(res, client.getCommonPartName());
if (payloadInputPart != null) {
- result = (CPT) payloadInputPart.getBody();
+// result = (client.getc) payloadInputPart.getBody();
}
} finally {
res.close();
import javax.ws.rs.PathParam;
import javax.ws.rs.core.Response;
+import org.collectionspace.services.blob.BlobsCommon;
import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataOutput;
/**
* $LastChangedDate: 2010-05-17 18:25:37 -0700 (Mon, 17 May 2010) $
*
*/
-public class BlobClient extends AbstractCommonListPoxServiceClientImpl<BlobProxy> {
+public class BlobClient extends AbstractCommonListPoxServiceClientImpl<BlobProxy, BlobsCommon> {
public static final String SERVICE_NAME = "blobs";
public static final String SERVICE_PATH_COMPONENT = SERVICE_NAME;
public static final String SERVICE_PATH = "/" + SERVICE_PATH_COMPONENT;
import javax.ws.rs.core.Response;
import org.collectionspace.services.client.AbstractCommonListPoxServiceClientImpl;
-import org.collectionspace.services.index.IndexesCommon;
+import org.collectionspace.services.index.IndexCommon;
/**
* IndexClient.java
* $LastChangedDate: 2010-05-17 18:25:37 -0700 (Mon, 17 May 2010) $
*
*/
-public class IndexClient extends AbstractCommonListPoxServiceClientImpl<IndexProxy, IndexesCommon> {
+public class IndexClient extends AbstractCommonListPoxServiceClientImpl<IndexProxy, IndexCommon> {
public static final String SERVICE_NAME = "index";
public static final String SERVICE_PATH_COMPONENT = SERVICE_NAME;
public static final String SERVICE_PATH = "/" + SERVICE_PATH_COMPONENT;
package org.collectionspace.services.client.workflow;
import javax.ws.rs.core.Response;
+
import org.collectionspace.services.client.AbstractCommonListPoxServiceClientImpl;
+import org.collectionspace.services.workflow.WorkflowCommon;
/**
* WorkflowClient.java
* $LastChangedDate: 2010-05-17 18:25:37 -0700 (Mon, 17 May 2010) $
*
*/
-public class WorkflowClient extends AbstractCommonListPoxServiceClientImpl<WorkflowProxy> {
+public class WorkflowClient extends AbstractCommonListPoxServiceClientImpl<WorkflowProxy, WorkflowCommon> {
public static final String SERVICE_NAME = "workflow";
public static final String SERVICE_PATH_COMPONENT = SERVICE_NAME;
public static final String SERVICE_PATH = "/" + SERVICE_PATH_COMPONENT;
</dependency>
<dependency>
<groupId>org.collectionspace.services</groupId>
- <artifactId>org.collectionspace.services.index.jaxb</artifactId>
+ <artifactId>org.collectionspace.services.dimension.client</artifactId> <!-- Dimension instances are used as a unit-tests targets -->
<version>${project.version}</version>
</dependency>
<!-- External dependencies -->
--- /dev/null
+package org.collectionspace.services.client;
+
+public final class README {
+ // The IndexClient class you expected to see here is in the ../services/services/client directory (Maven Module)
+}
--- /dev/null
+package org.collectionspace.services.client.test;
+
+public final class README {
+
+}
+++ /dev/null
-/**
- *
- */
-package org.collectionspace.services.index;
-
-public interface IndexJAXBSchema {
-}
-
-
+++ /dev/null
-package org.collectionspace.services.index;
-
-public interface IndexListItemJAXBSchema {
-}
<packaging>pom</packaging>
<modules>
- <module>jaxb</module>
<module>3rdparty</module>
<module>client</module>
<module>service</module>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
- Index schema (XSD)
+ Loan Out schema (XSD)
Entity : Index
Part : Common
Used for: JAXB binding between XML and Java objects
- $LastChangedRevision: 860 $
- $LastChangedDate: 2009-10-14 14:48:05 -0700 (Wed, 14 Oct 2009) $
+ $LastChangedRevision: 2316 $
+ $LastChangedDate: 2010-06-02 16:03:51 -0700 (Wed, 02 Jun 2010) $
-->
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.0"
- elementFormDefault="unqualified"
+ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
+ jaxb:version="1.0" elementFormDefault="unqualified"
xmlns:ns="http://collectionspace.org/services/index"
xmlns="http://collectionspace.org/services/index"
targetNamespace="http://collectionspace.org/services/index"
version="0.1">
-
<!--
Avoid XmlRootElement nightmare:
See http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html
--->
-<!-- See http://wiki.collectionspace.org/display/collectionspace/Index+Schema -->
-
- <!-- index -->
- <xs:element name="indexes_common">
+-->
+ <!-- index -->
+ <xs:element name="index_common">
<xs:complexType>
<xs:sequence>
- <xs:element name="csid" type="xs:string" />
+ <!-- Index Information Group -->
+ <xs:element name="indexInfo" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
*/
package org.collectionspace.services.client;
+import org.collectionspace.services.loanin.LoansinCommon;
+
/**
* LoaninClient.java
*
* $LastChangedDate$
*
*/
-public class LoaninClient extends AbstractCommonListPoxServiceClientImpl<LoaninProxy> {
+public class LoaninClient extends AbstractCommonListPoxServiceClientImpl<LoaninProxy, LoansinCommon> {
public static final String SERVICE_NAME = "loansin";
public static final String SERVICE_PATH_COMPONENT = SERVICE_NAME;
*/
package org.collectionspace.services.client;
+import org.collectionspace.services.loanout.LoansoutCommon;
+
/**
* LoanoutClient.java
*
* $LastChangedRevision$
* $LastChangedDate$
*/
-public class LoanoutClient extends AbstractCommonListPoxServiceClientImpl<LoanoutProxy> {
+public class LoanoutClient extends AbstractCommonListPoxServiceClientImpl<LoanoutProxy, LoansoutCommon> {
public static final String SERVICE_NAME = "loansout";
public static final String SERVICE_PATH_COMPONENT = SERVICE_NAME;
*/
package org.collectionspace.services.client;
+import org.collectionspace.services.publicitem.PublicitemsCommon;
+
/**
* PublicItemClient.java
*
* $LastChangedDate$
*
*/
-public class PublicItemClient extends AbstractCommonListPoxServiceClientImpl<PublicItemProxy> {
+public class PublicItemClient extends AbstractCommonListPoxServiceClientImpl<PublicItemProxy, PublicitemsCommon> {
public static final String SERVICE_NAME = "publicitems";
public static final String SERVICE_PATH_COMPONENT = SERVICE_NAME;
--- /dev/null
+package org.collectionspace.services.client;
+
+public final class README {
+ // The WorkflowClient class you expected to see here is in the ../services/services/client directory (Maven Module)
+}
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
- <artifactId>org.collectionspace.services.workflow</artifactId>
<groupId>org.collectionspace.services</groupId>
+ <artifactId>org.collectionspace.services.workflow</artifactId>
<version>4.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
- <groupId>org.collectionspace.services</groupId>
<artifactId>org.collectionspace.services.workflow.jaxb</artifactId>
<name>services.workflow.jaxb</name>