org.alfresco.repo.forms.processor.node
Class ContentModelItemData

java.lang.Object
  extended by org.alfresco.repo.forms.processor.node.ContentModelItemData
All Implemented Interfaces:
TransientValueGetter

public class ContentModelItemData
extends java.lang.Object
implements TransientValueGetter

Simple data transfer object used by the ContentModelFormProcessor and its descendants.

Since:
3.4

Constructor Summary
ContentModelItemData(java.lang.Object item, java.util.Map propDefs, java.util.Map assocDefs, java.util.Map propValues, java.util.Map assocValues, java.util.Map transientValues)
           
 
Method Summary
 java.util.Collection getAllAssociationDefinitionNames()
           
 java.util.Collection getAllPropertyDefinitionNames()
           
 java.util.Collection getAllTransientFieldNames()
           
 org.alfresco.service.cmr.dictionary.AssociationDefinition getAssociationDefinition(org.alfresco.service.namespace.QName assocName)
           
 java.io.Serializable getAssociationValue(org.alfresco.service.namespace.QName key)
           
 java.lang.Object getItem()
           
 org.alfresco.service.cmr.dictionary.PropertyDefinition getPropertyDefinition(org.alfresco.service.namespace.QName propName)
           
 java.io.Serializable getPropertyValue(org.alfresco.service.namespace.QName key)
           
 java.lang.Object getTransientValue(java.lang.String fieldName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentModelItemData

public ContentModelItemData(java.lang.Object item,
                            java.util.Map propDefs,
                            java.util.Map assocDefs,
                            java.util.Map propValues,
                            java.util.Map assocValues,
                            java.util.Map transientValues)
Method Detail

getItem

public java.lang.Object 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 getAllAssociationDefinitionNames()
Returns:
Returns an unmodifiable Collection containing all the association definition QNames for the item.

getAllPropertyDefinitionNames

public java.util.Collection getAllPropertyDefinitionNames()
Returns:
Returns an unmodifiable Collection containing all the property definitions for the item.

getAllTransientFieldNames

public java.util.Collection getAllTransientFieldNames()
Returns:
Returns an unmodifiable Collection containing all the property definitions for the item.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.