Package org.alfresco.opencmis.mapping
Class RuntimePropertyAccessorMapping
- java.lang.Object
-
- org.alfresco.opencmis.mapping.RuntimePropertyAccessorMapping
-
- All Implemented Interfaces:
org.alfresco.opencmis.dictionary.PropertyAccessorMapping,org.springframework.beans.factory.InitializingBean
public class RuntimePropertyAccessorMapping extends java.lang.Object implements org.alfresco.opencmis.dictionary.PropertyAccessorMapping, org.springframework.beans.factory.InitializingBeanRegistry of property accessors which map the retrieval and setting of properties within Alfresco.- Author:
- davidc
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Loglogger
-
Constructor Summary
Constructors Constructor Description RuntimePropertyAccessorMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()org.alfresco.opencmis.dictionary.CMISPropertyAccessorcreateDirectPropertyAccessor(java.lang.String propertyId, org.alfresco.service.namespace.QName propertyName)Create a direct node property accessorjava.util.Map<org.apache.chemistry.opencmis.commons.enums.Action,org.alfresco.opencmis.dictionary.CMISActionEvaluator>getActionEvaluators(org.apache.chemistry.opencmis.commons.enums.BaseTypeId scope)Gets the Action Evaluators applicable for the given CMIS Scopeorg.alfresco.opencmis.dictionary.CMISPropertyAccessorgetPropertyAccessor(java.lang.String propertyId)Gets a property accessorvoidinit()voidsetCmisConnector(CMISConnector cmisConnector)voidsetCmisDictionaryService(org.alfresco.opencmis.dictionary.CMISDictionaryService cmisDictionaryService)voidsetCmisMapping(org.alfresco.opencmis.mapping.CMISMapping cmisMapping)voidsetServiceRegistry(ServiceRegistry serviceRegistry)
-
-
-
Method Detail
-
setServiceRegistry
public void setServiceRegistry(ServiceRegistry serviceRegistry)
- Parameters:
serviceRegistry- ServiceRegistry
-
setCmisConnector
public void setCmisConnector(CMISConnector cmisConnector)
- Parameters:
cmisConnector- CMISConnector
-
setCmisMapping
public void setCmisMapping(org.alfresco.opencmis.mapping.CMISMapping cmisMapping)
- Parameters:
cmisMapping- CMISMapping
-
setCmisDictionaryService
public void setCmisDictionaryService(org.alfresco.opencmis.dictionary.CMISDictionaryService cmisDictionaryService)
- Parameters:
cmisDictionaryService- CMISDictionaryService
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
init
public void init()
-
getPropertyAccessor
public org.alfresco.opencmis.dictionary.CMISPropertyAccessor getPropertyAccessor(java.lang.String propertyId)
Gets a property accessor- Specified by:
getPropertyAccessorin interfaceorg.alfresco.opencmis.dictionary.PropertyAccessorMapping- Parameters:
propertyId- property id- Returns:
- property accessor
-
createDirectPropertyAccessor
public org.alfresco.opencmis.dictionary.CMISPropertyAccessor createDirectPropertyAccessor(java.lang.String propertyId, org.alfresco.service.namespace.QName propertyName)Create a direct node property accessor- Specified by:
createDirectPropertyAccessorin interfaceorg.alfresco.opencmis.dictionary.PropertyAccessorMapping- Parameters:
propertyId- property idpropertyName- node property name- Returns:
- property accessor
-
getActionEvaluators
public java.util.Map<org.apache.chemistry.opencmis.commons.enums.Action,org.alfresco.opencmis.dictionary.CMISActionEvaluator> getActionEvaluators(org.apache.chemistry.opencmis.commons.enums.BaseTypeId scope)
Gets the Action Evaluators applicable for the given CMIS Scope- Specified by:
getActionEvaluatorsin interfaceorg.alfresco.opencmis.dictionary.PropertyAccessorMapping- Parameters:
scope- BaseTypeId
-
-