Class TaskFormProcessor
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<WorkflowTask,WorkflowTask>
org.alfresco.repo.forms.processor.workflow.TaskFormProcessor
- All Implemented Interfaces:
FormProcessor
FormProcessor implementation for workflow tasks.
- Since:
- 3.4
- Author:
- Nick Smith
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionTaskFormProcessor(WorkflowService workflowService, NamespaceService namespaceService, DictionaryService dictionaryService, AuthenticationService authenticationService, PersonService personService, FieldProcessorRegistry fieldProcessorRegistry) -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<QName,Serializable> protected TypeDefinitiongetBaseType(WorkflowTask task) protected StringgetItemType(WorkflowTask item) Returns aStringdescribing the type fo the specified item.protected StringgetItemURI(WorkflowTask 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 WorkflowTaskgetTypedItemForDecodedId(String itemId) Returns the typed item.protected ContentModelFormPersister<WorkflowTask>Returns an implementation ofContentModelFormPersisterwhich is used to accumulate all the changes specified in theFormand then persist them.voidsetAuthenticationService(AuthenticationService authenticationService) Sets the authentication servicevoidsetPersonService(PersonService personService) Sets the person serviceMethods inherited from class org.alfresco.repo.forms.processor.workflow.AbstractWorkflowFormProcessor
generateDefaultFields, generateSelectedFields, getDefaultIgnoredFields, 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
-
Field Details
-
authenticationService
-
personService
-
-
Constructor Details
-
TaskFormProcessor
public TaskFormProcessor() -
TaskFormProcessor
public TaskFormProcessor(WorkflowService workflowService, NamespaceService namespaceService, DictionaryService dictionaryService, AuthenticationService authenticationService, PersonService personService, FieldProcessorRegistry fieldProcessorRegistry)
-
-
Method Details
-
setAuthenticationService
Sets the authentication service- Parameters:
authenticationService- The AuthenticationService instance
-
setPersonService
Sets the person service- Parameters:
personService- The PersonService instance
-
getTypedItemForDecodedId
Returns the typed item.- Specified by:
getTypedItemForDecodedIdin classAbstractWorkflowFormProcessor<WorkflowTask,WorkflowTask> - Parameters:
itemId- the decoded item Id.- Returns:
- ItemType
-
getItemType
Returns aStringdescribing the type fo the specified item.- Specified by:
getItemTypein classFilteredFormProcessor<WorkflowTask,WorkflowTask> - Parameters:
item- ItemType- Returns:
- String
-
getItemURI
Returns the URI location of the specified item.- Specified by:
getItemURIin classFilteredFormProcessor<WorkflowTask,WorkflowTask> - Parameters:
item- ItemType- Returns:
- String
-
getLogger
protected org.apache.commons.logging.Log getLogger()Retrieves a logger instance to log to.- Specified by:
getLoggerin classFilteredFormProcessor<WorkflowTask,WorkflowTask> - Returns:
- Log instance to log to.
-
getBaseType
- Specified by:
getBaseTypein classContentModelFormProcessor<WorkflowTask,WorkflowTask>
-
getPropertyValues
- Specified by:
getPropertyValuesin classContentModelFormProcessor<WorkflowTask,WorkflowTask>
-
getAssociationValues
- Specified by:
getAssociationValuesin classContentModelFormProcessor<WorkflowTask,WorkflowTask>
-
getTransientValues
- Specified by:
getTransientValuesin classContentModelFormProcessor<WorkflowTask,WorkflowTask>
-
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<WorkflowTask,WorkflowTask> - Parameters:
item- ItemType
-