import javax.ws.rs.core.Response;
-import org.collectionspace.services.acquisition.AcquisitionsCommonList;
+import org.collectionspace.services.jaxb.AbstractCommonList;
import org.collectionspace.services.common.authorityref.AuthorityRefList;
import org.jboss.resteasy.client.ProxyFactory;
import org.jboss.resteasy.plugins.providers.RegisterBuiltin;
* @return
* @see org.collectionspace.hello.client.IntakeProxy#getIntake()
*/
- public ClientResponse<AcquisitionsCommonList> readList() {
+ public ClientResponse<AbstractCommonList> readList() {
return acquisitionProxy.readList();
}
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;
-import org.collectionspace.services.acquisition.AcquisitionsCommonList;
+import org.collectionspace.services.jaxb.AbstractCommonList;
import org.collectionspace.services.common.authorityref.AuthorityRefList;
import org.jboss.resteasy.client.ClientResponse;
import org.jboss.resteasy.plugins.providers.multipart.MultipartInput;
@GET
@Produces({"application/xml"})
- ClientResponse<AcquisitionsCommonList> readList();
+ ClientResponse<AbstractCommonList> readList();
//(C)reate
@POST
import org.collectionspace.services.client.AcquisitionClient;
import org.collectionspace.services.client.CollectionSpaceClient;
-import org.collectionspace.services.jaxb.AbstractCommonList;
import org.collectionspace.services.acquisition.AcquisitionsCommon;
-import org.collectionspace.services.acquisition.AcquisitionsCommonList;
import org.collectionspace.services.acquisition.AcquisitionDateList;
import org.collectionspace.services.acquisition.AcquisitionFunding;
import org.collectionspace.services.acquisition.AcquisitionFundingList;
import org.collectionspace.services.acquisition.AcquisitionSourceList;
import org.collectionspace.services.acquisition.OwnerList;
import org.jboss.resteasy.client.ClientResponse;
+import org.collectionspace.services.jaxb.AbstractCommonList;
import org.jboss.resteasy.plugins.providers.multipart.MultipartInput;
import org.jboss.resteasy.plugins.providers.multipart.MultipartOutput;
@Override
protected AbstractCommonList getAbstractCommonList(
ClientResponse<AbstractCommonList> response) {
- return response.getEntity(AcquisitionsCommonList.class);
+ return response.getEntity(AbstractCommonList.class);
}
// ---------------------------------------------------------------
// Submit the request to the service and store the response.
AcquisitionClient client = new AcquisitionClient();
- ClientResponse<AcquisitionsCommonList> res = client.readList();
- AcquisitionsCommonList list = res.getEntity();
+ ClientResponse<AbstractCommonList> res = client.readList();
+ AbstractCommonList list = res.getEntity();
int statusCode = res.getStatus();
// Check the status code of the response: does it match
// Optionally output additional data about list members for debugging.
boolean iterateThroughList = false;
if(iterateThroughList && logger.isDebugEnabled()){
- List<AcquisitionsCommonList.AcquisitionListItem> items =
- list.getAcquisitionListItem();
- int i = 0;
- for(AcquisitionsCommonList.AcquisitionListItem item : items){
- logger.debug(testName + ": list-item[" + i + "] csid=" +
- item.getCsid());
- logger.debug(testName + ": list-item[" + i + "] objectNumber=" +
- item.getAcquisitionReferenceNumber());
- logger.debug(testName + ": list-item[" + i + "] acquisitionSource=" +
- item.getAcquisitionSource());
- logger.debug(testName + ": list-item[" + i + "] owner=" +
- item.getOwner());
- logger.debug(testName + ": list-item[" + i + "] URI=" +
- item.getUri());
- i++;
- }
+ List<AbstractCommonList.ListItem> items =
+ list.getListItem();
+ int i = 0;
+ for(AbstractCommonList.ListItem item : items){
+ logger.debug(testName + ": list-item[" + i + "] " +
+ item.toString());
+ i++;
+ }
}
}
</xs:annotation>
</xs:complexType>
- <!-- acquisition records, as in nuxeo repository -->
- <xs:element name="acquisitions-common-list">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="abstractCommonList">
- <xs:sequence>
- <xs:element name="acquisition-list-item" maxOccurs="unbounded">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="acquisitionReferenceNumber" type="xs:string"
- minOccurs="1" />
- <xs:element name="acquisitionSource" type="xs:string"
- minOccurs="1" />
- <xs:element name="owner" type="xs:string"
- minOccurs="1" />
- <!-- uri to retrive acquisition details -->
- <xs:element name="uri" type="xs:anyURI"
- minOccurs="1" />
- <xs:element name="csid" type="xs:string"
- minOccurs="1" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
- </xs:element>
-
</xs:schema>
import org.collectionspace.services.common.query.QueryManager;
import org.collectionspace.services.common.security.UnauthorizedException;
import org.collectionspace.services.nuxeo.client.java.DocumentModelHandler;
+import org.collectionspace.services.jaxb.AbstractCommonList;
+import org.collectionspace.services.nuxeo.client.java.CommonList;
+
import org.jboss.resteasy.plugins.providers.multipart.MultipartInput;
import org.jboss.resteasy.plugins.providers.multipart.MultipartOutput;
import org.jboss.resteasy.util.HttpResponseCodes;
*/
@GET
@Produces("application/xml")
- public AcquisitionsCommonList getAcquisitionList(@Context UriInfo ui,
+ public CommonList getAcquisitionList(@Context UriInfo ui,
@QueryParam(IQueryManager.SEARCH_TYPE_KEYWORDS_KW) String keywords) {
- AcquisitionsCommonList result = null;
+ CommonList result = null;
MultivaluedMap<String, String> queryParams = ui.getQueryParameters();
if (keywords != null) {
result = searchAcquisitions(queryParams, keywords);
*
* @return the acquisitions list
*/
- private AcquisitionsCommonList getAcquisitionsList(MultivaluedMap<String, String> queryParams) {
- AcquisitionsCommonList acquisitionObjectList;
+ private CommonList getAcquisitionsList(MultivaluedMap<String, String> queryParams) {
+ CommonList commonList;
try {
ServiceContext<MultipartInput, MultipartOutput> ctx = createServiceContext(queryParams);
DocumentHandler handler = createDocumentHandler(ctx);
getRepositoryClient(ctx).getFiltered(ctx, handler);
- acquisitionObjectList = (AcquisitionsCommonList) handler.getCommonPartList();
+ commonList = (CommonList) handler.getCommonPartList();
} catch (UnauthorizedException ue) {
Response response = Response.status(
Response.Status.UNAUTHORIZED).entity(
ServiceMessages.LIST_FAILED + e.getMessage()).type("text/plain").build();
throw new WebApplicationException(response);
}
- return acquisitionObjectList;
+ return commonList;
}
/**
@Path("/search")
@Produces("application/xml")
@Deprecated
- public AcquisitionsCommonList keywordsSearchAcquisitions(@Context UriInfo ui,
+ public CommonList keywordsSearchAcquisitions(@Context UriInfo ui,
@QueryParam(IQueryManager.SEARCH_TYPE_KEYWORDS) String keywords) {
MultivaluedMap<String, String> queryParams = ui.getQueryParameters();
return searchAcquisitions(queryParams, keywords);
*
* @return the acquisitions common list
*/
- private AcquisitionsCommonList searchAcquisitions(
+ private CommonList searchAcquisitions(
MultivaluedMap<String, String> queryParams,
String keywords) {
- AcquisitionsCommonList acquisitionObjectList;
+ CommonList commonList;
try {
ServiceContext<MultipartInput, MultipartOutput> ctx = createServiceContext(queryParams);
DocumentHandler handler = createDocumentHandler(ctx);
}
}
getRepositoryClient(ctx).getFiltered(ctx, handler);
- acquisitionObjectList = (AcquisitionsCommonList) handler.getCommonPartList();
+ commonList = (CommonList) handler.getCommonPartList();
} catch (UnauthorizedException ue) {
Response response = Response.status(
Response.Status.UNAUTHORIZED).entity(
ServiceMessages.SEARCH_FAILED + e.getMessage()).type("text/plain").build();
throw new WebApplicationException(response);
}
- return acquisitionObjectList;
+ return commonList;
}
/**
package org.collectionspace.services.acquisition.nuxeo;
import org.collectionspace.services.acquisition.AcquisitionsCommon;
-import org.collectionspace.services.jaxb.AbstractCommonList;
import org.collectionspace.services.nuxeo.client.java.DocHandlerBase;
/** AcquisitionDocumentModelHandler
* $LastChangedDate: $
*/
public class AcquisitionDocumentModelHandler
- extends DocHandlerBase<AcquisitionsCommon, AbstractCommonList> {
+ extends DocHandlerBase<AcquisitionsCommon> {
}
import javax.ws.rs.core.Response;
import org.collectionspace.services.common.authorityref.AuthorityRefList;
-//import org.collectionspace.services.common.context.ServiceContext;
-import org.collectionspace.services.blob.BlobsCommonList;
+import org.collectionspace.services.jaxb.AbstractCommonList;
import org.jboss.resteasy.client.ProxyFactory;
import org.jboss.resteasy.plugins.providers.RegisterBuiltin;
* @return
* @see org.collectionspace.services.client.BlobProxy#getBlob()
*/
- public ClientResponse<BlobsCommonList> readList() {
+ public ClientResponse<AbstractCommonList> readList() {
return blobProxy.readList();
}
import javax.ws.rs.core.Response;
import org.collectionspace.services.common.authorityref.AuthorityRefList;
-import org.collectionspace.services.blob.BlobsCommonList;
+import org.collectionspace.services.jaxb.AbstractCommonList;
import org.jboss.resteasy.client.ClientResponse;
import org.jboss.resteasy.plugins.providers.multipart.MultipartInput;
import org.jboss.resteasy.plugins.providers.multipart.MultipartOutput;
// List
@GET
@Produces({"application/xml"})
- ClientResponse<BlobsCommonList> readList();
+ ClientResponse<AbstractCommonList> readList();
// List Authority References
@GET
import org.collectionspace.services.client.BlobClient;
import org.collectionspace.services.jaxb.AbstractCommonList;
import org.collectionspace.services.blob.BlobsCommon;
-import org.collectionspace.services.blob.BlobsCommonList;
import org.jboss.resteasy.client.ClientResponse;
@Override
protected AbstractCommonList getAbstractCommonList(ClientResponse<AbstractCommonList> response) {
- return response.getEntity(BlobsCommonList.class);
+ return response.getEntity(AbstractCommonList.class);
}
@Override
logger.debug(testBanner(testName, CLASS_NAME));
setupReadList();
BlobClient client = new BlobClient();
- ClientResponse<BlobsCommonList> res = client.readList();
- BlobsCommonList list = res.getEntity();
+ ClientResponse<AbstractCommonList> res = client.readList();
+ AbstractCommonList list = res.getEntity();
assertStatusCode(res, testName);
if (logger.isDebugEnabled()) {
- List<BlobsCommonList.BlobListItem> items = list.getBlobListItem();
+ List<AbstractCommonList.ListItem> items =
+ list.getListItem();
int i = 0;
- for (BlobsCommonList.BlobListItem item : items) {
- logger.debug(testName + ": list-item[" + i + "] csid=" + item.getCsid());
- logger.debug(testName + ": list-item[" + i + "] blob.name=" + item.getName());
- logger.debug(testName + ": list-item[" + i + "] URI=" + item.getUri());
+ for(AbstractCommonList.ListItem item : items){
+ logger.debug(testName + ": list-item[" + i + "] " +
+ item.toString());
i++;
}
}
import org.collectionspace.services.common.document.DocumentHandler;
import org.collectionspace.services.blob.nuxeo.BlobDocumentModelHandler; //FIXEME: A resource class should not have a dependency on a specific DocumentHandler
import org.collectionspace.services.blob.BlobsCommon;
-import org.collectionspace.services.blob.BlobsCommonList;
+//import org.collectionspace.services.blob.BlobsCommonList;
+import org.collectionspace.services.jaxb.AbstractCommonList;
+import org.collectionspace.services.nuxeo.client.java.CommonList;
+import javax.xml.parsers.ParserConfigurationException;
import org.jboss.resteasy.plugins.providers.multipart.InputPart;
import org.jboss.resteasy.plugins.providers.multipart.MultipartInput;
//FIXME: Is this method used/needed?
@Deprecated
- private BlobsCommonList getBlobList(MultivaluedMap<String, String> queryParams) {
- return (BlobsCommonList)getList(queryParams);
+ private CommonList getBlobList(MultivaluedMap<String, String> queryParams) {
+ return (CommonList)getList(queryParams);
}
@Deprecated
- public BlobsCommonList getBlobList(List<String> csidList) {
- return (BlobsCommonList) getList(csidList);
+ public CommonList getBlobList(List<String> csidList) {
+ return (CommonList) getList(csidList);
}
@Deprecated
- protected BlobsCommonList search(MultivaluedMap<String,String> queryParams,String keywords) {
- return (BlobsCommonList) super.search(queryParams, keywords);
+ protected CommonList search(MultivaluedMap<String,String> queryParams,String keywords) {
+ return (CommonList) super.search(queryParams, keywords);
}
- private BlobsCommonList getDerivativeList(ServiceContext<MultipartInput, MultipartOutput> ctx,
+ private CommonList getDerivativeList(ServiceContext<MultipartInput, MultipartOutput> ctx,
String csid) throws Exception {
- BlobsCommonList result = null;
+ CommonList result = null;
BlobInput blobInput = new BlobInput();
blobInput.setDerivativeListRequested(true);
@GET
@Path("{csid}/derivatives")
@Produces("application/xml")
- public BlobsCommonList getDerivatives(
+ public CommonList getDerivatives(
@PathParam("csid") String csid) {
- BlobsCommonList result = null;
+ CommonList result = null;
ensureCSID(csid, READ);
try {
package org.collectionspace.services.blob.nuxeo;
import org.collectionspace.services.blob.BlobsCommon;
-import org.collectionspace.services.blob.BlobsCommonList;
import org.collectionspace.services.nuxeo.client.java.DocHandlerBase;
import org.collectionspace.services.common.blob.BlobInput;
import org.collectionspace.services.common.blob.BlobOutput;
import org.collectionspace.services.common.imaging.nuxeo.NuxeoImageUtils;
import org.collectionspace.services.jaxb.AbstractCommonList;
import org.collectionspace.services.jaxb.BlobJAXBSchema;
+import org.collectionspace.services.jaxb.AbstractCommonList;
+import org.collectionspace.services.nuxeo.client.java.CommonList;
import org.nuxeo.ecm.core.api.ClientException;
import org.nuxeo.ecm.core.api.DocumentModel;
import org.nuxeo.ecm.core.api.repository.RepositoryInstance;
* The Class BlobDocumentModelHandler.
*/
public class BlobDocumentModelHandler
-extends DocHandlerBase<BlobsCommon, AbstractCommonList> {
+extends DocHandlerBase<BlobsCommon> {
/** The logger. */
private final Logger logger = LoggerFactory.getLogger(BlobDocumentModelHandler.class);
String blobRepositoryId = blobsCommon.getRepositoryId(); //cache the value to pass to the blob retriever
if (blobInput.isDerivativeListRequested() == true) {
- BlobsCommonList blobsCommonList = NuxeoImageUtils.getBlobDerivatives(
+ CommonList blobsCommonList = NuxeoImageUtils.getBlobDerivatives(
repoSession, blobRepositoryId, getDerivativePathBase(docModel));
// ctx.setProperty(BlobInput.BLOB_DERIVATIVE_LIST_KEY, blobsCommonList);
blobInput.setDerivativeList(blobsCommonList);
<service:DocHandlerParams xmlns:service='http://collectionspace.org/services/common/service'>
<service:classname>org.collectionspace.services.blob.nuxeo.BlobDocumentModelHandler</service:classname>
<service:params>
- <service:SchemaName>blobs</service:SchemaName>
- <service:DublinCoreTitle>blobs</service:DublinCoreTitle>
- <service:SummaryFields>name|mimeType|encoding|length|uri|csid</service:SummaryFields>
- <service:AbstractCommonListClassname>org.collectionspace.services.blob.BlobsCommonList</service:AbstractCommonListClassname>
- <service:CommonListItemClassname>org.collectionspace.services.blob.BlobsCommonList$BlobListItem</service:CommonListItemClassname>
- <service:ListResultsItemMethodName>getBlobListItem</service:ListResultsItemMethodName>
- <service:ListResultsFields>
- <service:ListResultField>
- <service:setter>setName</service:setter>
- <service:xpath>name</service:xpath>
- </service:ListResultField>
+ <service:SchemaName>blobs</service:SchemaName>
+ <service:DublinCoreTitle>blobs</service:DublinCoreTitle>
+ <service:SummaryFields>name|mimeType|encoding|length|uri|csid</service:SummaryFields>
+ <service:AbstractCommonListClassname>org.collectionspace.services.blob.BlobsCommonList</service:AbstractCommonListClassname>
+ <service:CommonListItemClassname>org.collectionspace.services.blob.BlobsCommonList$BlobListItem</service:CommonListItemClassname>
+ <service:ListResultsItemMethodName>getBlobListItem</service:ListResultsItemMethodName>
+ <service:ListResultsFields>
+ <service:ListResultField>
+ <service:element>name</service:element>
+ <service:xpath>name</service:xpath>
+ </service:ListResultField>
<service:ListResultField>
- <service:setter>setMimeType</service:setter>
- <service:xpath>mimeType</service:xpath>
+ <service:element>mimeType</service:element>
+ <service:xpath>mimeType</service:xpath>
</service:ListResultField>
<service:ListResultField>
- <service:setter>setEncoding</service:setter>
+ <service:element>encoding</service:element>
<service:xpath>encoding</service:xpath>
</service:ListResultField>
<service:ListResultField>
- <service:setter>setLength</service:setter>
+ <service:element>length</service:element>
<service:xpath>length</service:xpath>
- </service:ListResultField>
- </service:ListResultsFields>
+ </service:ListResultField>
+ </service:ListResultsFields>
</service:params>
</service:DocHandlerParams>
<service:validatorHandler xmlns:service='http://collectionspace.org/services/common/service'>
<types:item><types:key>authRef</types:key><types:value>valuer</types:value></types:item>
<types:item><types:key>authRef</types:key><types:value>insurers|insurer</types:value></types:item>
<types:item><types:key>authRef</types:key><types:value>conditionCheckersOrAssessors|conditionCheckerOrAssessor</types:value></types:item>
- </service:properties>
+ </service:properties>
<service:content contentType="application/xml">
<service:xmlContent
namespaceURI="http://collectionspace.org/services/intake"
<service:DocHandlerParams xmlns:service='http://collectionspace.org/services/common/service'>
<service:classname>org.collectionspace.services.loanin.nuxeo.LoaninDocumentModelHandler</service:classname>
<service:params>
- <service:SchemaName>loansin</service:SchemaName>
- <service:DublinCoreTitle>loansin</service:DublinCoreTitle>
- <service:SummaryFields>loanInNumber|lenderList|loanReturnDate|uri|csid</service:SummaryFields>
- <service:AbstractCommonListClassname>org.collectionspace.services.loanin.LoansinCommonList</service:AbstractCommonListClassname>
- <service:CommonListItemClassname>org.collectionspace.services.loanin.LoansinCommonList$LoaninListItem</service:CommonListItemClassname>
- <service:ListResultsItemMethodName>getLoaninListItem</service:ListResultsItemMethodName>
- <service:ListResultsFields>
- <service:ListResultField>
- <service:setter>setLoanInNumber</service:setter>
- <service:xpath>loanInNumber</service:xpath>
- </service:ListResultField>
+ <service:SchemaName>loansin</service:SchemaName>
+ <service:DublinCoreTitle>loansin</service:DublinCoreTitle>
+ <service:SummaryFields>loanInNumber|lenderList|loanReturnDate|uri|csid</service:SummaryFields>
+ <service:AbstractCommonListClassname>org.collectionspace.services.loanin.LoansinCommonList</service:AbstractCommonListClassname>
+ <service:CommonListItemClassname>org.collectionspace.services.loanin.LoansinCommonList$LoaninListItem</service:CommonListItemClassname>
+ <service:ListResultsItemMethodName>getLoaninListItem</service:ListResultsItemMethodName>
+ <service:ListResultsFields>
+ <service:ListResultField>
+ <service:element>loanInNumber</service:element>
+ <service:xpath>loanInNumber</service:xpath>
+ </service:ListResultField>
<service:ListResultField>
- <service:setter>setLender</service:setter>
- <service:xpath>lenderGroupList/[0]/lender</service:xpath>
+ <service:element>lender</service:element>
+ <service:xpath>lenderGroupList/[0]/lender</service:xpath>
</service:ListResultField>
<service:ListResultField>
- <service:setter>setLoanReturnDate</service:setter>
+ <service:element>loanReturnDate</service:element>
<service:xpath>loanReturnDate</service:xpath>
</service:ListResultField>
</service:ListResultsFields>
</s:params>
</s:initHandler>
<tenant:properties>
- <types:item><types:key>datePattern</types:key><types:value>MMM dd, yyyy</types:value></types:item>
- <types:item><types:key>datePattern</types:key><types:value>dd.MM.yyyy</types:value></types:item>
- <!-- <types:item><types:key>datePattern</types:key><types:value>dd/MM/yyyy</types:value></types:item> -->
- <types:item><types:key>localeLanguage</types:key><types:value>en</types:value></types:item>
- <!-- <types:item><types:key>localeLanguage</types:key><types:value>da</types:value></types:item> -->
- </tenant:properties>
+ <types:item><types:key>datePattern</types:key><types:value>MMM dd, yyyy</types:value></types:item>
+ <types:item><types:key>datePattern</types:key><types:value>dd.MM.yyyy</types:value></types:item>
+ <!-- <types:item><types:key>datePattern</types:key><types:value>dd/MM/yyyy</types:value></types:item> -->
+ <types:item><types:key>localeLanguage</types:key><types:value>en</types:value></types:item>
+ <!-- <types:item><types:key>localeLanguage</types:key><types:value>da</types:value></types:item> -->
+ </tenant:properties>
<service:properties xmlns:service='http://collectionspace.org/services/common/service'>
<service:DocHandlerParams xmlns:service='http://collectionspace.org/services/common/service'>
<service:classname>org.collectionspace.services.objectexit.nuxeo.ObjectExitDocumentModelHandler</service:classname>
<service:params>
- <service:SchemaName>objectexit</service:SchemaName>
- <service:DublinCoreTitle>objectexit</service:DublinCoreTitle>
- <service:SummaryFields>exitNumber|currentOwner|uri|csid</service:SummaryFields>
- <service:AbstractCommonListClassname>org.collectionspace.services.objectexit.ObjectexitCommonList</service:AbstractCommonListClassname>
- <service:CommonListItemClassname>org.collectionspace.services.objectexit.ObjectexitCommonList$ObjectexitListItem</service:CommonListItemClassname>
- <service:ListResultsItemMethodName>getObjectexitListItem</service:ListResultsItemMethodName>
- <service:ListResultsFields>
- <service:ListResultField>
- <service:setter>setExitNumber</service:setter>
- <service:xpath>exitNumber</service:xpath>
- </service:ListResultField>
+ <service:SchemaName>objectexit</service:SchemaName>
+ <service:DublinCoreTitle>objectexit</service:DublinCoreTitle>
+ <service:SummaryFields>exitNumber|currentOwner|uri|csid</service:SummaryFields>
+ <service:AbstractCommonListClassname>org.collectionspace.services.objectexit.ObjectexitCommonList</service:AbstractCommonListClassname>
+ <service:CommonListItemClassname>org.collectionspace.services.objectexit.ObjectexitCommonList$ObjectexitListItem</service:CommonListItemClassname>
+ <service:ListResultsItemMethodName>getObjectexitListItem</service:ListResultsItemMethodName>
+ <service:ListResultsFields>
+ <service:ListResultField>
+ <service:element>exitNumber</service:element>
+ <service:xpath>exitNumber</service:xpath>
+ </service:ListResultField>
<service:ListResultField>
- <service:setter>setCurrentOwner</service:setter>
- <service:xpath>currentOwner</service:xpath>
+ <service:element>currentOwner</service:element>
+ <service:xpath>currentOwner</service:xpath>
</service:ListResultField>
- </service:ListResultsFields>
+ </service:ListResultsFields>
</service:params>
</service:DocHandlerParams>
<service:validatorHandler xmlns:service='http://collectionspace.org/services/common/service'>
<service:DocHandlerParams xmlns:service='http://collectionspace.org/services/common/service'>
<service:classname>org.collectionspace.services.media.nuxeo.MediaDocumentModelHandler</service:classname>
<service:params>
- <service:SchemaName>media</service:SchemaName>
- <service:DublinCoreTitle>media</service:DublinCoreTitle>
- <service:SummaryFields>title|source|filename|identificationNumber|uri|csid</service:SummaryFields>
- <service:AbstractCommonListClassname>org.collectionspace.services.media.MediaCommonList</service:AbstractCommonListClassname>
- <service:CommonListItemClassname>org.collectionspace.services.media.MediaCommonList$MediaListItem</service:CommonListItemClassname>
- <service:ListResultsItemMethodName>getMediaListItem</service:ListResultsItemMethodName>
- <service:ListResultsFields>
- <service:ListResultField>
- <service:setter>setTitle</service:setter>
- <service:xpath>title</service:xpath>
- </service:ListResultField>
+ <service:SchemaName>media</service:SchemaName>
+ <service:DublinCoreTitle>media</service:DublinCoreTitle>
+ <service:SummaryFields>title|source|filename|identificationNumber|uri|csid</service:SummaryFields>
+ <service:AbstractCommonListClassname>org.collectionspace.services.media.MediaCommonList</service:AbstractCommonListClassname>
+ <service:CommonListItemClassname>org.collectionspace.services.media.MediaCommonList$MediaListItem</service:CommonListItemClassname>
+ <service:ListResultsItemMethodName>getMediaListItem</service:ListResultsItemMethodName>
+ <service:ListResultsFields>
+ <service:ListResultField>
+ <service:element>title</service:element>
+ <service:xpath>title</service:xpath>
+ </service:ListResultField>
<service:ListResultField>
- <service:setter>setSource</service:setter>
- <service:xpath>source</service:xpath>
+ <service:element>source</service:element>
+ <service:xpath>source</service:xpath>
</service:ListResultField>
<service:ListResultField>
- <service:setter>setFilename</service:setter>
+ <service:element>filename</service:element>
<service:xpath>filename</service:xpath>
</service:ListResultField>
<service:ListResultField>
- <service:setter>setIdentificationNumber</service:setter>
+ <service:element>identificationNumber</service:element>
<service:xpath>identificationNumber</service:xpath>
- </service:ListResultField>
- </service:ListResultsFields>
+ </service:ListResultField>
+ </service:ListResultsFields>
</service:params>
</service:DocHandlerParams>
<service:validatorHandler xmlns:service='http://collectionspace.org/services/common/service'>
<types:item><types:key>authRef</types:key><types:value>publisher</types:value></types:item>
<types:item><types:key>authRef</types:key><types:value>rightsHolder</types:value></types:item>
<types:item><types:key>authRef</types:key><types:value>subjects|subject</types:value></types:item>
- </service:properties>
+ </service:properties>
<service:content contentType="application/xml">
<service:xmlContent
namespaceURI="http://collectionspace.org/services/media"
<service:col>shortidentifier</service:col>
</service:field>
</service:params>
- </service:initHandler>
+ </service:initHandler>
<service:object id="1" name="Organization" version="0.1"
xmlns:service='http://collectionspace.org/services/common/service'>
<service:part id="0" control_group="Managed"
<service:col>shortidentifier</service:col>
</service:field>
</service:params>
- </service:initHandler>
+ </service:initHandler>
<service:object id="1" name="Locationitem" version="0.1"
xmlns:service='http://collectionspace.org/services/common/service'>
<service:part id="0" control_group="Managed"
<service:DocHandlerParams xmlns:service='http://collectionspace.org/services/common/service'>
<service:classname>org.collectionspace.services.loanin.nuxeo.AcquisitionDocumentModelHandler</service:classname>
<service:params>
- <service:SchemaName>acquisition</service:SchemaName>
- <service:DublinCoreTitle>acquisition</service:DublinCoreTitle>
- <service:SummaryFields>acquisitionReferenceNumber|acquisitionSources|owners|uri|csid</service:SummaryFields>
- <service:AbstractCommonListClassname>org.collectionspace.services.acquisition.AcquisitionsCommonList</service:AbstractCommonListClassname>
- <service:CommonListItemClassname>org.collectionspace.services.acquisition.AcquisitionsCommonList$AcquisitionListItem</service:CommonListItemClassname>
- <service:ListResultsItemMethodName>getAcquisitionListItem</service:ListResultsItemMethodName>
- <service:ListResultsFields>
+ <service:SchemaName>acquisition</service:SchemaName>
+ <service:DublinCoreTitle>acquisition</service:DublinCoreTitle>
+ <service:SummaryFields>acquisitionReferenceNumber|acquisitionSources|owners|uri|csid</service:SummaryFields>
+ <service:AbstractCommonListClassname>org.collectionspace.services.acquisition.AcquisitionsCommonList</service:AbstractCommonListClassname>
+ <service:CommonListItemClassname>org.collectionspace.services.acquisition.AcquisitionsCommonList$AcquisitionListItem</service:CommonListItemClassname>
+ <service:ListResultsItemMethodName>getAcquisitionListItem</service:ListResultsItemMethodName>
+ <service:ListResultsFields>
+ <service:ListResultField>
+ <service:element>acquisitionReferenceNumber</service:element>
+ <service:xpath>acquisitionReferenceNumber</service:xpath>
+ </service:ListResultField>
<service:ListResultField>
- <service:setter>setAcquisitionReferenceNumber</service:setter>
- <service:xpath>acquisitionReferenceNumber</service:xpath>
+ <service:element>acquisitionSource</service:element>
+ <service:xpath>acquisitionSources/[0]</service:xpath>
</service:ListResultField>
<service:ListResultField>
- <service:setter>setAcquisitionSource</service:setter>
- <service:xpath>acquisitionSources/[0]</service:xpath>
- </service:ListResultField>
- <service:ListResultField>
- <service:setter>setOwner</service:setter>
+ <service:element>owner</service:element>
<service:xpath>owners/[0]</service:xpath>
</service:ListResultField>
</service:ListResultsFields>
</service:object>
</tenant:serviceBindings>
<!-- end role-permission service meta-data -->
-
+
<!-- begin role-account service meta-data -->
<!-- the following service is same as account/accountroles service -->
<!-- except that it is available as a sub resource of the role service -->
</service:part>
</service:object>
</tenant:serviceBindings>
-
+
</tenant:tenantBinding>
<!-- end collectionspace.org tenant meta-data -->
-
</tenant:TenantBindingConfig>
<service:ListResultsItemMethodName>getBlobListItem</service:ListResultsItemMethodName>
<service:ListResultsFields>
<service:ListResultField>
- <service:setter>setName</service:setter>
+ <service:element>name</service:element>
<service:xpath>name</service:xpath>
</service:ListResultField>
<service:ListResultField>
- <service:setter>setMimeType</service:setter>
+ <service:element>mimeType</service:element>
<service:xpath>mimeType</service:xpath>
</service:ListResultField>
<service:ListResultField>
- <service:setter>setEncoding</service:setter>
+ <service:element>encoding</service:element>
<service:xpath>encoding</service:xpath>
</service:ListResultField>
<service:ListResultField>
- <service:setter>setLength</service:setter>
+ <service:element>length</service:element>
<service:xpath>length</service:xpath>
</service:ListResultField>
</service:ListResultsFields>
<service:ListResultsItemMethodName>getLoaninListItem</service:ListResultsItemMethodName>
<service:ListResultsFields>
<service:ListResultField>
- <service:setter>setLoanInNumber</service:setter>
+ <service:element>loanInNumber</service:element>
<service:xpath>loanInNumber</service:xpath>
</service:ListResultField>
<service:ListResultField>
- <service:setter>setLender</service:setter>
+ <service:element>lender</service:element>
<service:xpath>lenderGroupList/[0]/lender</service:xpath>
</service:ListResultField>
<service:ListResultField>
- <service:setter>setLoanReturnDate</service:setter>
+ <service:element>loanReturnDate</service:element>
<service:xpath>loanReturnDate</service:xpath>
</service:ListResultField>
</service:ListResultsFields>
<service:ListResultsItemMethodName>getObjectexitListItem</service:ListResultsItemMethodName>
<service:ListResultsFields>
<service:ListResultField>
- <service:setter>setExitNumber</service:setter>
+ <service:element>exitNumber</service:element>
<service:xpath>exitNumber</service:xpath>
</service:ListResultField>
<service:ListResultField>
- <service:setter>setCurrentOwner</service:setter>
+ <service:element>currentOwner</service:element>
<service:xpath>currentOwner</service:xpath>
</service:ListResultField>
</service:ListResultsFields>
<service:ListResultsItemMethodName>getMediaListItem</service:ListResultsItemMethodName>
<service:ListResultsFields>
<service:ListResultField>
- <service:setter>setTitle</service:setter>
+ <service:element>title</service:element>
<service:xpath>title</service:xpath>
</service:ListResultField>
<service:ListResultField>
- <service:setter>setSource</service:setter>
+ <service:element>source</service:element>
<service:xpath>source</service:xpath>
</service:ListResultField>
<service:ListResultField>
- <service:setter>setFilename</service:setter>
+ <service:element>filename</service:element>
<service:xpath>filename</service:xpath>
</service:ListResultField>
<service:ListResultField>
- <service:setter>setIdentificationNumber</service:setter>
+ <service:element>identificationNumber</service:element>
<service:xpath>identificationNumber</service:xpath>
</service:ListResultField>
</service:ListResultsFields>
<service:ListResultsItemMethodName>getAcquisitionListItem</service:ListResultsItemMethodName>
<service:ListResultsFields>
<service:ListResultField>
- <service:setter>setAcquisitionReferenceNumber</service:setter>
+ <service:element>acquisitionReferenceNumber</service:element>
<service:xpath>acquisitionReferenceNumber</service:xpath>
</service:ListResultField>
<service:ListResultField>
- <service:setter>setAcquisitionSource</service:setter>
+ <service:element>acquisitionSource</service:element>
<service:xpath>acquisitionSources/[0]</service:xpath>
</service:ListResultField>
<service:ListResultField>
- <service:setter>setOwner</service:setter>
+ <service:element>owner</service:element>
<service:xpath>owners/[0]</service:xpath>
</service:ListResultField>
</service:ListResultsFields>
\r
import javax.servlet.http.HttpServletRequest;\r
\r
-import org.collectionspace.services.blob.BlobsCommonList; \r
+//import org.collectionspace.services.blob.BlobsCommonList; \r
+import org.collectionspace.services.jaxb.AbstractCommonList;\r
+import org.collectionspace.services.nuxeo.client.java.CommonList;\r
import org.collectionspace.services.common.FileUtils;\r
\r
public class BlobInput {\r
\r
private String derivativeTerm;\r
private boolean derivativeListRequested = false;\r
- private BlobsCommonList derivativeList;\r
+ private CommonList derivativeList;\r
\r
private boolean contentRequested = false;\r
private InputStream contentStream;\r
this.derivativeListRequested = derivativesRequested;\r
}\r
\r
- public BlobsCommonList getDerivativeList() {\r
+ public CommonList getDerivativeList() {\r
return derivativeList;\r
}\r
\r
- public void setDerivativeList(BlobsCommonList derivativeList) {\r
+ public void setDerivativeList(CommonList derivativeList) {\r
this.derivativeList = derivativeList;\r
}\r
\r
import org.collectionspace.services.common.document.DocumentUtils;\r
import org.collectionspace.services.common.FileUtils;\r
import org.collectionspace.services.blob.BlobsCommon;\r
-import org.collectionspace.services.blob.BlobsCommonList;\r
-import org.collectionspace.services.blob.BlobsCommonList.BlobListItem;\r
+//import org.collectionspace.services.blob.BlobsCommonList;\r
+//import org.collectionspace.services.blob.BlobsCommonList.BlobListItem;\r
+import org.collectionspace.services.jaxb.AbstractCommonList;\r
+import org.collectionspace.services.jaxb.BlobJAXBSchema;\r
+import org.collectionspace.services.nuxeo.client.java.CommonList;\r
import org.collectionspace.services.common.blob.BlobOutput;\r
\r
import org.collectionspace.ecm.platform.quote.api.QuoteManager;\r
return uri + result + "/" + BlobInput.URI_CONTENT_PATH;\r
}\r
\r
- static private BlobListItem createBlobListItem(Blob blob, String uri) {\r
- BlobListItem result = new BlobListItem();\r
-\r
- result.setEncoding(blob.getEncoding());\r
- result.setLength(Long.toString(blob.getLength()));\r
- result.setMimeType(blob.getMimeType());\r
- result.setName(blob.getFilename());\r
- result.setUri(getDerivativeUri(uri, blob.getFilename()));\r
-\r
- return result;\r
+ static private HashMap<String,String> createBlobListItem(Blob blob, String uri) {\r
+ HashMap<String,String> item = new HashMap<String,String>();\r
+ \r
+ String value = blob.getEncoding();\r
+ if(value!=null && !value.trim().isEmpty()) {\r
+ item.put(BlobJAXBSchema.encoding, value);\r
+ }\r
+ value = Long.toString(blob.getLength());\r
+ if(value!=null && !value.trim().isEmpty()) {\r
+ item.put(BlobJAXBSchema.length, value);\r
+ }\r
+ value = blob.getMimeType();\r
+ if(value!=null && !value.trim().isEmpty()) {\r
+ item.put(BlobJAXBSchema.mimeType, value);\r
+ }\r
+ value = blob.getFilename();\r
+ if(value!=null && !value.trim().isEmpty()) {\r
+ item.put(BlobJAXBSchema.name, value);\r
+ }\r
+ value = getDerivativeUri(uri, blob.getFilename());\r
+ if(value!=null && !value.trim().isEmpty()) {\r
+ item.put(BlobJAXBSchema.uri, value);\r
+ }\r
+\r
+ return item;\r
}\r
\r
- static public BlobsCommonList getBlobDerivatives(RepositoryInstance repoSession,\r
+ static public CommonList getBlobDerivatives(RepositoryInstance repoSession,\r
String repositoryId,\r
String uri) throws Exception {\r
- BlobsCommonList result = new BlobsCommonList();\r
+ CommonList commonList = new CommonList();\r
\r
IdRef documentRef = new IdRef(repositoryId);\r
DocumentModel documentModel = repoSession.getDocument(documentRef); \r
DocumentBlobHolder docBlobHolder = (DocumentBlobHolder)documentModel.getAdapter(BlobHolder.class);\r
//\r
- //\r
+ // FIXME: REM this looks like cruft\r
try {\r
QuoteManager quoteManager = (QuoteManager)Framework.getService(QuoteManager.class);\r
quoteManager.createQuote(documentModel, "Quoted - Comment" + System.currentTimeMillis(),\r
//\r
//\r
List<Blob> docBlobs = docBlobHolder.getBlobs(); \r
- List<BlobListItem> blobListItems = result.getBlobListItem();\r
- BlobListItem blobListItem = null;\r
+ //List<BlobListItem> blobListItems = result.getBlobListItem();\r
+ HashMap<String,String> item = null;\r
for (Blob blob : docBlobs) {\r
- blobListItem = createBlobListItem(blob, uri);\r
- blobListItems.add(blobListItem);\r
+ item = createBlobListItem(blob, uri);\r
+ commonList.addItem(item);\r
}\r
\r
- return result;\r
+ return commonList;\r
}\r
\r
static private BlobsCommon createBlobsCommon(DocumentModel documentModel, Blob nuxeoBlob) {\r
--- /dev/null
+/**\r
+ * This document is a part of the source code and related artifacts\r
+ * for CollectionSpace, an open source collections management system\r
+ * for museums and related institutions:\r
+\r
+ * http://www.collectionspace.org\r
+ * http://wiki.collectionspace.org\r
+\r
+ * Copyright 2009 University of California at Berkeley\r
+\r
+ * Licensed under the Educational Community License (ECL), Version 2.0.\r
+ * You may not use this file except in compliance with this License.\r
+\r
+ * You may obtain a copy of the ECL 2.0 License at\r
+\r
+ * https://source.collectionspace.org/collection-space/LICENSE.txt\r
+\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+package org.collectionspace.services.nuxeo.client.java;\r
+\r
+import java.util.ArrayList;\r
+import java.util.HashMap;\r
+import java.util.Iterator;\r
+import java.util.List;\r
+\r
+import org.collectionspace.services.jaxb.AbstractCommonList;\r
+\r
+import org.apache.commons.lang.builder.ToStringBuilder;\r
+import org.jvnet.jaxb2_commons.lang.ToString;\r
+import org.jvnet.jaxb2_commons.lang.builder.JAXBToStringBuilder;\r
+import javax.xml.parsers.DocumentBuilder;\r
+import javax.xml.parsers.DocumentBuilderFactory;\r
+import org.w3c.dom.Document;\r
+import org.w3c.dom.Element;\r
+\r
+import javax.xml.bind.annotation.XmlAccessType;\r
+import javax.xml.bind.annotation.XmlAccessorType;\r
+import javax.xml.bind.annotation.XmlElement;\r
+import javax.xml.bind.annotation.XmlRootElement;\r
+import javax.xml.bind.annotation.XmlTransient;\r
+import javax.xml.bind.annotation.XmlType;\r
+import javax.xml.bind.annotation.XmlSeeAlso;\r
+\r
+//import org.slf4j.Logger;\r
+//import org.slf4j.LoggerFactory;\r
+\r
+/**\r
+ * This class allows us to generically represent and marshall a set of list\r
+ * results for any object. The base information is provided by the\r
+ * AbstractCommonList.xsd and associated class, defining the list header.\r
+ * A array of itemInfo objects define the results-specific info, where\r
+ * each itemInfo is a map of Strings that represent the fields returned for\r
+ * each item.\r
+ *\r
+ * @author pschmitz\r
+ * $LastChangedRevision: $\r
+ * $LastChangedDate: $\r
+ */\r
+@XmlAccessorType(XmlAccessType.NONE)\r
+// We use the same root as the superclass, so unmarshalling will work (more or less)\r
+@XmlRootElement(name = "abstract-common-list")\r
+public class CommonList extends AbstractCommonList {\r
+ \r
+ /** The logger. */\r
+ //private final Logger logger = LoggerFactory.getLogger(this.getClass());\r
+ @XmlTransient\r
+ private DocumentBuilderFactory factory;\r
+ @XmlTransient\r
+ private DocumentBuilder parser;\r
+ @XmlTransient\r
+ private Document doc;\r
+ \r
+ public CommonList()\r
+ throws javax.xml.parsers.ParserConfigurationException {\r
+ super();\r
+ factory = DocumentBuilderFactory.newInstance();\r
+ //Get the DocumentBuilder\r
+ parser = factory.newDocumentBuilder();\r
+ //Create blank DOM Document\r
+ doc = parser.newDocument();\r
+ }\r
+ \r
+ @XmlTransient\r
+ private String fieldKeys[] = null;\r
+ \r
+ //Add methods to add new items, and to set the fieldKeys. Could make\r
+ //them an array of strings rather than arraylist.\r
+ \r
+ /**\r
+ * @return the current set of fieldKeys.\r
+ */\r
+ public String[] getFieldKeys() {\r
+ return fieldKeys;\r
+ }\r
+ \r
+ /**\r
+ * Sets the keys to assume when fetching fields from the itemInfo maps.\r
+ * As a side-effect, will build and set super.fieldsReturned.\r
+ * This MUST be called before attempting to add items (with addItem).\r
+ * \r
+ * @param fieldKeys the keys to use\r
+ * \r
+ */\r
+ public void setFieldsReturned(String[] fieldKeys) {\r
+ this.fieldKeys = fieldKeys;\r
+ String fieldsImploded = implode(fieldKeys, "|");\r
+ setFieldsReturned(fieldsImploded);\r
+ }\r
+\r
+ // TODO This should be in common, but then we have mutual dependencies. Sigh.\r
+ private String implode(String strings[], String sep) {\r
+ String implodedString;\r
+ if (strings.length==0) {\r
+ implodedString = "";\r
+ } else {\r
+ StringBuffer sb = new StringBuffer();\r
+ sb.append(strings[0]);\r
+ for (int i=1;i<strings.length;i++) {\r
+ if(strings[i]!=null&& !strings[i].trim().isEmpty()) {\r
+ sb.append(sep);\r
+ sb.append(strings[i]);\r
+ }\r
+ }\r
+ implodedString = sb.toString();\r
+ }\r
+ return implodedString;\r
+ }\r
+ \r
+ /**\r
+ * Adds an item to the results list. Each item should have fields\r
+ * associated to keys defined in the fieldKeys. \r
+ * Caller must call setFieldsReturned() before calling this.\r
+ * \r
+ * @param itemInfo\r
+ * @throws RuntimeException if this is called before fieldKeys has been set.\r
+ */\r
+ public void addItem(HashMap<String,String> itemInfo) {\r
+ if(fieldKeys==null) {\r
+ throw new RuntimeException("CommonList.addItem: Cannot add items before fieldKeys are set.");\r
+ }\r
+ List<AbstractCommonList.ListItem> itemsList = getListItem();\r
+ AbstractCommonList.ListItem listItem = new AbstractCommonList.ListItem();\r
+ itemsList.add(listItem);\r
+ List<Element> anyList = listItem.getAny();\r
+ for(String key:fieldKeys) {\r
+ Element el = doc.createElement(key);\r
+ el.setTextContent(itemInfo.get(key));\r
+ anyList.add(el);\r
+ }\r
+ }\r
+\r
+}\r
+\r
+\r
\r
import java.lang.reflect.Method;\r
import java.util.ArrayList;\r
+import java.util.HashMap;\r
import java.util.Iterator;\r
import java.util.List;\r
\r
import org.collectionspace.services.common.context.MultipartServiceContext;\r
import org.collectionspace.services.common.document.DocumentWrapper;\r
import org.collectionspace.services.jaxb.AbstractCommonList;\r
+import org.collectionspace.services.nuxeo.client.java.CommonList;\r
import org.collectionspace.services.nuxeo.client.java.RemoteDocumentModelHandlerImpl;\r
import org.collectionspace.services.nuxeo.util.NuxeoUtils;\r
import org.nuxeo.ecm.core.api.DocumentModel;\r
import org.slf4j.LoggerFactory;\r
\r
/**\r
- * This class is generified by the marker types T and TL,\r
- * however, T is expected to map to something like BlobCommon, MediaCommon, ObjectexitCommon, etc.,\r
- * whereas TL is expected to map to AbstractCommonList,\r
- * since, for example, BlobCommonList and ObjectexitCommonList descend from AbstractCommonList,\r
+ * This class is generified by the marker type T,\r
+ * where T is expected to map to something like BlobCommon, MediaCommon, ObjectexitCommon, etc.,\r
* and so on for every JAXB-generated schema class.\r
*\r
* User: laramie\r
* $LastChangedDate: $\r
*\r
*/\r
-public abstract class DocHandlerBase<T, TL> extends RemoteDocumentModelHandlerImpl<T, TL> {\r
+public abstract class DocHandlerBase<T> extends RemoteDocumentModelHandlerImpl<T, AbstractCommonList> {\r
\r
/** The logger. */\r
private final Logger logger = LoggerFactory.getLogger(this.getClass());\r
private AbstractCommonList commonList;\r
\r
@Override\r
- public TL getCommonPartList() {\r
- return (TL)commonList;\r
+ public AbstractCommonList getCommonPartList() {\r
+ return commonList;\r
}\r
\r
public void setCommonPartList(AbstractCommonList aCommonList) {\r
}\r
\r
@Override\r
- public TL extractCommonPartList(DocumentWrapper<DocumentModelList> wrapDoc) throws Exception {\r
- String label = getServiceContext().getCommonPartLabel();\r
-\r
+ public AbstractCommonList extractCommonPartList(DocumentWrapper<DocumentModelList> wrapDoc) throws Exception {\r
+ //String label = getServiceContext().getCommonPartLabel();\r
+ \r
+ /*\r
AbstractCommonList commonList = createAbstractCommonListImpl();\r
extractPagingInfo(((TL)commonList), wrapDoc);\r
commonList.setFieldsReturned(getSummaryFields(commonList));\r
Object item = createItemForCommonList(docModel, label, id);\r
list.add(item);\r
}\r
- return (TL)commonList;\r
+ */\r
+ /* Rewrite\r
+ * Create the CommonList\r
+ * List<ListResultField> resultsFields = getListItemsArray();\r
+ * Construct array of strings of resultsFields\r
+ * add csid and uri\r
+ * Set the fieldNames for CommonList\r
+ * For each doc in list:\r
+ * Create HashMap of values\r
+ * get csid, set csid hashmap value\r
+ * get uri, set uri hashmap value\r
+ * for (ListResultField field : resultsFields ){\r
+ * get String value from Xpath\r
+ * set hashMap value\r
+ * AddItem to CommonList\r
+ * \r
+ */\r
+ String commonSchema = getServiceContext().getCommonPartLabel();\r
+ CommonList commonList = new CommonList();\r
+ extractPagingInfo(commonList, wrapDoc);\r
+ List<ListResultField> resultsFields = getListItemsArray();\r
+ int nFields = resultsFields.size()+2;\r
+ String fields[] = new String[nFields];\r
+ fields[0] = "csid";\r
+ fields[1] = "uri";\r
+ for(int i=2;i<nFields;i++) {\r
+ ListResultField field = resultsFields.get(i-2); \r
+ fields[i]=field.getElement();\r
+ }\r
+ commonList.setFieldsReturned(fields);\r
+ Iterator<DocumentModel> iter = wrapDoc.getWrappedObject().iterator();\r
+ HashMap<String,String> item = new HashMap<String,String>();\r
+ while(iter.hasNext()){\r
+ DocumentModel docModel = iter.next();\r
+ String id = NuxeoUtils.getCsid(docModel);//NuxeoUtils.extractId(docModel.getPathAsString());\r
+ item.put(fields[0], id);\r
+ String uri = getServiceContextPath() + id;\r
+ item.put(fields[1], uri);\r
+ for (ListResultField field : resultsFields ){\r
+ String schema = field.getSchema();\r
+ if(schema==null || schema.trim().isEmpty())\r
+ schema = commonSchema;\r
+ String value = \r
+ getXPathStringValue(docModel, schema, field.getXpath());\r
+ if(value!=null && !value.trim().isEmpty()) {\r
+ item.put(field.getElement(), value);\r
+ }\r
+ }\r
+ commonList.addItem(item);\r
+ item.clear();\r
+ }\r
+\r
+ return commonList;\r
}\r
\r
@Override\r
--- /dev/null
+/**\r
+ * This document is a part of the source code and related artifacts\r
+ * for CollectionSpace, an open source collections management system\r
+ * for museums and related institutions:\r
+\r
+ * http://www.collectionspace.org\r
+ * http://wiki.collectionspace.org\r
+\r
+ * Copyright 2009 University of California at Berkeley\r
+\r
+ * Licensed under the Educational Community License (ECL), Version 2.0.\r
+ * You may not use this file except in compliance with this License.\r
+\r
+ * You may obtain a copy of the ECL 2.0 License at\r
+\r
+ * https://source.collectionspace.org/collection-space/LICENSE.txt\r
+\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+package org.collectionspace.services.nuxeo.client.java;\r
+\r
+import javax.xml.bind.annotation.XmlRegistry;\r
+\r
+/**\r
+ * ObjectFactory for CommonList \r
+ */\r
+@XmlRegistry\r
+public class ObjectFactory {\r
+ /**\r
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.collectionspace.services.jaxb\r
+ * \r
+ */\r
+ public ObjectFactory() {\r
+ }\r
+\r
+ /**\r
+ * Create an instance of {@link tCommonList }\r
+ * \r
+ */\r
+ public CommonList createCommonList() {\r
+ try {\r
+ //-System.out.println("CL_ObjectFactory:createAbstractCommonList");\r
+ return new CommonList();\r
+ } catch(Exception e) {\r
+ return null;\r
+ }\r
+ }\r
+\r
+}\r
--- /dev/null
+// We make the CommonList act like an AbstractCommonList, by setting its namespace\r
+@javax.xml.bind.annotation.XmlSchema(namespace = "http://collectionspace.org/services/jaxb")\r
+package org.collectionspace.services.nuxeo.client.java;\r
<xs:complexType name="ListResultField">
<xs:sequence>
<xs:element name="setter" type="xs:string" minOccurs="1" maxOccurs="1"/>
+ <xs:element name="element" type="xs:string" minOccurs="1" maxOccurs="1"/>
+ <xs:element name="schema" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="xpath" type="xs:string" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-
<!--
$LastChangedRevision: 1341 $
$LastChangedDate: 2010-02-15 22:01:55 -0800 (Mon, 15 Feb 2010) $
-->
-
-<xs:schema
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:ns="http://collectionspace.org/services/jaxb"
- xmlns="http://collectionspace.org/services/jaxb"
- targetNamespace="http://collectionspace.org/services/jaxb"
- version="0.6">
-
- <xs:element name="abstract-common-list">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="pageNum" type="xs:unsignedInt" />
- <xs:element name="pageSize" type="xs:unsignedInt" />
- <!-- "itemsInPage" is useful to our testing framework's unit tests -->
- <xs:element name="itemsInPage" type="xs:unsignedInt" />
- <xs:element name="totalItems" type="xs:unsignedInt" />
- <xs:element name="fieldsReturned" type="xs:string" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns="http://collectionspace.org/services/jaxb" xmlns="http://collectionspace.org/services/jaxb" targetNamespace="http://collectionspace.org/services/jaxb" version="0.6">
+ <xs:element name="abstract-common-list">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="pageNum" type="xs:unsignedInt"/>
+ <xs:element name="pageSize" type="xs:unsignedInt"/>
+ <!-- "itemsInPage" is useful to our testing framework's unit tests -->
+ <xs:element name="itemsInPage" type="xs:unsignedInt"/>
+ <xs:element name="totalItems" type="xs:unsignedInt"/>
+ <xs:element name="fieldsReturned" type="xs:string"/>
+ <xs:element name="list-item" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:any processContents="skip" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
</xs:schema>
</xs:complexType>
</xs:element>
- <!-- This is the base class for paginated lists -->
- <xs:complexType name="abstractCommonList">
- <xs:annotation>
- <xs:appinfo>
- <jaxb:class ref="org.collectionspace.services.jaxb.AbstractCommonList"/>
- </xs:appinfo>
- </xs:annotation>
- </xs:complexType>
-
- <!-- blob records, as in nuxeo repository -->
- <xs:element name="blobs_common_list">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="abstractCommonList">
- <xs:sequence>
- <xs:element name="blob_list_item" maxOccurs="unbounded">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="name" type="xs:string" minOccurs="1" />
- <xs:element name="mime-type" type="xs:string" minOccurs="1" />
- <xs:element name="encoding" type="xs:string" minOccurs="1" />
- <xs:element name="length" type="xs:string" minOccurs="1" />
- <xs:element name="uri" type="xs:string" />
- <xs:element name="csid" type="xs:string" minOccurs="1" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
- </xs:element>
-
</xs:schema>
import org.collectionspace.services.common.authorityref.AuthorityRefList;
//import org.collectionspace.services.common.context.ServiceContext;
-import org.collectionspace.services.loanin.LoansinCommonList;
+import org.collectionspace.services.jaxb.AbstractCommonList;
import org.jboss.resteasy.client.ProxyFactory;
import org.jboss.resteasy.plugins.providers.RegisterBuiltin;
* @return
* @see org.collectionspace.services.client.LoaninProxy#getLoanin()
*/
- public ClientResponse<LoansinCommonList> readList() {
+ public ClientResponse<AbstractCommonList> readList() {
return loaninProxy.readList();
}
import javax.ws.rs.core.Response;
import org.collectionspace.services.common.authorityref.AuthorityRefList;
-import org.collectionspace.services.loanin.LoansinCommonList;
+import org.collectionspace.services.jaxb.AbstractCommonList;
import org.jboss.resteasy.client.ClientResponse;
import org.jboss.resteasy.plugins.providers.multipart.MultipartInput;
import org.jboss.resteasy.plugins.providers.multipart.MultipartOutput;
// List
@GET
@Produces({"application/xml"})
- ClientResponse<LoansinCommonList> readList();
+ ClientResponse<AbstractCommonList> readList();
// List Authority References
@GET
import org.collectionspace.services.loanin.LenderGroup;
import org.collectionspace.services.loanin.LenderGroupList;
import org.collectionspace.services.loanin.LoansinCommon;
-import org.collectionspace.services.loanin.LoansinCommonList;
+//import org.collectionspace.services.loanin.LoansinCommonList;
import org.jboss.resteasy.client.ClientResponse;
import org.jboss.resteasy.plugins.providers.multipart.MultipartInput;
@Override
protected AbstractCommonList getAbstractCommonList(
ClientResponse<AbstractCommonList> response) {
- return response.getEntity(LoansinCommonList.class);
+ return response.getEntity(AbstractCommonList.class);
}
// ---------------------------------------------------------------
setupReadList();
// Submit the request to the service and store the response.
- LoansinCommonList list = null;
+ AbstractCommonList list = null;
LoaninClient client = new LoaninClient();
- ClientResponse<LoansinCommonList> res = client.readList();
+ ClientResponse<AbstractCommonList> res = client.readList();
try {
int statusCode = res.getStatus();
// Optionally output additional data about list members for debugging.
boolean iterateThroughList = false;
if (iterateThroughList && logger.isDebugEnabled()){
- List<LoansinCommonList.LoaninListItem> items =
- list.getLoaninListItem();
+ List<AbstractCommonList.ListItem> items =
+ list.getListItem();
int i = 0;
- for(LoansinCommonList.LoaninListItem item : items){
- logger.debug(testName + ": list-item[" + i + "] csid=" +
- item.getCsid());
- logger.debug(testName + ": list-item[" + i + "] loanInNumber=" +
- item.getLoanInNumber());
- logger.debug(testName + ": list-item[" + i + "] URI=" +
- item.getUri());
+ for(AbstractCommonList.ListItem item : items){
+ logger.debug(testName + ": list-item[" + i + "] " +
+ item.toString());
i++;
}
}
</xs:annotation>
</xs:complexType>
- <!-- loansin records, as in nuxeo repository -->
- <xs:element name="loansin-common-list">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="abstractCommonList">
- <xs:sequence>
- <xs:element name="loanin-list-item" maxOccurs="unbounded">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="loanInNumber" type="xs:string"
- minOccurs="1" />
- <xs:element name="lender" type="xs:string"
- minOccurs="1" />
- <xs:element name="loanReturnDate" type="xs:string"
- minOccurs="1" />
- <!-- uri to retrive details -->
- <xs:element name="uri" type="xs:anyURI"
- minOccurs="1" />
- <xs:element name="csid" type="xs:string"
- minOccurs="1" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
- </xs:element>
-
</xs:schema>
import javax.ws.rs.core.Response;
import javax.ws.rs.core.UriBuilder;
import javax.ws.rs.core.UriInfo;
+import javax.xml.parsers.ParserConfigurationException;
import org.collectionspace.services.common.AbstractMultiPartCollectionSpaceResourceImpl;
import org.collectionspace.services.common.ClientType;
import org.collectionspace.services.common.query.QueryManager;
import org.collectionspace.services.common.security.UnauthorizedException;
import org.collectionspace.services.common.vocabulary.RefNameServiceUtils;
+import org.collectionspace.services.jaxb.AbstractCommonList;
+import org.collectionspace.services.nuxeo.client.java.CommonList;
import org.collectionspace.services.nuxeo.client.java.DocumentModelHandler;
import org.collectionspace.services.nuxeo.client.java.RemoteDocumentModelHandlerImpl;
import org.jboss.resteasy.plugins.providers.multipart.MultipartInput;
*/
@GET
@Produces("application/xml")
- public LoansinCommonList getLoaninList(@Context UriInfo ui,
+ public AbstractCommonList getLoaninList(@Context UriInfo ui,
@QueryParam(IQueryManager.SEARCH_TYPE_KEYWORDS_KW) String keywords) {
- LoansinCommonList result = null;
+ AbstractCommonList result = null;
MultivaluedMap<String, String> queryParams = ui.getQueryParameters();
if (keywords != null) {
result = searchLoansin(queryParams, keywords);
*
* @return the loanin list
*/
- private LoansinCommonList getLoaninList(MultivaluedMap<String, String> queryParams) {
- LoansinCommonList loaninObjectList;
+ private CommonList getLoaninList(MultivaluedMap<String, String> queryParams) {
+ CommonList loaninObjectList;
try {
ServiceContext<MultipartInput, MultipartOutput> ctx = createServiceContext(queryParams);
DocumentHandler handler = createDocumentHandler(ctx);
getRepositoryClient(ctx).getFiltered(ctx, handler);
- loaninObjectList = (LoansinCommonList) handler.getCommonPartList();
+ loaninObjectList = (CommonList) handler.getCommonPartList();
} catch (UnauthorizedException ue) {
Response response = Response.status(
Response.Status.UNAUTHORIZED).entity("Index failed reason " + ue.getErrorReason()).type("text/plain").build();
* @return the loanin list
*/
@Deprecated
- public LoansinCommonList getLoaninList(List<String> csidList) {
- LoansinCommonList loaninObjectList = new LoansinCommonList();
+ public CommonList getLoaninList(List<String> csidList) {
+ CommonList loaninObjectList;
try {
+ loaninObjectList = new CommonList();
ServiceContext<MultipartInput, MultipartOutput> ctx = createServiceContext();
DocumentHandler handler = createDocumentHandler(ctx);
getRepositoryClient(ctx).get(ctx, csidList, handler);
- loaninObjectList = (LoansinCommonList) handler.getCommonPartList();
+ loaninObjectList = (CommonList) handler.getCommonPartList();
} catch (UnauthorizedException ue) {
Response response = Response.status(
Response.Status.UNAUTHORIZED).entity("Index failed reason " + ue.getErrorReason()).type("text/plain").build();
*
* @return the loansin common list
*/
- private LoansinCommonList searchLoansin(
+ private CommonList searchLoansin(
MultivaluedMap<String, String> queryParams,
String keywords) {
- LoansinCommonList loansinObjectList;
+ CommonList loansinObjectList;
try {
ServiceContext<MultipartInput, MultipartOutput> ctx = createServiceContext(queryParams);
DocumentHandler handler = createDocumentHandler(ctx);
}
}
getRepositoryClient(ctx).getFiltered(ctx, handler);
- loansinObjectList = (LoansinCommonList) handler.getCommonPartList();
+ loansinObjectList = (CommonList) handler.getCommonPartList();
} catch (UnauthorizedException ue) {
Response response = Response.status(
Response.Status.UNAUTHORIZED).entity("Index failed reason " + ue.getErrorReason()).type("text/plain").build();
*/
package org.collectionspace.services.loanin.nuxeo;
-import org.collectionspace.services.jaxb.AbstractCommonList;
import org.collectionspace.services.loanin.LoansinCommon;
import org.collectionspace.services.nuxeo.client.java.DocHandlerBase;
* $LastChangedDate$
*/
public class LoaninDocumentModelHandler
- extends DocHandlerBase<LoansinCommon, AbstractCommonList> {
+ extends DocHandlerBase<LoansinCommon> {
}
import javax.ws.rs.core.Response;
import org.collectionspace.services.common.authorityref.AuthorityRefList;
-//import org.collectionspace.services.common.context.ServiceContext;
-import org.collectionspace.services.media.MediaCommonList;
+import org.collectionspace.services.jaxb.AbstractCommonList;
import org.jboss.resteasy.client.ProxyFactory;
import org.jboss.resteasy.plugins.providers.RegisterBuiltin;
* @return
* @see org.collectionspace.services.client.MediaProxy#getMedia()
*/
- public ClientResponse<MediaCommonList> readList() {
+ public ClientResponse<AbstractCommonList> readList() {
return mediaProxy.readList();
}
import javax.ws.rs.core.Response;
import org.collectionspace.services.common.authorityref.AuthorityRefList;
-import org.collectionspace.services.media.MediaCommonList;
+import org.collectionspace.services.jaxb.AbstractCommonList;
import org.jboss.resteasy.client.ClientResponse;
import org.jboss.resteasy.plugins.providers.multipart.MultipartInput;
import org.jboss.resteasy.plugins.providers.multipart.MultipartOutput;
// List
@GET
@Produces({"application/xml"})
- ClientResponse<MediaCommonList> readList();
+ ClientResponse<AbstractCommonList> readList();
// List Authority References
@GET
import org.collectionspace.services.client.MediaClient;
import org.collectionspace.services.jaxb.AbstractCommonList;
import org.collectionspace.services.media.MediaCommon;
-import org.collectionspace.services.media.MediaCommonList;
import org.jboss.resteasy.client.ClientResponse;
@Override
protected AbstractCommonList getAbstractCommonList(ClientResponse<AbstractCommonList> response) {
- return response.getEntity(MediaCommonList.class);
+ return response.getEntity(AbstractCommonList.class);
}
@Override
logger.debug(testBanner(testName, CLASS_NAME));
setupReadList();
MediaClient client = new MediaClient();
- ClientResponse<MediaCommonList> res = client.readList();
- MediaCommonList list = res.getEntity();
+ ClientResponse<AbstractCommonList> res = client.readList();
+ AbstractCommonList list = res.getEntity();
assertStatusCode(res, testName);
if (logger.isDebugEnabled()) {
- List<MediaCommonList.MediaListItem> items = list.getMediaListItem();
+ List<AbstractCommonList.ListItem> items =
+ list.getListItem();
int i = 0;
- for (MediaCommonList.MediaListItem item : items) {
- logger.debug(testName + ": list-item[" + i + "] csid=" + item.getCsid());
- logger.debug(testName + ": list-item[" + i + "] media.title=" + item.getTitle());
- logger.debug(testName + ": list-item[" + i + "] URI=" + item.getUri());
+ for(AbstractCommonList.ListItem item : items){
+ logger.debug(testName + ": list-item[" + i + "] " +
+ item.toString());
i++;
}
}
</xs:annotation>
</xs:complexType>
- <!-- media records, as in nuxeo repository -->
- <xs:element name="media_common_list">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="abstractCommonList">
- <xs:sequence>
- <xs:element name="media_list_item" maxOccurs="unbounded">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="title" type="xs:string" minOccurs="1" />
- <xs:element name="source" type="xs:string" minOccurs="1" />
- <xs:element name="filename" type="xs:anyURI" minOccurs="1" />
- <xs:element name="identificationNumber" type="xs:anyURI" minOccurs="1" />
- <xs:element name="dimension" type="xs:anyURI" minOccurs="1" />
- <xs:element name="uri" type="xs:string" />
- <xs:element name="csid" type="xs:string" minOccurs="1" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
- </xs:element>
-
</xs:schema>
import org.collectionspace.services.common.context.ServiceContext;
import org.collectionspace.services.common.document.DocumentHandler;
import org.collectionspace.services.blob.BlobsCommon;
-import org.collectionspace.services.blob.BlobsCommonList;
import org.collectionspace.services.blob.nuxeo.BlobDocumentModelHandler;
import org.collectionspace.services.blob.BlobResource;
+import org.collectionspace.services.nuxeo.client.java.CommonList;
import org.jboss.resteasy.plugins.providers.multipart.MultipartInput;
import org.jboss.resteasy.plugins.providers.multipart.MultipartOutput;
@GET
@Path("{csid}/blob/derivatives")
@Produces("application/xml")
- public BlobsCommonList getDerivatives(
+ public CommonList getDerivatives(
@PathParam("csid") String csid) {
- BlobsCommonList result = null;
+ CommonList result = null;
try {
ensureCSID(csid, READ);
* The Class MediaDocumentModelHandler.
*/
public class MediaDocumentModelHandler
- extends DocHandlerBase<MediaCommon, AbstractCommonList> {
+ extends DocHandlerBase<MediaCommon> {
//==============================================================================
import javax.ws.rs.core.Response;
import org.collectionspace.services.common.authorityref.AuthorityRefList;
-//import org.collectionspace.services.common.context.ServiceContext;
-import org.collectionspace.services.objectexit.ObjectexitCommonList;
+import org.collectionspace.services.jaxb.AbstractCommonList;
import org.jboss.resteasy.client.ProxyFactory;
import org.jboss.resteasy.plugins.providers.RegisterBuiltin;
* @return
* @see org.collectionspace.services.client.ObjectExitProxy#getObjectExit()
*/
- public ClientResponse<ObjectexitCommonList> readList() {
+ public ClientResponse<AbstractCommonList> readList() {
return objectexitProxy.readList();
}
import javax.ws.rs.core.Response;
import org.collectionspace.services.common.authorityref.AuthorityRefList;
-import org.collectionspace.services.objectexit.ObjectexitCommonList;
+import org.collectionspace.services.jaxb.AbstractCommonList;
import org.jboss.resteasy.client.ClientResponse;
import org.jboss.resteasy.plugins.providers.multipart.MultipartInput;
import org.jboss.resteasy.plugins.providers.multipart.MultipartOutput;
// List
@GET
@Produces({"application/xml"})
- ClientResponse<ObjectexitCommonList> readList();
+ ClientResponse<AbstractCommonList> readList();
// List Authority References
@GET
import org.collectionspace.services.client.ObjectExitClient;
import org.collectionspace.services.jaxb.AbstractCommonList;
import org.collectionspace.services.objectexit.ObjectexitCommon;
-import org.collectionspace.services.objectexit.ObjectexitCommonList;
import org.jboss.resteasy.client.ClientResponse;
@Override
protected AbstractCommonList getAbstractCommonList(ClientResponse<AbstractCommonList> response) {
- return response.getEntity(ObjectexitCommonList.class);
+ return response.getEntity(AbstractCommonList.class);
}
@Override
logger.debug(testBanner(testName, CLASS_NAME));
setupReadList();
ObjectExitClient client = new ObjectExitClient();
- ClientResponse<ObjectexitCommonList> res = client.readList();
- ObjectexitCommonList list = res.getEntity();
+ ClientResponse<AbstractCommonList> res = client.readList();
+ AbstractCommonList list = res.getEntity();
assertStatusCode(res, testName);
if (logger.isDebugEnabled()) {
- List<ObjectexitCommonList.ObjectexitListItem> items = list.getObjectexitListItem();
+ List<AbstractCommonList.ListItem> items =
+ list.getListItem();
int i = 0;
- for (ObjectexitCommonList.ObjectexitListItem item : items) {
- logger.debug(testName + ": list-item[" + i + "] csid=" + item.getCsid());
- logger.debug(testName + ": list-item[" + i + "] objectExitNumber=" + item.getExitNumber());
- logger.debug(testName + ": list-item[" + i + "] URI=" + item.getUri());
+ for(AbstractCommonList.ListItem item : items){
+ logger.debug(testName + ": list-item[" + i + "] " +
+ item.toString());
i++;
}
}
</xs:annotation>
</xs:complexType>
- <!-- objectexit records, as in nuxeo repository -->
- <xs:element name="objectexit_common_list">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="abstractCommonList">
- <xs:sequence>
- <xs:element name="objectexit_list_item" maxOccurs="unbounded">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="exitNumber" type="xs:string" minOccurs="1" />
- <xs:element name="currentOwner" type="xs:string" minOccurs="1" />
- <xs:element name="uri" type="xs:anyURI" minOccurs="1" />
- <xs:element name="csid" type="xs:string" minOccurs="1" />
- <!--
- <xs:element name="depositor" type="xs:string" minOccurs="1" />
- <xs:element name="exitDate" type="xs:string" minOccurs="1" />
- <xs:element name="exitMethod" type="xs:string" minOccurs="1" />
- <xs:element name="exitNote" type="xs:string" minOccurs="1" />
- <xs:element name="exitReason" type="xs:string" minOccurs="1" />
- <xs:element name="packingNote" type="xs:string" minOccurs="1" />
- -->
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
- </xs:element>
-
</xs:schema>
import org.collectionspace.services.nuxeo.client.java.DocHandlerBase;
import org.collectionspace.services.objectexit.ObjectexitCommon;
-import org.collectionspace.services.jaxb.AbstractCommonList;
public class ObjectExitDocumentModelHandler
- extends DocHandlerBase<ObjectexitCommon, AbstractCommonList> {
+ extends DocHandlerBase<ObjectexitCommon> {
}