public class SkipObjectWithReferencePreProcessor extends Object implements ImportedObjectPreProcessor
BodyContent
referencing a content of
the legacy Mail typeConstructor and Description |
---|
SkipObjectWithReferencePreProcessor(Set<String> candidateTypes,
Set<String> skippedReferenceTypes) |
Modifier and Type | Method and Description |
---|---|
boolean |
handles(ImportedObject object) |
ImportedObject |
process(ImportedObject object)
Takes an ImportedObject and returns a new, processed ImportedObject, or null if the ImportedObject should be skipped.
|
public boolean handles(ImportedObject object)
handles
in interface ImportedObjectPreProcessor
object
- The object to be processedtrue
if this preprocessor should be applied to the object, otherwise false
.public ImportedObject process(ImportedObject object)
ImportedObjectPreProcessor
ImportedObjectPreProcessor.handles(ImportedObject)
returns trueprocess
in interface ImportedObjectPreProcessor
object
- The object that needs to be processedCopyright © 2003–2021 Atlassian. All rights reserved.