Interface ImportedObjectPreProcessor

All Known Implementing Classes:
AttachmentContentStatusPreProcessor, BandanaXStreamUpgradePreProcessor, ChainedImportedObjectPreProcessor, ContentPropertyFilterPreProcessor, NotNullBandanaRecordPreProcessor, SkipObjectPreProcessor, SkipObjectPropertyPreProcessor, SkipObjectWithReferencePreProcessor

@Deprecated public interface ImportedObjectPreProcessor
Deprecated.
since 7.17.0.
Allows imported objects to be modified before they are persisted. For example, we may want to change the spacekey of a space object before it's actually in the system
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
     
    Deprecated.
    Takes an ImportedObject and returns a new, processed ImportedObject, or null if the ImportedObject should be skipped.
  • Method Details

    • handles

      boolean handles(ImportedObject object)
      Deprecated.
      Parameters:
      object - The object to be processed
      Returns:
      true if this preprocessor should be applied to the object, otherwise false.
    • process

      ImportedObject process(ImportedObject object)
      Deprecated.
      Takes an ImportedObject and returns a new, processed ImportedObject, or null if the ImportedObject should be skipped. This method will not execute unless handles(ImportedObject) returns true
      Parameters:
      object - The object that needs to be processed
      Returns:
      An ImportedObject with the relevant changes, or null if the object should not be imported.