Class AbstractWorkflowFormProcessor<ItemType,​PersistType>

    • Constructor Detail

      • AbstractWorkflowFormProcessor

        public AbstractWorkflowFormProcessor()
    • Method Detail

      • setWorkflowService

        public void setWorkflowService​(WorkflowService workflowService)
        Parameters:
        workflowService - the workflowService to set
      • setBehaviourFilter

        public void setBehaviourFilter​(BehaviourFilter behaviourFilter)
        Parameters:
        behaviourFilter - the behaviourFilter to set
      • setExtendedPropertyFieldProcessor

        public void setExtendedPropertyFieldProcessor​(ExtendedPropertyFieldProcessor extendedPropertyFieldProcessor)
        Parameters:
        extendedPropertyFieldProcessor - the processor to set
      • getTypedItem

        protected ItemType getTypedItem​(Item item)
        Description copied from class: FilteredFormProcessor
        Returns a typed Object representing the given item.

        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.

        Specified by:
        getTypedItem in class FilteredFormProcessor<ItemType,​PersistType>
        Parameters:
        item - The item to get a typed object for
        Returns:
        The typed object
      • getDefaultIgnoredFields

        protected java.util.List<java.lang.String> getDefaultIgnoredFields()
        Description copied from class: FilteredFormProcessor
        When a 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.
        Overrides:
        getDefaultIgnoredFields in class ContentModelFormProcessor<ItemType,​PersistType>
        Returns:
        the names of all the fields to be excluded from the default Form if no defaultFields property is explicitly set.
      • getTypedItemForDecodedId

        protected abstract ItemType getTypedItemForDecodedId​(java.lang.String itemId)
        Returns the typed item.
        Parameters:
        itemId - the decoded item Id.
        Returns:
        ItemType