public class WorkflowFormFilter<ItemType,PersistType> extends AbstractFilter<ItemType,PersistType> implements org.springframework.beans.factory.InitializingBean
active, filterRegistry
Constructor and Description |
---|
WorkflowFormFilter() |
Modifier and Type | Method and Description |
---|---|
void |
afterGenerate(ItemType item,
List<String> fields,
List<String> forcedFields,
Form form,
Map<String,Object> context)
Callback used to indicate that a form has just been generated for
the given items and fields.
|
void |
afterPersist(ItemType item,
FormData data,
PersistType persistedObject)
Callback used to indicate that the given form data was just persisted
for the item and the given persistedObject was created or modified.
|
void |
afterPropertiesSet() |
void |
beforeGenerate(ItemType item,
List<String> fields,
List<String> forcedFields,
Form form,
Map<String,Object> context)
Callback used to indicate that a form is about to be generated for
the given items and fields.
|
void |
beforePersist(ItemType item,
FormData data)
Callback used to indicate that the given form data is about to be
persisted for the given item.
|
void |
setMaxLengthBpmCommentProperty_oldPropertyName(int maxLengthBpmCommentProperty_oldPropertyName) |
void |
setMaxLengthBpmCommentProperty(int maxLengthBpmCommentProperty) |
isActive, register, setActive, setFilterRegistry, toString
public void setMaxLengthBpmCommentProperty(int maxLengthBpmCommentProperty)
public void setMaxLengthBpmCommentProperty_oldPropertyName(int maxLengthBpmCommentProperty_oldPropertyName)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void beforeGenerate(ItemType item, List<String> fields, List<String> forcedFields, Form form, Map<String,Object> context)
Filter
NOTE: Filters all relating to the same type of form can cast the Object to a more appropriate object, for example all the Node based handlers can expect a NodeRef object and therefore cast to that.
beforeGenerate
in interface Filter<ItemType,PersistType>
item
- The item to generate a Form forfields
- Restricted list of fields to includeforcedFields
- List of fields to forcibly includeform
- The Form objectcontext
- Map representing optional context that
can be used during retrieval of the formpublic void afterGenerate(ItemType item, List<String> fields, List<String> forcedFields, Form form, Map<String,Object> context)
Filter
NOTE: Filters all relating to the same type of form can cast the Object to a more appropriate object, for example all the Node based handlers can expect a NodeRef object and therefore cast to that.
afterGenerate
in interface Filter<ItemType,PersistType>
item
- The item to generate a Form forfields
- Restricted list of fields to includeforcedFields
- List of fields to forcibly includeform
- The Form objectcontext
- Map representing optional context that
can be used during retrieval of the formpublic void beforePersist(ItemType item, FormData data)
Filter
NOTE: Filters all relating to the same type of form can cast the item Object to a more appropriate object, for example all the Node based handlers can expect a NodeRef object and therefore cast to that.
beforePersist
in interface Filter<ItemType,PersistType>
item
- The item to persist the form data fordata
- The form datapublic void afterPersist(ItemType item, FormData data, PersistType persistedObject)
Filter
NOTE: Filters all relating to the same type of form can cast the item and persistedObject Objects to a more appropriate object, for example all the Node based handlers can expect a NodeRef object and therefore cast to that.
afterPersist
in interface Filter<ItemType,PersistType>
item
- The item to persist the form data fordata
- The form datapersistedObject
- The object created or modified as a result of
the form persistenceCopyright © 2005–2017 Alfresco Software. All rights reserved.