public class AssociationFieldProcessor extends QNameFieldProcessor<AssociationDefinition>
FieldProcessor implementation that handles associations.dictionaryService, namespaceService| Constructor and Description |
|---|
AssociationFieldProcessor() |
AssociationFieldProcessor(NamespaceService namespaceService,
DictionaryService dictionaryService) |
| Modifier and Type | Method and Description |
|---|---|
protected FieldGroup |
getGroup(AssociationDefinition assocDef) |
protected org.apache.commons.logging.Log |
getLogger() |
protected String |
getRegistryKey() |
protected AssociationDefinition |
getTypeDefinition(QName fullName,
ContentModelItemData<?> itemData,
boolean isForcedField) |
protected Object |
getValue(QName name,
ContentModelItemData<?> data)
Gets the associated value from the
ContentModelItemData. |
AssociationFieldDefinition |
makeAssociationFieldDefinition(AssociationDefinition assocDef,
FieldGroup group) |
Field |
makeField(AssociationDefinition assocDef,
Object value,
FieldGroup group) |
generateField, generateTypedField, getExpectedDataType, getFullName, getPrefixedName, makeDataKeyForName, populateFieldDefinition, setDictionaryService, setNamespaceServicegenerateField, setFieldProcessorRegistrypublic AssociationFieldProcessor()
public AssociationFieldProcessor(NamespaceService namespaceService, DictionaryService dictionaryService)
protected org.apache.commons.logging.Log getLogger()
getLogger in class AbstractFieldProcessor<ContentModelItemData<?>>Log used to log events that occur while processing fields.protected FieldGroup getGroup(AssociationDefinition assocDef)
getGroup in class QNameFieldProcessor<AssociationDefinition>public Field makeField(AssociationDefinition assocDef, Object value, FieldGroup group)
makeField in class QNameFieldProcessor<AssociationDefinition>protected Object getValue(QName name, ContentModelItemData<?> data)
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.getValue in class QNameFieldProcessor<AssociationDefinition>ArrayList of Strings or null.public AssociationFieldDefinition makeAssociationFieldDefinition(AssociationDefinition assocDef, FieldGroup group)
protected String getRegistryKey()
getRegistryKey in class AbstractFieldProcessor<ContentModelItemData<?>>String key used to identify this FieldProcessor in a FieldProcessorRegistry.protected AssociationDefinition getTypeDefinition(QName fullName, ContentModelItemData<?> itemData, boolean isForcedField)
getTypeDefinition in class QNameFieldProcessor<AssociationDefinition>Copyright © 2005–2020 Alfresco Software. All rights reserved.