Class 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)  
    • 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 key or null if none exists.
      • getAssociationValue

        public java.io.Serializable getAssociationValue​(org.alfresco.service.namespace.QName key)
        Returns:
        the association value associated with the key or null if none exists.
      • getTransientValue

        public java.lang.Object getTransientValue​(java.lang.String fieldName)
        Specified by:
        getTransientValue in interface TransientValueGetter
        Returns:
        the value associated with the transient property specified by the fieldName or null if none exists.
      • getPropertyDefinition

        public org.alfresco.service.cmr.dictionary.PropertyDefinition getPropertyDefinition​(org.alfresco.service.namespace.QName propName)
        Returns:
        The PropertyDefinition associated with the propName or null if none exists.
      • getAssociationDefinition

        public org.alfresco.service.cmr.dictionary.AssociationDefinition getAssociationDefinition​(org.alfresco.service.namespace.QName assocName)
        Returns:
        The AssociationDefinition associated with the assocName or null if none exists.
      • getAllAssociationDefinitionNames

        public java.util.Collection<org.alfresco.service.namespace.QName> getAllAssociationDefinitionNames()
        Returns:
        Returns an unmodifiable Collection containing all the association definition QNames for 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.