public class ActivityNoteStoringPreProcessor extends Object implements NoteStoringImmutableContentPreProcessor
templateId
property is set and the property contentTypes.activity
is set to
activity
.DEFAULT_ORDER
Constructor and Description |
---|
ActivityNoteStoringPreProcessor() |
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 NoteStoringImmutableContentPreProcessor
public boolean isProcessAutosave()
isProcessAutosave
in interface NoteStoringImmutableContentPreProcessor
public NoteStoringTO process(NoteStoringTO noteStoringTO) throws ActivityDeactivatedNotePreProcessorException, NoteStoringPreProcessorException, NoteManagementAuthorizationException
process
in interface NoteStoringImmutableContentPreProcessor
noteStoringTO
- transfer object holding the data for creating the noteActivityDeactivatedNotePreProcessorException
- Thrown, when the given activity is deactivated.NoteStoringPreProcessorException
- 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
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.