mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Refactor CMIS property accessors (value / lucene mappers).
- remove notion of generic property accessor; consolidated on named property accessor - build property accessors at time of CMIS Dictionary creation (cached, removes continuous creation of small objects); hooked into CMIS Property Definition - remove property service - lookup of property accessor quicker and constrained to properties in CMIS Dictionary - fixup fallout in CMIS AtomPub, Web Services and Query CMIS AtomPub, Web Services and Query tests pass. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13806 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -33,8 +33,6 @@ import org.alfresco.cmis.CMISJoinEnum;
|
||||
import org.alfresco.cmis.CMISQueryEnum;
|
||||
import org.alfresco.cmis.CMISService;
|
||||
import org.alfresco.cmis.dictionary.CMISDictionaryService;
|
||||
import org.alfresco.cmis.dictionary.CMISMapping;
|
||||
import org.alfresco.cmis.property.CMISPropertyService;
|
||||
import org.alfresco.cmis.search.CMISQueryOptions;
|
||||
import org.alfresco.cmis.search.CMISQueryService;
|
||||
import org.alfresco.cmis.search.CMISResultSet;
|
||||
@@ -55,8 +53,6 @@ public class CMISQueryServiceImpl implements CMISQueryService
|
||||
|
||||
private CMISDictionaryService cmisDictionaryService;
|
||||
|
||||
private CMISPropertyService cmisPropertyService;
|
||||
|
||||
private QueryEngine queryEngine;
|
||||
|
||||
private NodeService nodeService;
|
||||
@@ -65,7 +61,7 @@ public class CMISQueryServiceImpl implements CMISQueryService
|
||||
* @param service
|
||||
* the service to set
|
||||
*/
|
||||
public void setCmisService(CMISService cmisService)
|
||||
public void setCMISService(CMISService cmisService)
|
||||
{
|
||||
this.cmisService = cmisService;
|
||||
}
|
||||
@@ -74,7 +70,7 @@ public class CMISQueryServiceImpl implements CMISQueryService
|
||||
* @param cmisDictionaryService
|
||||
* the cmisDictionaryService to set
|
||||
*/
|
||||
public void setCmisDictionaryService(CMISDictionaryService cmisDictionaryService)
|
||||
public void setCMISDictionaryService(CMISDictionaryService cmisDictionaryService)
|
||||
{
|
||||
this.cmisDictionaryService = cmisDictionaryService;
|
||||
}
|
||||
@@ -97,15 +93,6 @@ public class CMISQueryServiceImpl implements CMISQueryService
|
||||
this.nodeService = nodeService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cmisPropertyService
|
||||
* the cmisPropertyService to set
|
||||
*/
|
||||
public void setCmisPropertyService(CMISPropertyService cmisPropertyService)
|
||||
{
|
||||
this.cmisPropertyService = cmisPropertyService;
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
@@ -123,7 +110,6 @@ public class CMISQueryServiceImpl implements CMISQueryService
|
||||
|
||||
CmisFunctionEvaluationContext functionContext = new CmisFunctionEvaluationContext();
|
||||
functionContext.setCmisDictionaryService(cmisDictionaryService);
|
||||
functionContext.setCmisPropertyService(cmisPropertyService);
|
||||
functionContext.setNodeService(nodeService);
|
||||
|
||||
QueryEngineResults results = queryEngine.executeQuery(query, options, functionContext);
|
||||
@@ -137,7 +123,7 @@ public class CMISQueryServiceImpl implements CMISQueryService
|
||||
wrapped.put(selector, current);
|
||||
}
|
||||
}
|
||||
CMISResultSet cmis = new CMISResultSetImpl(wrapped, options, nodeService, query, cmisDictionaryService, cmisPropertyService);
|
||||
CMISResultSet cmis = new CMISResultSetImpl(wrapped, options, nodeService, query, cmisDictionaryService);
|
||||
return cmis;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user