Class ContentModelItemData<ItemType>

  • All Implemented Interfaces:
    TransientValueGetter

    public class ContentModelItemData<ItemType>
    extends Object
    implements TransientValueGetter
    Simple data transfer object used by the ContentModelFormProcessor and its descendants.
    Since:
    3.4
    Author:
    Nick Smith
    • Constructor Detail

      • ContentModelItemData

        public ContentModelItemData​(ItemType item,
                                    Map<org.alfresco.service.namespace.QName,​org.alfresco.service.cmr.dictionary.PropertyDefinition> propDefs,
                                    Map<org.alfresco.service.namespace.QName,​org.alfresco.service.cmr.dictionary.AssociationDefinition> assocDefs,
                                    Map<org.alfresco.service.namespace.QName,​Serializable> propValues,
                                    Map<org.alfresco.service.namespace.QName,​Serializable> assocValues,
                                    Map<String,​Object> transientValues)
    • Method Detail

      • getItem

        public ItemType getItem()
        Returns:
        the item
      • getPropertyValue

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

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

        public Object getTransientValue​(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 Collection<org.alfresco.service.namespace.QName> getAllAssociationDefinitionNames()
        Returns:
        Returns an unmodifiable Collection containing all the association definition QNames for the item.
      • getAllPropertyDefinitionNames

        public Collection<org.alfresco.service.namespace.QName> getAllPropertyDefinitionNames()
        Returns:
        Returns an unmodifiable Collection containing all the property definitions for the item.
      • getAllTransientFieldNames

        public Collection<String> getAllTransientFieldNames()
        Returns:
        Returns an unmodifiable Collection containing all the property definitions for the item.