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 OrderablegetOrder in interface NoteStoringImmutableContentPreProcessorpublic boolean isProcessAutosave()
isProcessAutosave in interface NoteStoringImmutableContentPreProcessorpublic NoteStoringTO process(NoteStoringTO noteStoringTO) throws ActivityDeactivatedNotePreProcessorException, NoteStoringPreProcessorException, NoteManagementAuthorizationException
process in interface NoteStoringImmutableContentPreProcessornoteStoringTO - 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
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.