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:
David Caruana
2009-04-02 12:06:26 +00:00
parent f46c97873e
commit 0f33af5dc1
13 changed files with 43 additions and 68 deletions

View File

@@ -26,7 +26,7 @@ package org.alfresco.repo.cmis.rest;
import java.util.List;
import org.alfresco.cmis.property.CMISPropertyService;
import org.alfresco.cmis.CMISService;
import org.alfresco.repo.template.TemplateNode;
import freemarker.ext.beans.BeanModel;
@@ -45,14 +45,14 @@ import freemarker.template.TemplateScalarModel;
*/
public final class CMISPropertyValueMethod implements TemplateMethodModelEx
{
private CMISPropertyService propertyService;
private CMISService cmisService;
/**
* Construct
*/
public CMISPropertyValueMethod(CMISPropertyService propertyService)
public CMISPropertyValueMethod(CMISService cmisService)
{
this.propertyService = propertyService;
this.cmisService = cmisService;
}
/**
@@ -85,7 +85,7 @@ public final class CMISPropertyValueMethod implements TemplateMethodModelEx
}
// retrieve property value
result = propertyService.getProperty(node.getNodeRef(), propertyName);
result = cmisService.getProperty(node.getNodeRef(), propertyName);
}
}