Type - public abstract class QNameFieldProcessor<Type extends org.alfresco.service.cmr.dictionary.ClassAttributeDefinition> extends AbstractFieldProcessor<ContentModelItemData<?>>
FieldProcessor implementation that handles QName fields.| Modifier and Type | Field and Description |
|---|---|
protected org.alfresco.service.cmr.dictionary.DictionaryService |
dictionaryService |
protected org.alfresco.service.namespace.NamespaceService |
namespaceService |
| Constructor and Description |
|---|
QNameFieldProcessor() |
QNameFieldProcessor(org.alfresco.service.namespace.NamespaceService namespaceService,
org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
| Modifier and Type | Method and Description |
|---|---|
Field |
generateField(org.alfresco.service.namespace.QName fullName,
ContentModelItemData<?> itemData,
boolean isForcedField) |
protected Field |
generateTypedField(String fieldName,
FormCreationData formData,
ContentModelItemData<?> typedData)
The method which actually creates the
Field. |
protected Class<ContentModelItemData<?>> |
getExpectedDataType() |
protected org.alfresco.service.namespace.QName |
getFullName(String name) |
protected abstract FieldGroup |
getGroup(Type typeDef) |
protected String |
getPrefixedName(org.alfresco.service.cmr.dictionary.ClassAttributeDefinition attribDef) |
protected abstract Type |
getTypeDefinition(org.alfresco.service.namespace.QName fullName,
ContentModelItemData<?> itemData,
boolean isForcedField) |
protected abstract Object |
getValue(org.alfresco.service.namespace.QName fullName,
ContentModelItemData<?> itemData) |
protected String |
makeDataKeyForName(String propName,
String prefix) |
protected abstract Field |
makeField(Type typeDef,
Object value,
FieldGroup group) |
protected void |
populateFieldDefinition(Type attribDef,
FieldDefinition fieldDef,
FieldGroup group,
String dataKeyPrefix)
Sets several properties on the
FieldDefinition, including name,
label, description, dataKeyName and whether the field is protected. |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
generateField, getLogger, getRegistryKey, setFieldProcessorRegistryprotected org.alfresco.service.namespace.NamespaceService namespaceService
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
public QNameFieldProcessor()
public QNameFieldProcessor(org.alfresco.service.namespace.NamespaceService namespaceService,
org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
protected Field generateTypedField(String fieldName, FormCreationData formData, ContentModelItemData<?> typedData)
AbstractFieldProcessorField.generateTypedField in class AbstractFieldProcessor<ContentModelItemData<?>>fieldName - the name of the Field to be genereated.formData - TODOtypedData - the data used to create the field.Field or null.protected org.alfresco.service.namespace.QName getFullName(String name)
protected String getPrefixedName(org.alfresco.service.cmr.dictionary.ClassAttributeDefinition attribDef)
public Field generateField(org.alfresco.service.namespace.QName fullName, ContentModelItemData<?> itemData, boolean isForcedField)
protected void populateFieldDefinition(Type attribDef, FieldDefinition fieldDef, FieldGroup group, String dataKeyPrefix)
FieldDefinition, including name,
label, description, dataKeyName and whether the field is protected. These
values are derived from the attribDef parameter.attribDef - Used to set the values of name, description, label,
dataKeyName and isProtected properties on the returned object.fieldDef - A factory object used to create the FieldDefinition to be
returned.group - Used to set the group on the returned FieldDefinition.protected Class<ContentModelItemData<?>> getExpectedDataType()
getExpectedDataType in class AbstractFieldProcessor<ContentModelItemData<?>>Class of the data parameter for the method generateField.public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
namespaceService - the namespaceService to setpublic void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService - the dictionaryService to setprotected abstract Field makeField(Type typeDef, Object value, FieldGroup group)
protected abstract FieldGroup getGroup(Type typeDef)
protected abstract Object getValue(org.alfresco.service.namespace.QName fullName, ContentModelItemData<?> itemData)
protected abstract Type getTypeDefinition(org.alfresco.service.namespace.QName fullName, ContentModelItemData<?> itemData, boolean isForcedField)
Copyright © 2005–2018 Alfresco Software. All rights reserved.