Class ContentModelItemData<ItemType>
java.lang.Object
org.alfresco.repo.forms.processor.node.ContentModelItemData<ItemType>
- All Implemented Interfaces:
TransientValueGetter
Simple data transfer object used by the ContentModelFormProcessor and its descendants.
- Since:
- 3.4
- Author:
- Nick Smith
-
Constructor Summary
ConstructorsConstructorDescriptionContentModelItemData(ItemType item, Map<QName, PropertyDefinition> propDefs, Map<QName, AssociationDefinition> assocDefs, Map<QName, Serializable> propValues, Map<QName, Serializable> assocValues, Map<String, Object> transientValues) -
Method Summary
Modifier and TypeMethodDescriptiongetAssociationDefinition(QName assocName) getAssociationValue(QName key) getItem()getPropertyDefinition(QName propName) getPropertyValue(QName key) getTransientValue(String fieldName)
-
Constructor Details
-
ContentModelItemData
public ContentModelItemData(ItemType item, Map<QName, PropertyDefinition> propDefs, Map<QName, AssociationDefinition> assocDefs, Map<QName, Serializable> propValues, Map<QName, Serializable> assocValues, Map<String, Object> transientValues)
-
-
Method Details
-
getItem
- Returns:
- the item
-
getPropertyValue
- Returns:
- the property value associated with the
keyornullif none exists.
-
getAssociationValue
- Returns:
- the association value associated with the
keyornullif none exists.
-
getTransientValue
- Specified by:
getTransientValuein interfaceTransientValueGetter- Returns:
- the value associated with the transient property specified by the fieldName or
nullif none exists.
-
getPropertyDefinition
- Returns:
- The PropertyDefinition associated with the
propNameornullif none exists.
-
getAssociationDefinition
- Returns:
- The AssociationDefinition associated with the
assocNameornullif none exists.
-
getAllAssociationDefinitionNames
- Returns:
- Returns an unmodifiable Collection containing all the association definition
QNamesfor the item.
-
getAllPropertyDefinitionNames
- Returns:
- Returns an unmodifiable Collection containing all the property definitions for the item.
-
getAllTransientFieldNames
- Returns:
- Returns an unmodifiable Collection containing all the property definitions for the item.
-