Interface SpoiledReferenceStrategizer
- All Known Implementing Classes:
GenericSpoiledReferenceStrategizer
public interface SpoiledReferenceStrategizer
Decides which strategy to adopt for a given reference with a bad state. Those can either be deleted (asking the committer to remove them from a target repository), they can be ignored (no action is taken), or graced (give is one chance to recover on a subsequent run).
A "bad" state is any state but NEW, MODIFIED,
and UNMODIFIED. These statuses never have to be resolved.
A complete list of statuses can be obtained from ProcessingOutcome
or a subclass.
In addition to "good" states, it is possible for some states to be temporary and/or to be specific to some collectors, and to never be passed to this class.
-
Method Summary
Modifier and TypeMethodDescriptionresolveSpoiledReferenceStrategy(String reference, ProcessingOutcome processingOutcome) Establish which spoiled reference strategy to adopt.
-
Method Details
-
resolveSpoiledReferenceStrategy
SpoiledReferenceStrategy resolveSpoiledReferenceStrategy(String reference, ProcessingOutcome processingOutcome) Establish which spoiled reference strategy to adopt.- Parameters:
reference- a document referenceprocessingOutcome- the processing outcome to evaluate- Returns:
- a spoiled reference strategy
-