<groupId>org.collectionspace.services</groupId>\r
<artifactId>org.collectionspace.services.organization.client.samples</artifactId>\r
<packaging>pom</packaging>\r
- <version>1.0</version>\r
+ <version>1.5-SNAPSHOT</version>\r
<name>organization.client.samples</name>\r
\r
<modules>\r
<groupId>org.collectionspace.services</groupId>\r
<artifactId>org.collectionspace.services.organization.client.sample</artifactId>\r
<packaging>jar</packaging>\r
- <version>1.0</version>\r
+ <version>1.5-SNAPSHOT</version>\r
<name>organization.client.sample</name>\r
\r
<dependencies>\r
<dependency>\r
<groupId>org.collectionspace.services</groupId>\r
<artifactId>org.collectionspace.services.organization.jaxb</artifactId>\r
- <version>1.5-SNAPSHOT</version>\r
+ <version>${project.version}</version>\r
</dependency>\r
<dependency>\r
<groupId>org.collectionspace.services</groupId>\r
<artifactId>org.collectionspace.services.client</artifactId>\r
- <version>1.5-SNAPSHOT</version>\r
+ <version>${project.version}</version>\r
</dependency>\r
<dependency>\r
<groupId>org.collectionspace.services</groupId>\r
<artifactId>org.collectionspace.services.organization.client</artifactId>\r
- <version>1.5-SNAPSHOT</version>\r
+ <version>${project.version}</version>\r
</dependency>\r
</dependencies>\r
\r
import org.collectionspace.services.PersonJAXBSchema;\r
import org.collectionspace.services.client.PersonAuthorityClient;\r
import org.collectionspace.services.client.PersonAuthorityClientUtils;\r
+import org.collectionspace.services.client.PoxPayloadIn;\r
import org.collectionspace.services.client.PoxPayloadOut;\r
import org.collectionspace.services.client.test.ServiceRequestType;\r
import org.collectionspace.services.person.PersonauthoritiesCommon;\r
throw new RuntimeException("Unexpected Status when reading " +\r
"personAuthority, Status:"+ statusCode);\r
}\r
- PoxPayloadIn input = (PoxPayloadIn) res.getEntity();\r
+ PoxPayloadIn input = new PoxPayloadIn(res.getEntity());\r
personAuthority = (PersonauthoritiesCommon) extractPart(input,\r
client.getCommonPartName(), PersonauthoritiesCommon.class);\r
} catch (Exception e) {\r
<groupId>org.collectionspace.services</groupId>\r
<artifactId>org.collectionspace.services.vocabulary.client.sample</artifactId>\r
<packaging>jar</packaging>\r
- <version>1.0</version>\r
+ <version>1.5-SNAPSHOT</version>\r
<name>vocabulary.client.sample</name>\r
\r
<dependencies>\r
<dependency>\r
<groupId>org.collectionspace.services</groupId>\r
<artifactId>org.collectionspace.services.vocabulary.jaxb</artifactId>\r
- <version>1.5-SNAPSHOT</version>\r
+ <version>${project.version}</version>\r
</dependency>\r
<dependency>\r
<groupId>org.collectionspace.services</groupId>\r
<artifactId>org.collectionspace.services.client</artifactId>\r
- <version>1.5-SNAPSHOT</version>\r
+ <version>${project.version}</version>\r
</dependency>\r
<dependency>\r
<groupId>org.collectionspace.services</groupId>\r
<artifactId>org.collectionspace.services.vocabulary.client</artifactId>\r
- <version>1.5-SNAPSHOT</version>\r
+ <version>${project.version}</version>\r
</dependency>\r
</dependencies>\r
\r
private Object extractPart(PoxPayloadIn input, String label,\r
Class clazz) throws Exception {\r
Object obj = null;\r
+ obj = input.getPart(label);\r
+ /*\r
for(PayloadInputPart part : input.getParts()){\r
String partLabel = part.getHeaders().getFirst("label");\r
if(label.equalsIgnoreCase(partLabel)){\r
break;\r
}\r
}\r
+ */\r
return obj;\r
}\r
\r