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
public class TaskFormProcessor extends AbstractWorkflowFormProcessor<WorkflowTask,WorkflowTask>
FormProcessor implementation for workflow tasks.- Since:
- 3.4
- Author:
- Nick Smith
-
-
Field Summary
Fields Modifier and Type Field Description protected AuthenticationServiceauthenticationServiceprotected PersonServicepersonService-
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 TaskFormProcessor()TaskFormProcessor(WorkflowService workflowService, org.alfresco.service.namespace.NamespaceService namespaceService, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, AuthenticationService authenticationService, PersonService personService, FieldProcessorRegistry fieldProcessorRegistry)
-
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(WorkflowTask item)protected org.alfresco.service.cmr.dictionary.TypeDefinitiongetBaseType(WorkflowTask task)protected java.lang.StringgetItemType(WorkflowTask item)Returns aStringdescribing the type fo the specified item.protected java.lang.StringgetItemURI(WorkflowTask 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(WorkflowTask task)protected java.util.Map<java.lang.String,java.lang.Object>getTransientValues(WorkflowTask item)protected WorkflowTaskgetTypedItemForDecodedId(java.lang.String itemId)Returns the typed item.protected ContentModelFormPersister<WorkflowTask>makeFormPersister(WorkflowTask item)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 service-
Methods inherited from class org.alfresco.repo.forms.processor.workflow.AbstractWorkflowFormProcessor
generateDefaultFields, generateSelectedFields, getDefaultIgnoredFields, 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
-
-
-
-
Field Detail
-
authenticationService
protected AuthenticationService authenticationService
-
personService
protected PersonService personService
-
-
Constructor Detail
-
TaskFormProcessor
public TaskFormProcessor()
-
TaskFormProcessor
public TaskFormProcessor(WorkflowService workflowService, org.alfresco.service.namespace.NamespaceService namespaceService, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, AuthenticationService authenticationService, PersonService personService, FieldProcessorRegistry fieldProcessorRegistry)
-
-
Method Detail
-
setAuthenticationService
public void setAuthenticationService(AuthenticationService authenticationService)
Sets the authentication service- Parameters:
authenticationService- The AuthenticationService instance
-
setPersonService
public void setPersonService(PersonService personService)
Sets the person service- Parameters:
personService- The PersonService instance
-
getTypedItemForDecodedId
protected WorkflowTask getTypedItemForDecodedId(java.lang.String itemId)
Returns the typed item.- Specified by:
getTypedItemForDecodedIdin classAbstractWorkflowFormProcessor<WorkflowTask,WorkflowTask>- Parameters:
itemId- the decoded item Id.- Returns:
- ItemType
-
getItemType
protected java.lang.String getItemType(WorkflowTask item)
Returns aStringdescribing the type fo the specified item.- Specified by:
getItemTypein classFilteredFormProcessor<WorkflowTask,WorkflowTask>- Parameters:
item- ItemType- Returns:
- String
-
getItemURI
protected java.lang.String getItemURI(WorkflowTask item)
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
protected org.alfresco.service.cmr.dictionary.TypeDefinition getBaseType(WorkflowTask task)
- Specified by:
getBaseTypein classContentModelFormProcessor<WorkflowTask,WorkflowTask>
-
getPropertyValues
protected java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> getPropertyValues(WorkflowTask task)
- Specified by:
getPropertyValuesin classContentModelFormProcessor<WorkflowTask,WorkflowTask>
-
getAssociationValues
protected java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> getAssociationValues(WorkflowTask item)
- Specified by:
getAssociationValuesin classContentModelFormProcessor<WorkflowTask,WorkflowTask>
-
getTransientValues
protected java.util.Map<java.lang.String,java.lang.Object> getTransientValues(WorkflowTask item)
- Specified by:
getTransientValuesin classContentModelFormProcessor<WorkflowTask,WorkflowTask>
-
makeFormPersister
protected ContentModelFormPersister<WorkflowTask> makeFormPersister(WorkflowTask 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<WorkflowTask,WorkflowTask>- Parameters:
item- ItemType
-
-