</extension>
<extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype">
<doctype name="CollectionSpaceDocument" extends="Document">
+ <schema name="common"/>
+ <schema name="dublincore"/>
+ <schema name="collectionspace_core"/>
</doctype>
</extension>
<extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype">
DocumentFilter filter = handler.getDocumentFilter();
String oldOrderBy = filter.getOrderByClause();
+ if (isClauseEmpty(oldOrderBy) == true){
+ filter.setOrderByClause(DocumentFilter.ORDER_BY_LAST_UPDATED);
+ }
QueryContext queryContext = new QueryContext(ctx, handler);
try {
}
DocumentModelList docList = null;
if (handler.isCMISQuery() == true) {
- // We have to omit the ORDER BY until we can get the "Document" table bug addressed.
- // CF Nuxeo JIRA NXP-9562
String inList = buildInListForDocTypes(docTypes);
ctx.getQueryParams().add(IQueryManager.SEARCH_RELATED_MATCH_OBJ_DOCTYPES, inList);
docList = getFilteredCMIS(repoSession, ctx, handler, queryContext);
} else {
- if (isClauseEmpty(oldOrderBy) == true){
- filter.setOrderByClause(DocumentFilter.ORDER_BY_LAST_UPDATED);
- }
String query = NuxeoUtils.buildNXQLQuery(docTypes, queryContext);
if (logger.isDebugEnabled()) {
logger.debug("findDocs() NXQL: "+query);
}
// This should be "Document" but CMIS is gagging on that right now.
- ctx.getQueryParams().add(IQueryManager.SELECT_DOC_TYPE_FIELD, "cmis:document");
+ ctx.getQueryParams().add(IQueryManager.SELECT_DOC_TYPE_FIELD, "CollectionSpaceDocument");
// Now we have to issue the search
// findDocs qill build a QueryContext, which wants to see a docType for our context