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, 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, QName alfrescoName)
          Construct
 
Method Summary
protected  DataTypeDefinition getInDataType()
           
 java.lang.String getLuceneFieldName()
           
 java.lang.String getLuceneSortField(LuceneQueryParser lqp)
           
 QName getMappedProperty()
          Get the (directly) mapped Alfresco property (if a direct mapping exists)
protected  QName getQNameForExists()
           
 java.io.Serializable getValue(AssociationRef assocRef)
          Get the property value for an association
 java.io.Serializable getValue(NodeRef nodeRef)
          Get the property value for a node
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, getRangeMax, getRangeMin
 
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,
                      QName alfrescoName)
Construct

Parameters:
serviceRegistry -
propertyName -
alfrescoName -
Method Detail

getLuceneSortField

public java.lang.String getLuceneSortField(LuceneQueryParser lqp)
Specified by:
getLuceneSortField in interface CMISPropertyLuceneBuilder
Overrides:
getLuceneSortField in class AbstractSimpleProperty
Parameters:
lqp - TODO
Returns:
the sort field

getMappedProperty

public 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(NodeRef nodeRef)
Description copied from interface: CMISPropertyAccessor
Get the property value for a node

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

getValue

public java.io.Serializable getValue(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 CMISPropertyLuceneBuilder
Overrides:
getLuceneFieldName in class AbstractProperty
Returns:
the field name

getValueAsString

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

getQNameForExists

protected QName getQNameForExists()
Specified by:
getQNameForExists in class AbstractSimpleProperty

getInDataType

protected DataTypeDefinition getInDataType()
Specified by:
getInDataType in class AbstractSimpleProperty


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