org.alfresco.repo.forms.processor.workflow
Class TaskFormProcessor

java.lang.Object
  extended by org.alfresco.repo.forms.processor.AbstractFormProcessor
      extended by org.alfresco.repo.forms.processor.FilteredFormProcessor
          extended by org.alfresco.repo.forms.processor.node.ContentModelFormProcessor
              extended by org.alfresco.repo.forms.processor.workflow.AbstractWorkflowFormProcessor
                  extended by org.alfresco.repo.forms.processor.workflow.TaskFormProcessor
All Implemented Interfaces:
FormProcessor

public class TaskFormProcessor
extends AbstractWorkflowFormProcessor

FormProcessor implementation for workflow tasks.

Since:
3.4

Field Summary
protected  AuthenticationService authenticationService
           
protected  PersonService personService
           
 
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, 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
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
protected  java.util.Map getAssociationValues(WorkflowTask item)
           
protected  org.alfresco.service.cmr.dictionary.TypeDefinition getBaseType(WorkflowTask task)
           
protected  java.lang.String getItemType(WorkflowTask item)
          Returns a String describing the type fo the specified item.
protected  java.lang.String getItemURI(WorkflowTask item)
          Returns the URI location of the specified item.
protected  org.apache.commons.logging.Log getLogger()
          Retrieves a logger instance to log to.
protected  java.util.Map getPropertyValues(WorkflowTask task)
           
protected  java.util.Map getTransientValues(WorkflowTask item)
           
protected  WorkflowTask getTypedItemForDecodedId(java.lang.String itemId)
          Returns the typed item.
protected  ContentModelFormPersister makeFormPersister(WorkflowTask item)
          Returns an implementation of ContentModelFormPersister which is used to accumulate all the changes specified in the Form and then persist them.
 void setAuthenticationService(AuthenticationService authenticationService)
          Sets the authentication service
 void setPersonService(PersonService personService)
          Sets the person service
 
Methods inherited from class org.alfresco.repo.forms.processor.workflow.AbstractWorkflowFormProcessor
getDefaultIgnoredFields, getTypedItem, internalPersist, populateForm, setBehaviourFilter, setWorkflowService
 
Methods inherited from class org.alfresco.repo.forms.processor.node.ContentModelFormProcessor
addPropertyDataIfRequired, determineDefaultMimetype, generateDefaultFields, getAspectNames, makeItemData, persistNode, processAssociationPersist, processContentPropertyPersist, processEncodingPropertyPersist, processMimetypePropertyPersist, processNamePropertyPersist, processPropertyPersist, setContentService, setDictionaryService, setFileFolderService, setNamespaceService, setNodeService
 
Methods inherited from class org.alfresco.repo.forms.processor.FilteredFormProcessor
generate, generateSelectedFields, internalGenerate, persist, setFieldProcessorRegistry, setFilterRegistry, setIgnoredFields
 
Methods inherited from class org.alfresco.repo.forms.processor.AbstractFormProcessor
isActive, isApplicable, register, setActive, setFormItemType, setFormItemUrl, setMatchPattern, setProcessorRegistry, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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:
getTypedItemForDecodedId in class AbstractWorkflowFormProcessor
Parameters:
itemId - the decoded item Id.
Returns:

getItemType

protected java.lang.String getItemType(WorkflowTask item)
Returns a String describing the type fo the specified item.

Specified by:
getItemType in class FilteredFormProcessor
Returns:

getItemURI

protected java.lang.String getItemURI(WorkflowTask item)
Returns the URI location of the specified item.

Specified by:
getItemURI in class FilteredFormProcessor
Returns:

getLogger

protected org.apache.commons.logging.Log getLogger()
Retrieves a logger instance to log to.

Specified by:
getLogger in class FilteredFormProcessor
Returns:
Log instance to log to.

getBaseType

protected org.alfresco.service.cmr.dictionary.TypeDefinition getBaseType(WorkflowTask task)
Specified by:
getBaseType in class ContentModelFormProcessor

getPropertyValues

protected java.util.Map getPropertyValues(WorkflowTask task)
Specified by:
getPropertyValues in class ContentModelFormProcessor

getAssociationValues

protected java.util.Map getAssociationValues(WorkflowTask item)
Specified by:
getAssociationValues in class ContentModelFormProcessor

getTransientValues

protected java.util.Map getTransientValues(WorkflowTask item)
Specified by:
getTransientValues in class ContentModelFormProcessor

makeFormPersister

protected ContentModelFormPersister makeFormPersister(WorkflowTask item)
Description copied from class: AbstractWorkflowFormProcessor
Returns an implementation of ContentModelFormPersister which is used to accumulate all the changes specified in the Form and then persist them.

Specified by:
makeFormPersister in class AbstractWorkflowFormProcessor
Returns:


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.