Class WorkflowFormFilter<ItemType,PersistType>
- All Implemented Interfaces:
Filter<ItemType,,PersistType> org.springframework.beans.factory.InitializingBean
-
Field Summary
Fields inherited from class org.alfresco.repo.forms.processor.AbstractFilter
active, filterRegistry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterGenerate(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.voidafterPersist(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.voidvoidbeforeGenerate(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.voidbeforePersist(ItemType item, FormData data) Callback used to indicate that the given form data is about to be persisted for the given item.voidsetMaxLengthBpmCommentProperty(int maxLengthBpmCommentProperty) voidsetMaxLengthBpmCommentProperty_oldPropertyName(int maxLengthBpmCommentProperty_oldPropertyName) Methods inherited from class org.alfresco.repo.forms.processor.AbstractFilter
isActive, register, setActive, setFilterRegistry, toString
-
Constructor Details
-
WorkflowFormFilter
public WorkflowFormFilter()
-
-
Method Details
-
setMaxLengthBpmCommentProperty
public void setMaxLengthBpmCommentProperty(int maxLengthBpmCommentProperty) -
setMaxLengthBpmCommentProperty_oldPropertyName
public void setMaxLengthBpmCommentProperty_oldPropertyName(int maxLengthBpmCommentProperty_oldPropertyName) -
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
beforeGenerate
public void beforeGenerate(ItemType item, List<String> fields, List<String> forcedFields, Form form, Map<String, Object> context) Description copied from interface:FilterCallback used to indicate that a form is about to be generated for the given items and fields.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.
- Specified by:
beforeGeneratein interfaceFilter<ItemType,PersistType> - Parameters:
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 form
-
afterGenerate
public void afterGenerate(ItemType item, List<String> fields, List<String> forcedFields, Form form, Map<String, Object> context) Description copied from interface:FilterCallback used to indicate that a form has just been generated for the given items and fields.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.
- Specified by:
afterGeneratein interfaceFilter<ItemType,PersistType> - Parameters:
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 form
-
beforePersist
Description copied from interface:FilterCallback used to indicate that the given form data is about to be persisted for the given item.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.
- Specified by:
beforePersistin interfaceFilter<ItemType,PersistType> - Parameters:
item- The item to persist the form data fordata- The form data
-
afterPersist
Description copied from interface:FilterCallback used to indicate that the given form data was just persisted for the item and the given persistedObject was created or modified.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.
- Specified by:
afterPersistin interfaceFilter<ItemType,PersistType> - Parameters:
item- The item to persist the form data fordata- The form datapersistedObject- The object created or modified as a result of the form persistence
-