ItemType - PersistType - public abstract class AbstractWorkflowFormProcessor<ItemType,PersistType> extends ContentModelFormProcessor<ItemType,PersistType>
| Modifier and Type | Field and Description |
|---|---|
protected BehaviourFilter |
behaviourFilter |
protected WorkflowService |
workflowService
WorkflowService
|
associationNamePattern, contentService, dictionaryService, fileFolderService, namespaceService, nodeService, permissionService, propertyNamePattern, transientPropertyPatternfieldProcessorRegistry, filterRegistryactive, DESTINATION, matchPattern, patternMatcher, processorRegistry| Constructor and Description |
|---|
AbstractWorkflowFormProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected List<Field> |
generateDefaultFields(FormCreationData data,
List<String> fieldsToIgnore)
Generates a list of default fields to add if no field names are specified.
|
protected List<Field> |
generateSelectedFields(List<String> fields,
FormCreationData data) |
protected List<String> |
getDefaultIgnoredFields()
|
protected ItemType |
getTypedItem(Item item)
Returns a typed Object representing the given item.
|
protected abstract ItemType |
getTypedItemForDecodedId(String itemId)
Returns the typed item.
|
protected PersistType |
internalPersist(ItemType item,
FormData data)
Persists the form data.
|
protected abstract ContentModelFormPersister<PersistType> |
makeFormPersister(ItemType item)
Returns an implementation of
ContentModelFormPersister which is
used to accumulate all the changes specified in the Form and then persist them. |
protected void |
populateForm(Form form,
List<String> fields,
FormCreationData data)
This method generates all the fields to be added and adds them to the Form, together with the associated field data.
|
void |
setBehaviourFilter(BehaviourFilter behaviourFilter) |
void |
setExtendedPropertyFieldProcessor(ExtendedPropertyFieldProcessor extendedPropertyFieldProcessor) |
void |
setWorkflowService(WorkflowService workflowService) |
addPropertyDataIfRequired, determineDefaultMimetype, getAspectNames, getAssociationValues, getBaseType, getPropertyValues, getTransientValues, makeItemData, persistNode, processAssociationPersist, processContentPropertyPersist, processEncodingPropertyPersist, processMimetypePropertyPersist, processNamePropertyPersist, processPropertyPersist, setContentService, setDictionaryService, setFileFolderService, setNamespaceService, setNodeService, setPermissionServicegenerate, getItemType, getItemURI, getLogger, internalGenerate, persist, setFieldProcessorRegistry, setFilterRegistry, setIgnoredFieldsisActive, isApplicable, register, setActive, setFormItemType, setFormItemUrl, setMatchPattern, setProcessorRegistry, toStringprotected WorkflowService workflowService
protected BehaviourFilter behaviourFilter
protected void populateForm(Form form, List<String> fields, FormCreationData data)
FilteredFormProcessorpopulateForm in class FilteredFormProcessor<ItemType,PersistType>form - The Form to which the fields are added.fields - The names of all the fields to be added.data - FormCreationData used to generate all the fields.protected PersistType internalPersist(ItemType item, FormData data)
FilteredFormProcessorinternalPersist in class FilteredFormProcessor<ItemType,PersistType>item - The object to persist the form fordata - The data to persistprotected List<Field> generateDefaultFields(FormCreationData data, List<String> fieldsToIgnore)
FilteredFormProcessorgenerateDefaultFields in class ContentModelFormProcessor<ItemType,PersistType>data - Used for field creation.fieldsToIgnore - TODOList of Fields which may be empty.protected List<Field> generateSelectedFields(List<String> fields, FormCreationData data)
generateSelectedFields in class FilteredFormProcessor<ItemType,PersistType>public void setWorkflowService(WorkflowService workflowService)
workflowService - the workflowService to setpublic void setBehaviourFilter(BehaviourFilter behaviourFilter)
behaviourFilter - the behaviourFilter to setpublic void setExtendedPropertyFieldProcessor(ExtendedPropertyFieldProcessor extendedPropertyFieldProcessor)
extendedPropertyFieldProcessor - the processor to setprotected ItemType getTypedItem(Item item)
FilteredFormProcessorSubclasses that represent a form type will return a typed object that is then passed to each of it's handlers, the handlers can therefore safely cast the Object to the type they expect.
getTypedItem in class FilteredFormProcessor<ItemType,PersistType>item - The item to get a typed object forprotected List<String> getDefaultIgnoredFields()
FilteredFormProcessorForm is generated with no field names specifically set then a default Form is created.
The default Form contains all the properties and associations related to the Item, excluding a
blacklist of ignored fields which defaults to the return value of this method.
The default ignored values can be overridden by setting the property ignoredFields.getDefaultIgnoredFields in class ContentModelFormProcessor<ItemType,PersistType>Form if no defaultFields property is explicitly set.protected abstract ContentModelFormPersister<PersistType> makeFormPersister(ItemType item)
ContentModelFormPersister which is
used to accumulate all the changes specified in the Form and then persist them.item - ItemTypeCopyright © 2005–2018 Alfresco Software. All rights reserved.