public abstract class AbstractWorkflowFormProcessor extends ContentModelFormProcessor
| Modifier and Type | Field and Description |
|---|---|
protected BehaviourFilter |
behaviourFilter |
protected WorkflowService |
workflowService
WorkflowService
|
associationNamePattern, contentService, dictionaryService, fileFolderService, namespaceService, nodeService, propertyNamePattern, transientPropertyPatternfieldProcessorRegistry, filterRegistryactive, DESTINATION, matchPattern, patternMatcher, processorRegistry| Constructor and Description |
|---|
AbstractWorkflowFormProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List |
getDefaultIgnoredFields()
|
protected java.lang.Object |
getTypedItem(Item item)
Returns a typed Object representing the given item.
|
protected abstract java.lang.Object |
getTypedItemForDecodedId(java.lang.String itemId)
Returns the typed item.
|
protected java.lang.Object |
internalPersist(java.lang.Object item,
FormData data)
Persists the form data.
|
protected abstract ContentModelFormPersister |
makeFormPersister(java.lang.Object 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,
java.util.List 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 |
setWorkflowService(WorkflowService workflowService) |
addPropertyDataIfRequired, determineDefaultMimetype, generateDefaultFields, getAspectNames, getAssociationValues, getBaseType, getPropertyValues, getTransientValues, makeItemData, persistNode, processAssociationPersist, processContentPropertyPersist, processEncodingPropertyPersist, processMimetypePropertyPersist, processNamePropertyPersist, processPropertyPersist, setContentService, setDictionaryService, setFileFolderService, setNamespaceService, setNodeServicegenerate, generateSelectedFields, 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, java.util.List fields, FormCreationData data)
FilteredFormProcessorpopulateForm in class FilteredFormProcessorform - 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 java.lang.Object internalPersist(java.lang.Object item,
FormData data)
FilteredFormProcessorinternalPersist in class FilteredFormProcessoritem - The object to persist the form fordata - The data to persistpublic void setWorkflowService(WorkflowService workflowService)
workflowService - the workflowService to setpublic void setBehaviourFilter(BehaviourFilter behaviourFilter)
behaviourFilter - the behaviourFilter to setprotected java.lang.Object 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 FilteredFormProcessoritem - The item to get a typed object forprotected java.util.List 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 ContentModelFormProcessorForm if no defaultFields property is explicitly set.protected abstract ContentModelFormPersister makeFormPersister(java.lang.Object item)
ContentModelFormPersister which is
used to accumulate all the changes specified in the Form and then persist them.item - protected abstract java.lang.Object getTypedItemForDecodedId(java.lang.String itemId)
itemId - the decoded item Id.Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.