public class NodePropertyHelper
extends java.lang.Object
| Constructor and Description |
|---|
NodePropertyHelper(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
QNameDAO qnameDAO,
LocaleDAO localeDAO,
ContentDataDAO contentDataDAO)
Construct the helper with the appropriate DAOs and services
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map |
convertToPersistentProperties(java.util.Map in) |
java.util.Map |
convertToPublicProperties(java.util.Map propertyValues) |
java.io.Serializable |
getPublicProperty(java.util.Map propertyValues,
org.alfresco.service.namespace.QName propertyQName) |
NodePropertyValue |
makeNodePropertyValue(org.alfresco.service.cmr.dictionary.PropertyDefinition propertyDef,
java.io.Serializable value)
Helper method to convert the
Serializable value into a full, persistable NodePropertyValue. |
java.io.Serializable |
makeSerializableValue(org.alfresco.service.cmr.dictionary.PropertyDefinition propertyDef,
NodePropertyValue propertyValue)
Extracts the externally-visible property from the persistable value.
|
public NodePropertyHelper(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
QNameDAO qnameDAO,
LocaleDAO localeDAO,
ContentDataDAO contentDataDAO)
public java.util.Map convertToPersistentProperties(java.util.Map in)
public NodePropertyValue makeNodePropertyValue(org.alfresco.service.cmr.dictionary.PropertyDefinition propertyDef, java.io.Serializable value)
Serializable value into a full, persistable NodePropertyValue.
Where the property definition is null, the value will take on the generic ANY
value.
Collections are NOT supported. These must be split up by the calling code before calling this method. Map instances are supported as plain serializable instances.
propertyDef - the property dictionary definition, may be nullvalue - the value, which will be converted according to the definition - may be nullpublic java.io.Serializable getPublicProperty(java.util.Map propertyValues,
org.alfresco.service.namespace.QName propertyQName)
public java.util.Map convertToPublicProperties(java.util.Map propertyValues)
public java.io.Serializable makeSerializableValue(org.alfresco.service.cmr.dictionary.PropertyDefinition propertyDef,
NodePropertyValue propertyValue)
propertyDef - the model property definition - may be nullpropertyValue - the persisted propertyCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.