public class TemplateNoteStoringPreProcessor extends Object implements NoteStoringEditableContentPreProcessor
DEFAULT_ORDER
Constructor and Description |
---|
TemplateNoteStoringPreProcessor() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
boolean |
isProcessAutosave() |
NoteStoringTO |
process(NoteStoringTO noteStoringTO)
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 Orderable
getOrder
in interface NoteStoringEditableContentPreProcessor
public boolean isProcessAutosave()
isProcessAutosave
in interface NoteStoringEditableContentPreProcessor
public NoteStoringTO process(NoteStoringTO noteStoringTO) throws NoteStoringPreProcessorException, NoteManagementAuthorizationException
NoteStoringEditableContentPreProcessor
process
in interface NoteStoringEditableContentPreProcessor
noteStoringTO
- transfer object holding the data for creating 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 restrictionspublic NoteStoringTO processEdit(Note noteToEdit, NoteStoringTO noteStoringTO) throws NoteStoringPreProcessorException, NoteManagementAuthorizationException
NoteStoringEditableContentPreProcessor
processEdit
in interface NoteStoringEditableContentPreProcessor
noteToEdit
- 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.