Class ContentModelItemData<ItemType>
- java.lang.Object
-
- org.alfresco.repo.forms.processor.node.ContentModelItemData<ItemType>
-
- All Implemented Interfaces:
TransientValueGetter
public class ContentModelItemData<ItemType> extends java.lang.Object implements TransientValueGetter
Simple data transfer object used by the ContentModelFormProcessor and its descendants.- Since:
- 3.4
- Author:
- Nick Smith
-
-
Constructor Summary
Constructors Constructor Description ContentModelItemData(ItemType item, java.util.Map<org.alfresco.service.namespace.QName,org.alfresco.service.cmr.dictionary.PropertyDefinition> propDefs, java.util.Map<org.alfresco.service.namespace.QName,org.alfresco.service.cmr.dictionary.AssociationDefinition> assocDefs, java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> propValues, java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> assocValues, java.util.Map<java.lang.String,java.lang.Object> transientValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<org.alfresco.service.namespace.QName>getAllAssociationDefinitionNames()java.util.Collection<org.alfresco.service.namespace.QName>getAllPropertyDefinitionNames()java.util.Collection<java.lang.String>getAllTransientFieldNames()org.alfresco.service.cmr.dictionary.AssociationDefinitiongetAssociationDefinition(org.alfresco.service.namespace.QName assocName)java.io.SerializablegetAssociationValue(org.alfresco.service.namespace.QName key)ItemTypegetItem()org.alfresco.service.cmr.dictionary.PropertyDefinitiongetPropertyDefinition(org.alfresco.service.namespace.QName propName)java.io.SerializablegetPropertyValue(org.alfresco.service.namespace.QName key)java.lang.ObjectgetTransientValue(java.lang.String fieldName)
-
-
-
Constructor Detail
-
ContentModelItemData
public ContentModelItemData(ItemType item, java.util.Map<org.alfresco.service.namespace.QName,org.alfresco.service.cmr.dictionary.PropertyDefinition> propDefs, java.util.Map<org.alfresco.service.namespace.QName,org.alfresco.service.cmr.dictionary.AssociationDefinition> assocDefs, java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> propValues, java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> assocValues, java.util.Map<java.lang.String,java.lang.Object> transientValues)
-
-
Method Detail
-
getItem
public ItemType getItem()
- Returns:
- the item
-
getPropertyValue
public java.io.Serializable getPropertyValue(org.alfresco.service.namespace.QName key)
- Returns:
- the property value associated with the
keyornullif none exists.
-
getAssociationValue
public java.io.Serializable getAssociationValue(org.alfresco.service.namespace.QName key)
- Returns:
- the association value associated with the
keyornullif none exists.
-
getTransientValue
public java.lang.Object getTransientValue(java.lang.String fieldName)
- Specified by:
getTransientValuein interfaceTransientValueGetter- Returns:
- the value associated with the transient property specified by the
fieldName or
nullif none exists.
-
getPropertyDefinition
public org.alfresco.service.cmr.dictionary.PropertyDefinition getPropertyDefinition(org.alfresco.service.namespace.QName propName)
- Returns:
- The PropertyDefinition associated with the
propNameornullif none exists.
-
getAssociationDefinition
public org.alfresco.service.cmr.dictionary.AssociationDefinition getAssociationDefinition(org.alfresco.service.namespace.QName assocName)
- Returns:
- The AssociationDefinition associated with the
assocNameornullif none exists.
-
getAllAssociationDefinitionNames
public java.util.Collection<org.alfresco.service.namespace.QName> getAllAssociationDefinitionNames()
- Returns:
- Returns an unmodifiable Collection containing all the association
definition
QNamesfor the item.
-
getAllPropertyDefinitionNames
public java.util.Collection<org.alfresco.service.namespace.QName> getAllPropertyDefinitionNames()
- Returns:
- Returns an unmodifiable Collection containing all the property definitions for the item.
-
getAllTransientFieldNames
public java.util.Collection<java.lang.String> getAllTransientFieldNames()
- Returns:
- Returns an unmodifiable Collection containing all the property definitions for the item.
-
-