org.alfresco.cmis.mapping
Class DirectProperty

java.lang.Object
  extended by org.alfresco.cmis.mapping.AbstractProperty
      extended by org.alfresco.cmis.mapping.AbstractSimpleProperty
          extended by org.alfresco.cmis.mapping.DirectProperty
All Implemented Interfaces:
CMISPropertyAccessor, org.alfresco.opencmis.dictionary.CMISPropertyLuceneBuilder

public class DirectProperty
extends AbstractSimpleProperty

A simple 1-1 property mapping from a CMIS property name to an alfresco property


Constructor Summary
DirectProperty(ServiceRegistry serviceRegistry, java.lang.String propertyName, org.alfresco.service.namespace.QName alfrescoName)
          Construct
 
Method Summary
protected  org.alfresco.service.cmr.dictionary.DataTypeDefinition getInDataType()
           
 java.lang.String getLuceneFieldName()
           
 java.lang.String getLuceneSortField(org.alfresco.repo.search.impl.lucene.AbstractLuceneQueryParser lqp)
           
 org.alfresco.service.namespace.QName getMappedProperty()
          Get the (directly) mapped Alfresco property (if a direct mapping exists)
protected  org.alfresco.service.namespace.QName getQNameForExists()
           
protected  java.lang.String getRangeMax()
           
protected  java.lang.String getRangeMin()
           
 java.io.Serializable getValue(org.alfresco.service.cmr.repository.AssociationRef assocRef)
          Get the property value for an association
 java.io.Serializable getValue(org.alfresco.service.cmr.repository.NodeRef nodeRef)
          Get the property value for a node or an association
protected  java.lang.String getValueAsString(java.io.Serializable value)
           
 
Methods inherited from class org.alfresco.cmis.mapping.AbstractSimpleProperty
buildLuceneEquality, buildLuceneExists, buildLuceneGreaterThan, buildLuceneGreaterThanOrEquals, buildLuceneIn, buildLuceneInequality, buildLuceneLessThan, buildLuceneLessThanOrEquals, buildLuceneLike
 
Methods inherited from class org.alfresco.cmis.mapping.AbstractProperty
getName, getServiceRegistry, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectProperty

public DirectProperty(ServiceRegistry serviceRegistry,
                      java.lang.String propertyName,
                      org.alfresco.service.namespace.QName alfrescoName)
Construct

Parameters:
serviceRegistry -
propertyName -
alfrescoName -
Method Detail

getRangeMax

protected java.lang.String getRangeMax()
Overrides:
getRangeMax in class AbstractSimpleProperty

getRangeMin

protected java.lang.String getRangeMin()
Overrides:
getRangeMin in class AbstractSimpleProperty

getLuceneSortField

public java.lang.String getLuceneSortField(org.alfresco.repo.search.impl.lucene.AbstractLuceneQueryParser lqp)
Specified by:
getLuceneSortField in interface org.alfresco.opencmis.dictionary.CMISPropertyLuceneBuilder
Overrides:
getLuceneSortField in class AbstractSimpleProperty

getMappedProperty

public org.alfresco.service.namespace.QName getMappedProperty()
Description copied from interface: CMISPropertyAccessor
Get the (directly) mapped Alfresco property (if a direct mapping exists)

Specified by:
getMappedProperty in interface CMISPropertyAccessor
Overrides:
getMappedProperty in class AbstractProperty
Returns:

getValue

public java.io.Serializable getValue(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Description copied from interface: CMISPropertyAccessor
Get the property value for a node or an association

Specified by:
getValue in interface CMISPropertyAccessor
Overrides:
getValue in class AbstractProperty
Returns:

getValue

public java.io.Serializable getValue(org.alfresco.service.cmr.repository.AssociationRef assocRef)
Description copied from interface: CMISPropertyAccessor
Get the property value for an association

Specified by:
getValue in interface CMISPropertyAccessor
Overrides:
getValue in class AbstractProperty
Returns:

getLuceneFieldName

public java.lang.String getLuceneFieldName()
Specified by:
getLuceneFieldName in interface org.alfresco.opencmis.dictionary.CMISPropertyLuceneBuilder
Overrides:
getLuceneFieldName in class AbstractProperty

getValueAsString

protected java.lang.String getValueAsString(java.io.Serializable value)
Specified by:
getValueAsString in class AbstractSimpleProperty

getQNameForExists

protected org.alfresco.service.namespace.QName getQNameForExists()
Specified by:
getQNameForExists in class AbstractSimpleProperty

getInDataType

protected org.alfresco.service.cmr.dictionary.DataTypeDefinition getInDataType()
Specified by:
getInDataType in class AbstractSimpleProperty


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.