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 Orderable
getOrder
in interface NoteStoringImmutableContentPreProcessor
public boolean isProcessAutosave()
isProcessAutosave
in interface NoteStoringImmutableContentPreProcessor
public NoteStoringTO process(NoteStoringTO note) throws NoteStoringPreProcessorException
process
in interface NoteStoringImmutableContentPreProcessor
note
- 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
NoteStoringImmutableContentPreProcessor
processEdit
in interface NoteStoringImmutableContentPreProcessor
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.