|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.domain.node.NodePropertyHelper
public class NodePropertyHelper
This class provides services for translating exploded properties (as persisted in alf_node_properties) in the public form, which is a Map of values keyed by their QName.
Constructor Summary | |
---|---|
NodePropertyHelper(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
QNameDAO qnameDAO,
LocaleDAO localeDAO,
ContentDataDAO contentDataDAO)
Construct the helper with the appropriate DAOs and services |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodePropertyHelper(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, QNameDAO qnameDAO, LocaleDAO localeDAO, ContentDataDAO contentDataDAO)
Method Detail |
---|
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 null
public 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 property
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |