@Service(value="noteRenderingPreProcessorManager") public class NoteRenderingExtensionPoint extends Object implements NoteRenderingPreProcessorManager
| Constructor and Description |
|---|
NoteRenderingExtensionPoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessor(NoteContentRenderingPreProcessor processor)
Adds the given processor to the list of processors.
|
void |
addProcessor(NoteMetadataRenderingPreProcessor processor)
Adds the given processor to the list of processors.
|
void |
addProcessor(NoteMetadataRenderingPreProcessor processor,
boolean runAfterContentProcessors)
Adds the given processor to the list of processors.
|
NoteData |
process(NoteRenderContext context,
NoteData item)
Processes a note by calling all the registered preprocessors which support the render mode of
the context.
|
void |
removeProcessor(NoteContentRenderingPreProcessor processor)
Removes the given processor from the list of processors.
|
void |
removeProcessor(NoteMetadataRenderingPreProcessor processor)
Removes the given processor from the list of processors.
|
public NoteData process(NoteRenderContext context, NoteData item) throws NoteRenderingPreProcessorException
NoteRenderingPreProcessorManagerprocess in interface NoteRenderingPreProcessorManagercontext - the render context. If the render context has no render mode (i.e. the render mode
is null), no preprocessors will be called.item - value object holding the details about the noteNoteRenderingPreProcessorException - in case one of the preprocessors failed. When this exception is thrown the
provided note list item can be in an inconsistent state (partially processed or
might contain unexpected data). The caller should therefore ignore the provided
note list item.public void addProcessor(NoteContentRenderingPreProcessor processor)
NoteRenderingPreProcessorManageraddProcessor in interface NoteRenderingPreProcessorManagerprocessor - The processor to add.public void addProcessor(NoteMetadataRenderingPreProcessor processor)
NoteRenderingPreProcessorManageraddProcessor in interface NoteRenderingPreProcessorManagerprocessor - The processor to add.public void addProcessor(NoteMetadataRenderingPreProcessor processor, boolean runAfterContentProcessors)
NoteRenderingPreProcessorManageraddProcessor in interface NoteRenderingPreProcessorManagerprocessor - the processor to registerrunAfterContentProcessors - if true the metadata preprocessor is invoked after the content preprocessors
completedpublic void removeProcessor(NoteContentRenderingPreProcessor processor)
NoteRenderingPreProcessorManagerremoveProcessor in interface NoteRenderingPreProcessorManagerprocessor - The processor to removepublic void removeProcessor(NoteMetadataRenderingPreProcessor processor)
NoteRenderingPreProcessorManagerremoveProcessor in interface NoteRenderingPreProcessorManagerprocessor - The processor to removeCopyright © 2019 Communote team. All rights reserved.