Class WorkflowFormProcessor
java.lang.Object
org.alfresco.repo.forms.processor.AbstractFormProcessor
org.alfresco.repo.forms.processor.FilteredFormProcessor<ItemType,PersistType>
org.alfresco.repo.forms.processor.node.ContentModelFormProcessor<ItemType,PersistType>
org.alfresco.repo.forms.processor.workflow.AbstractWorkflowFormProcessor<WorkflowDefinition,WorkflowInstance>
org.alfresco.repo.forms.processor.workflow.WorkflowFormProcessor
- All Implemented Interfaces:
FormProcessor
public class WorkflowFormProcessor
extends AbstractWorkflowFormProcessor<WorkflowDefinition,WorkflowInstance>
FormProcessor implementation that can generate and persist Form objects for workflow definitions.
- Since:
- 3.4
- Author:
- Nick Smith
-
Field Summary
Fields inherited from class org.alfresco.repo.forms.processor.workflow.AbstractWorkflowFormProcessor
behaviourFilter, workflowServiceFields inherited from class org.alfresco.repo.forms.processor.node.ContentModelFormProcessor
associationNamePattern, contentService, dictionaryService, fileFolderService, namespaceService, nodeService, permissionService, propertyNamePattern, transientPropertyPatternFields inherited from class org.alfresco.repo.forms.processor.FilteredFormProcessor
fieldProcessorRegistry, filterRegistryFields inherited from class org.alfresco.repo.forms.processor.AbstractFormProcessor
active, DESTINATION, matchPattern, patternMatcher, processorRegistry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<QName,Serializable> protected TypeDefinitionprotected StringReturns aStringdescribing the type fo the specified item.protected StringgetItemURI(WorkflowDefinition item) Returns the URI location of the specified item.protected org.apache.commons.logging.LogRetrieves a logger instance to log to.protected Map<QName,Serializable> protected WorkflowDefinitiongetTypedItemForDecodedId(String itemId) Returns the typed item.protected ContentModelFormPersister<WorkflowInstance>Returns an implementation ofContentModelFormPersisterwhich is used to accumulate all the changes specified in theFormand then persist them.Methods inherited from class org.alfresco.repo.forms.processor.workflow.AbstractWorkflowFormProcessor
generateDefaultFields, generateSelectedFields, getTypedItem, internalPersist, populateForm, setBehaviourFilter, setExtendedPropertyFieldProcessor, setWorkflowServiceMethods inherited from class org.alfresco.repo.forms.processor.node.ContentModelFormProcessor
addPropertyDataIfRequired, determineDefaultMimetype, getAspectNames, makeItemData, persistNode, processAssociationPersist, processContentPropertyPersist, processEncodingPropertyPersist, processMimetypePropertyPersist, processNamePropertyPersist, processPropertyPersist, setContentService, setDictionaryService, setFileFolderService, setNamespaceService, setNodeService, setPermissionServiceMethods inherited from class org.alfresco.repo.forms.processor.FilteredFormProcessor
generate, internalGenerate, persist, setFieldProcessorRegistry, setFilterRegistry, setIgnoredFieldsMethods inherited from class org.alfresco.repo.forms.processor.AbstractFormProcessor
isActive, isApplicable, register, setActive, setFormItemType, setFormItemUrl, setMatchPattern, setProcessorRegistry, toString
-
Constructor Details
-
WorkflowFormProcessor
public WorkflowFormProcessor()
-
-
Method Details
-
getAssociationValues
- Specified by:
getAssociationValuesin classContentModelFormProcessor<WorkflowDefinition,WorkflowInstance>
-
getBaseType
- Specified by:
getBaseTypein classContentModelFormProcessor<WorkflowDefinition,WorkflowInstance>
-
getPropertyValues
- Specified by:
getPropertyValuesin classContentModelFormProcessor<WorkflowDefinition,WorkflowInstance>
-
getTransientValues
- Specified by:
getTransientValuesin classContentModelFormProcessor<WorkflowDefinition,WorkflowInstance>
-
getItemType
Description copied from class:FilteredFormProcessorReturns aStringdescribing the type fo the specified item.- Specified by:
getItemTypein classFilteredFormProcessor<WorkflowDefinition,WorkflowInstance> - Parameters:
item- ItemType- Returns:
- String
-
getItemURI
Description copied from class:FilteredFormProcessorReturns the URI location of the specified item.- Specified by:
getItemURIin classFilteredFormProcessor<WorkflowDefinition,WorkflowInstance> - Parameters:
item- ItemType- Returns:
- String
-
getLogger
protected org.apache.commons.logging.Log getLogger()Description copied from class:FilteredFormProcessorRetrieves a logger instance to log to.- Specified by:
getLoggerin classFilteredFormProcessor<WorkflowDefinition,WorkflowInstance> - Returns:
- Log instance to log to.
-
getTypedItemForDecodedId
Description copied from class:AbstractWorkflowFormProcessorReturns the typed item.- Specified by:
getTypedItemForDecodedIdin classAbstractWorkflowFormProcessor<WorkflowDefinition,WorkflowInstance> - Parameters:
itemId- the decoded item Id.- Returns:
- ItemType
-
makeFormPersister
Description copied from class:AbstractWorkflowFormProcessorReturns an implementation ofContentModelFormPersisterwhich is used to accumulate all the changes specified in theFormand then persist them.- Specified by:
makeFormPersisterin classAbstractWorkflowFormProcessor<WorkflowDefinition,WorkflowInstance> - Parameters:
item- ItemType
-
getDefaultIgnoredFields
Description copied from class:FilteredFormProcessorWhen aFormis generated with no field names specifically set then a defaultFormis created. The defaultFormcontains all the properties and associations related to theItem, 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 propertyignoredFields.- Overrides:
getDefaultIgnoredFieldsin classAbstractWorkflowFormProcessor<WorkflowDefinition,WorkflowInstance> - Returns:
- the names of all the fields to be excluded from the default
Formif nodefaultFieldsproperty is explicitly set.
-