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, workflowService
-
Fields inherited from class org.alfresco.repo.forms.processor.node.ContentModelFormProcessor
associationNamePattern, contentService, dictionaryService, fileFolderService, namespaceService, nodeService, permissionService, propertyNamePattern, transientPropertyPattern
-
Fields inherited from class org.alfresco.repo.forms.processor.FilteredFormProcessor
fieldProcessorRegistry, filterRegistry
-
Fields inherited from class org.alfresco.repo.forms.processor.AbstractFormProcessor
active, DESTINATION, matchPattern, patternMatcher, processorRegistry
-
-
Constructor Summary
Constructors Constructor Description WorkflowFormProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable>getAssociationValues(WorkflowDefinition item)protected org.alfresco.service.cmr.dictionary.TypeDefinitiongetBaseType(WorkflowDefinition item)protected java.util.List<java.lang.String>getDefaultIgnoredFields()protected java.lang.StringgetItemType(WorkflowDefinition item)Returns aStringdescribing the type fo the specified item.protected java.lang.StringgetItemURI(WorkflowDefinition item)Returns the URI location of the specified item.protected org.apache.commons.logging.LoggetLogger()Retrieves a logger instance to log to.protected java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable>getPropertyValues(WorkflowDefinition item)protected java.util.Map<java.lang.String,java.lang.Object>getTransientValues(WorkflowDefinition item)protected WorkflowDefinitiongetTypedItemForDecodedId(java.lang.String itemId)Returns the typed item.protected ContentModelFormPersister<WorkflowInstance>makeFormPersister(WorkflowDefinition item)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, setWorkflowService
-
Methods 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, setPermissionService
-
Methods inherited from class org.alfresco.repo.forms.processor.FilteredFormProcessor
generate, internalGenerate, persist, setFieldProcessorRegistry, setFilterRegistry, setIgnoredFields
-
Methods inherited from class org.alfresco.repo.forms.processor.AbstractFormProcessor
isActive, isApplicable, register, setActive, setFormItemType, setFormItemUrl, setMatchPattern, setProcessorRegistry, toString
-
-
-
-
Method Detail
-
getAssociationValues
protected java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> getAssociationValues(WorkflowDefinition item)
- Specified by:
getAssociationValuesin classContentModelFormProcessor<WorkflowDefinition,WorkflowInstance>
-
getBaseType
protected org.alfresco.service.cmr.dictionary.TypeDefinition getBaseType(WorkflowDefinition item)
- Specified by:
getBaseTypein classContentModelFormProcessor<WorkflowDefinition,WorkflowInstance>
-
getPropertyValues
protected java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> getPropertyValues(WorkflowDefinition item)
- Specified by:
getPropertyValuesin classContentModelFormProcessor<WorkflowDefinition,WorkflowInstance>
-
getTransientValues
protected java.util.Map<java.lang.String,java.lang.Object> getTransientValues(WorkflowDefinition item)
- Specified by:
getTransientValuesin classContentModelFormProcessor<WorkflowDefinition,WorkflowInstance>
-
getItemType
protected java.lang.String getItemType(WorkflowDefinition item)
Description copied from class:FilteredFormProcessorReturns aStringdescribing the type fo the specified item.- Specified by:
getItemTypein classFilteredFormProcessor<WorkflowDefinition,WorkflowInstance>- Parameters:
item- ItemType- Returns:
- String
-
getItemURI
protected java.lang.String getItemURI(WorkflowDefinition item)
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
protected WorkflowDefinition getTypedItemForDecodedId(java.lang.String itemId)
Description copied from class:AbstractWorkflowFormProcessorReturns the typed item.- Specified by:
getTypedItemForDecodedIdin classAbstractWorkflowFormProcessor<WorkflowDefinition,WorkflowInstance>- Parameters:
itemId- the decoded item Id.- Returns:
- ItemType
-
makeFormPersister
protected ContentModelFormPersister<WorkflowInstance> makeFormPersister(WorkflowDefinition item)
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
protected java.util.List<java.lang.String> 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.
-
-