Class RecordsManagementNodeFormFilter

All Implemented Interfaces:
DOD5015Model, RecordsManagementCustomModel, RecordsManagementModel, Filter<NodeRef,NodeRef>

public class RecordsManagementNodeFormFilter extends RecordsManagementFormFilter<NodeRef> implements RecordsManagementModel, DOD5015Model
Implementation of a form processor Filter.

The filter ensures that any custom properties defined for the records management type are provided as part of the Form and also assigned to the same field group.

Author:
Gavin Cornwell
  • Field Details

  • Constructor Details

    • RecordsManagementNodeFormFilter

      public RecordsManagementNodeFormFilter()
  • Method Details

    • getDispositionService

      protected DispositionService getDispositionService()
      Returns the disposition service
      Returns:
      Disposition service
    • getFilePlanService

      protected FilePlanService getFilePlanService()
      Returns the file plan service
      Returns:
      File plan service
    • setDispositionService

      public void setDispositionService(DispositionService dispositionService)
      Sets the disposition service
      Parameters:
      dispositionService - disposition service
    • setFilePlanService

      public void setFilePlanService(FilePlanService filePlanService)
      Parameters:
      filePlanService - file plan service
    • afterGenerate

      public void afterGenerate(NodeRef nodeRef, List<String> fields, List<String> forcedFields, Form form, Map<String,Object> context)
      Specified by:
      afterGenerate in interface Filter<NodeRef,NodeRef>
      See Also:
    • addCustomPropertyFieldsToGroup

      protected void addCustomPropertyFieldsToGroup(Form form, NodeRef nodeRef)
      Parameters:
      form -
      nodeRef -
    • addRecordMetadataPropertyFieldsToGroup

      protected void addRecordMetadataPropertyFieldsToGroup(Form form, NodeRef nodeRef)
      Parameters:
      form -
      nodeRef -
    • forceSupplementalMarkingListProperty

      protected void forceSupplementalMarkingListProperty(Form form, NodeRef nodeRef)
      Forces the "rmc:supplementalMarkingList" property to be present, if it is already on the given node this method does nothing, otherwise a property field definition is generated for the property.
      Parameters:
      form - The Form instance to add the property to
      nodeRef - The node the form is being generated for
    • addTransientProperties

      protected void addTransientProperties(Form form, NodeRef nodeRef)
      Parameters:
      form -
      nodeRef -
    • addTransientPropertyField

      protected void addTransientPropertyField(Form form, String name, QName type, Object value)
      Parameters:
      form -
      name -
      type -
      value -
    • protectRecordProperties

      protected void protectRecordProperties(Form form, NodeRef nodeRef)
      Parameters:
      form -
      nodeRef -
    • protectEmailExtractedFields

      protected void protectEmailExtractedFields(Form form, NodeRef nodeRef)
      Marks all the fields that contain data extracted from an email as protected fields.
      Parameters:
      form - The Form instance to add the property to
      nodeRef - The node the form is being generated for
    • protectRecordLevelDispositionPropertyField

      protected void protectRecordLevelDispositionPropertyField(Form form)
      Marks the recordLevelDisposition property as protected to disable editing
      Parameters:
      form - The Form instance