org.alfresco.repo.forms.processor.node
Class AssociationFieldProcessor
java.lang.Object
org.alfresco.repo.forms.processor.AbstractFieldProcessor
org.alfresco.repo.forms.processor.node.QNameFieldProcessor
org.alfresco.repo.forms.processor.node.AssociationFieldProcessor
- All Implemented Interfaces:
- FieldProcessor
public class AssociationFieldProcessor
- extends QNameFieldProcessor
- Since:
- 3.4
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssociationFieldProcessor
public AssociationFieldProcessor()
AssociationFieldProcessor
public AssociationFieldProcessor(org.alfresco.service.namespace.NamespaceService namespaceService,
org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
getLogger
protected org.apache.commons.logging.Log getLogger()
- Specified by:
getLogger in class AbstractFieldProcessor
- Returns:
- a
Log used to log events that occur while processing fields.
getGroup
protected FieldGroup getGroup(org.alfresco.service.cmr.dictionary.AssociationDefinition assocDef)
- Specified by:
getGroup in class QNameFieldProcessor
makeField
public Field makeField(org.alfresco.service.cmr.dictionary.AssociationDefinition assocDef,
java.lang.Object value,
FieldGroup group)
- Specified by:
makeField in class QNameFieldProcessor
getValue
protected java.lang.Object getValue(org.alfresco.service.namespace.QName name,
ContentModelItemData data)
- Gets the associated value from the
ContentModelItemData.
If the value is null the method returns an empty List.
If the value is a single Object (assumed to be a NodeRef) it returns a List containing a String representation of that object.
If the value is a Collection of Objects, returns a List containing String representations of all the objects.
- Specified by:
getValue in class QNameFieldProcessor
- Returns:
- An
ArrayList of Strings or null.
makeAssociationFieldDefinition
public AssociationFieldDefinition makeAssociationFieldDefinition(org.alfresco.service.cmr.dictionary.AssociationDefinition assocDef,
FieldGroup group)
getRegistryKey
protected java.lang.String getRegistryKey()
- Specified by:
getRegistryKey in class AbstractFieldProcessor
- Returns:
- a
String key used to identify this FieldProcessor in a FieldProcessorRegistry.
getTypeDefinition
protected org.alfresco.service.cmr.dictionary.AssociationDefinition getTypeDefinition(org.alfresco.service.namespace.QName fullName,
ContentModelItemData itemData,
boolean isForcedField)
- Specified by:
getTypeDefinition in class QNameFieldProcessor
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.