public class ContentTypeNotePreProcessor extends Object implements NoteStoringImmutableContentPreProcessor, Orderable
DEFAULT_ORDER| Constructor and Description |
|---|
ContentTypeNotePreProcessor() |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
boolean |
isProcessAutosave() |
NoteStoringTO |
process(NoteStoringTO note)
Processing function which is invoked before a new note is created.
|
NoteStoringTO |
processEdit(Note noteToEdit,
NoteStoringTO noteStoringTO)
Processing function which is invoked before an existing note is updated.
|
public int getOrder()
getOrder in interface OrderablegetOrder in interface NoteStoringImmutableContentPreProcessorpublic boolean isProcessAutosave()
isProcessAutosave in interface NoteStoringImmutableContentPreProcessorpublic NoteStoringTO process(NoteStoringTO note) throws NoteStoringPreProcessorException
process in interface NoteStoringImmutableContentPreProcessornote - transfer object holding the data for creating the noteNoteStoringPreProcessorException - thrown to indicate that the pre-processing failed and the note cannot be createdpublic NoteStoringTO processEdit(Note noteToEdit, NoteStoringTO noteStoringTO) throws NoteStoringPreProcessorException, NoteManagementAuthorizationException
NoteStoringImmutableContentPreProcessorprocessEdit in interface NoteStoringImmutableContentPreProcessornoteToEdit - the note which should be edited. Implementors should not modify the note.noteStoringTO - transfer object holding the data for updating the noteNoteStoringPreProcessorException - thrown to indicate that the pre-processing failed and the note cannot be createdNoteManagementAuthorizationException - thrown to indicate that the note cannot be created because of access restrictionsCopyright © 2019 Communote team. All rights reserved.