|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.forms.processor.AbstractFormProcessor
org.alfresco.repo.forms.processor.FilteredFormProcessor
org.alfresco.repo.forms.processor.node.ContentModelFormProcessor
org.alfresco.repo.forms.processor.workflow.AbstractWorkflowFormProcessor
public abstract class AbstractWorkflowFormProcessor
Abstract base class for workflow based form processors.
Field Summary | |
---|---|
protected BehaviourFilter |
behaviourFilter
|
protected WorkflowService |
workflowService
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 | |
---|---|
AbstractWorkflowFormProcessor()
|
Method Summary | |
---|---|
protected java.util.List |
getDefaultIgnoredFields()
When a Form is generated with no field names specifically set then a default Form is created. |
protected java.lang.Object |
getTypedItem(Item item)
Returns a typed Object representing the given item. |
protected abstract java.lang.Object |
getTypedItemForDecodedId(java.lang.String itemId)
Returns the typed item. |
protected java.lang.Object |
internalPersist(java.lang.Object item,
FormData data)
Persists the form data. |
protected abstract ContentModelFormPersister |
makeFormPersister(java.lang.Object item)
Returns an implementation of ContentModelFormPersister which is
used to accumulate all the changes specified in the Form and then persist them. |
protected void |
populateForm(Form form,
java.util.List fields,
FormCreationData data)
This method generates all the fields to be added and adds them to the Form, together with the associated field data. |
void |
setBehaviourFilter(BehaviourFilter behaviourFilter)
|
void |
setWorkflowService(WorkflowService workflowService)
|
Methods inherited from class org.alfresco.repo.forms.processor.FilteredFormProcessor |
---|
generate, generateSelectedFields, getItemType, getItemURI, getLogger, 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 |
---|
protected WorkflowService workflowService
protected BehaviourFilter behaviourFilter
Constructor Detail |
---|
public AbstractWorkflowFormProcessor()
Method Detail |
---|
protected void populateForm(Form form, java.util.List fields, FormCreationData data)
FilteredFormProcessor
populateForm
in class FilteredFormProcessor
form
- The Form
to which the fields are added.fields
- The names of all the fields to be added.data
- FormCreationData
used to generate all the fields.protected java.lang.Object internalPersist(java.lang.Object item, FormData data)
FilteredFormProcessor
internalPersist
in class FilteredFormProcessor
item
- The object to persist the form fordata
- The data to persist
public void setWorkflowService(WorkflowService workflowService)
workflowService
- the workflowService to setpublic void setBehaviourFilter(BehaviourFilter behaviourFilter)
behaviourFilter
- the behaviourFilter to setprotected java.lang.Object getTypedItem(Item item)
FilteredFormProcessor
Subclasses that represent a form type will return a typed object that is then passed to each of it's handlers, the handlers can therefore safely cast the Object to the type they expect.
getTypedItem
in class FilteredFormProcessor
item
- The item to get a typed object for
protected java.util.List getDefaultIgnoredFields()
FilteredFormProcessor
Form
is generated with no field names specifically set then a default Form
is created.
The default Form
contains all the properties and associations related to the Item
, 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 property ignoredFields
.
getDefaultIgnoredFields
in class ContentModelFormProcessor
Form
if no defaultFields
property is explicitly set.protected abstract ContentModelFormPersister makeFormPersister(java.lang.Object item)
ContentModelFormPersister
which is
used to accumulate all the changes specified in the Form
and then persist them.
item
-
protected abstract java.lang.Object getTypedItemForDecodedId(java.lang.String itemId)
itemId
- the decoded item Id.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |