Class WorkflowFormFilter<ItemType,​PersistType>

  • All Implemented Interfaces:
    Filter<ItemType,​PersistType>, org.springframework.beans.factory.InitializingBean

    public class WorkflowFormFilter<ItemType,​PersistType>
    extends AbstractFilter<ItemType,​PersistType>
    implements org.springframework.beans.factory.InitializingBean
    • Constructor Detail

      • WorkflowFormFilter

        public WorkflowFormFilter()
    • Method Detail

      • setMaxLengthBpmCommentProperty

        public void setMaxLengthBpmCommentProperty​(int maxLengthBpmCommentProperty)
      • setMaxLengthBpmCommentProperty_oldPropertyName

        public void setMaxLengthBpmCommentProperty_oldPropertyName​(int maxLengthBpmCommentProperty_oldPropertyName)
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • beforeGenerate

        public void beforeGenerate​(ItemType item,
                                   java.util.List<java.lang.String> fields,
                                   java.util.List<java.lang.String> forcedFields,
                                   Form form,
                                   java.util.Map<java.lang.String,​java.lang.Object> context)
        Description copied from interface: Filter
        Callback 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:
        beforeGenerate in interface Filter<ItemType,​PersistType>
        Parameters:
        item - The item to generate a Form for
        fields - Restricted list of fields to include
        forcedFields - List of fields to forcibly include
        form - The Form object
        context - Map representing optional context that can be used during retrieval of the form
      • afterGenerate

        public void afterGenerate​(ItemType item,
                                  java.util.List<java.lang.String> fields,
                                  java.util.List<java.lang.String> forcedFields,
                                  Form form,
                                  java.util.Map<java.lang.String,​java.lang.Object> context)
        Description copied from interface: Filter
        Callback 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:
        afterGenerate in interface Filter<ItemType,​PersistType>
        Parameters:
        item - The item to generate a Form for
        fields - Restricted list of fields to include
        forcedFields - List of fields to forcibly include
        form - The Form object
        context - Map representing optional context that can be used during retrieval of the form
      • beforePersist

        public void beforePersist​(ItemType item,
                                  FormData data)
        Description copied from interface: Filter
        Callback 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:
        beforePersist in interface Filter<ItemType,​PersistType>
        Parameters:
        item - The item to persist the form data for
        data - The form data
      • afterPersist

        public void afterPersist​(ItemType item,
                                 FormData data,
                                 PersistType persistedObject)
        Description copied from interface: Filter
        Callback 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:
        afterPersist in interface Filter<ItemType,​PersistType>
        Parameters:
        item - The item to persist the form data for
        data - The form data
        persistedObject - The object created or modified as a result of the form persistence