<service:documentHandler xmlns:service="http://collectionspace.org/services/config/service">org.collectionspace.services.collectionobject.nuxeo.CollectionObjectDocumentModelHandler</service:documentHandler>
<service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
<service:params>
- <service:DublinCoreTitle>collectionobjects</service:DublinCoreTitle>
- <service:ListResultsItemMethodName>getCollectionObjectListItem</service:ListResultsItemMethodName>
<service:ListResultsFields>
<service:ListResultField>
<service:element>objectNumber</service:element>
<service:repositoryDomain xmlns:service="http://collectionspace.org/services/config/service">default-domain</service:repositoryDomain>
<service:documentHandler xmlns:service="http://collectionspace.org/services/config/service">org.collectionspace.services.intake.nuxeo.IntakeDocumentModelHandler</service:documentHandler>
<service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
- <service:classname>org.collectionspace.services.group.nuxeo.IntakeDocumentModelHandler</service:classname>
<service:params>
- <service:SchemaName>intakes</service:SchemaName>
- <service:DublinCoreTitle>intakes</service:DublinCoreTitle>
- <service:SummaryFields> entryNumber|depositor|currentOwner|uri|csid</service:SummaryFields>
- <service:AbstractCommonListClassname />
- <service:CommonListItemClassname />
- <service:ListResultsItemMethodName>getIntakeListItem</service:ListResultsItemMethodName>
<service:ListResultsFields>
<service:ListResultField>
<service:element>entryNumber</service:element>
<service:repositoryDomain xmlns:service="http://collectionspace.org/services/config/service">default-domain</service:repositoryDomain>
<service:documentHandler xmlns:service="http://collectionspace.org/services/config/service">org.collectionspace.services.loanin.nuxeo.LoaninDocumentModelHandler</service:documentHandler>
<service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/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 />
- <service:CommonListItemClassname />
- <service:ListResultsItemMethodName>getLoaninListItem</service:ListResultsItemMethodName>
<service:ListResultsFields>
<service:ListResultField>
<service:element>loanInNumber</service:element>
<service:repositoryDomain xmlns:service="http://collectionspace.org/services/config/service">default-domain</service:repositoryDomain>
<service:documentHandler xmlns:service="http://collectionspace.org/services/config/service">org.collectionspace.services.objectexit.nuxeo.ObjectExitDocumentModelHandler</service:documentHandler>
<service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
- <service:classname>org.collectionspace.services.objectexit.nuxeo.ObjectExitDocumentModelHandler</service:classname>
<service:params>
<service:ListResultsFields>
<service:ListResultField>
<service:repositoryDomain xmlns:service="http://collectionspace.org/services/config/service">default-domain</service:repositoryDomain>
<service:documentHandler xmlns:service="http://collectionspace.org/services/config/service">org.collectionspace.services.imports.nuxeo.ImportsDocumentModelHandler</service:documentHandler>
<service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
- <service:classname>org.collectionspace.services.imports.nuxeo.ImportsDocumentModelHandler</service:classname>
<service:params>
- <service:SchemaName>imports</service:SchemaName>
- <service:DublinCoreTitle>imports</service:DublinCoreTitle>
- <service:SummaryFields>importsField|uri|csid</service:SummaryFields>
- <service:AbstractCommonListClassname>org.collectionspace.services.imports.ImportsCommonList</service:AbstractCommonListClassname>
- <service:CommonListItemClassname>org.collectionspace.services.imports.ImportsCommonList$ImportsListItem</service:CommonListItemClassname>
- <service:ListResultsItemMethodName>getImportsListItem</service:ListResultsItemMethodName>
<service:ListResultsFields>
<service:ListResultField>
<service:element>importsField</service:element>
<service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
<service:params>
<service:ListResultsFields>
- <!-- Omit the standard AuthorityItem items (they are handled by the code) -->
+ <!-- Omit the standard AuthorityItem fields (they are handled by the code) -->
<service:ListResultField>
<service:element>order</service:element>
<service:xpath>order</service:xpath>
<service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
<service:params>
<service:ListResultsFields>
- <!-- Omit the standard AuthorityItem items (they are handled by the code) -->
+ <!-- Omit the standard AuthorityItem fields (they are handled by the code) -->
</service:ListResultsFields>
</service:params>
</service:DocHandlerParams>
<service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
<service:params>
<service:ListResultsFields>
- <!-- Omit the standard AuthorityItem items (they are handled by the code) -->
+ <!-- Omit the standard AuthorityItem fields (they are handled by the code) -->
<service:ListResultField>
<service:element>foreName</service:element>
<service:xpath>personTermGroupList/[0]/foreName</service:xpath>
<service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
<service:params>
<service:ListResultsFields>
- <!-- Omit the standard AuthorityItem items (they are handled by the code) -->
+ <!-- Omit the standard AuthorityItem fields (they are handled by the code) -->
</service:ListResultsFields>
</service:params>
</service:DocHandlerParams>
<service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
<service:params>
<service:ListResultsFields>
- <!-- Omit the standard AuthorityItem items (they are handled by the code) -->
+ <!-- Omit the standard AuthorityItem fields (they are handled by the code) -->
</service:ListResultsFields>
</service:params>
</service:DocHandlerParams>
<service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
<service:params>
<service:ListResultsFields>
- <!-- Omit the standard AuthorityItem items (they are handled by the code) -->
+ <!-- Omit the standard AuthorityItem fields (they are handled by the code) -->
<!-- Uncomment when bug in returning list result values from complex types,
currently in the CSPACE-4813 branch (P/NP term work in services), is fixed -->
<!--
<service:DocHandlerParams xmlns:service="http://collectionspace.org/services/config/service">
<service:params>
<service:ListResultsFields>
- <!-- Omit the standard AuthorityItem items (they are handled by the code) -->
+ <!-- Omit the standard AuthorityItem fields (they are handled by the code) -->
</service:ListResultsFields>
</service:params>
</service:DocHandlerParams>
throw new UnsupportedOperationException();\r
}\r
\r
- // This is an old hack restored by Laramie in confusion about how the \r
- // replacement model works. Will be removed ASAP.\r
- public AbstractCommonList extractCommonPartListLaramieHACK(DocumentWrapper<DocumentModelList> wrapDoc) throws Exception {\r
- String label = getServiceContext().getCommonPartLabel();\r
- AbstractCommonList commonList = createAbstractCommonListImpl();\r
- //LC extractPagingInfo((commonList), wrapDoc);\r
- commonList.setFieldsReturned(getSummaryFields(commonList));\r
- List list = createItemsList(commonList);\r
- Iterator<DocumentModel> iter = wrapDoc.getWrappedObject().iterator();\r
- while(iter.hasNext()){\r
- DocumentModel docModel = iter.next();\r
- String id = NuxeoUtils.getCsid(docModel);//NuxeoUtils.extractId(docModel.getPathAsString());\r
- Object item = createItemForCommonList(docModel, label, id);\r
- list.add(item);\r
- }\r
- extractPagingInfo((commonList), wrapDoc); //LC\r
- return commonList;\r
- }\r
-\r
public static String getUpdatedAtAsString(DocumentModel docModel) throws Exception {\r
GregorianCalendar cal = (GregorianCalendar)\r
docModel.getProperty(CollectionSpaceClient.COLLECTIONSPACE_CORE_SCHEMA,\r
@Override\r
public AbstractCommonList extractCommonPartList(DocumentWrapper<DocumentModelList> wrapDoc) throws Exception {\r
String classname = getDocHandlerParams().getAbstractCommonListClassname();\r
- if (!Tools.isBlank(classname)){\r
- return extractCommonPartListLaramieHACK(wrapDoc);\r
- }\r
CommonList commonList = new CommonList();\r
String markRtSbj = null;\r
RepositoryInstance repoSession = null;\r