|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PreSaveHook
A pre-save hook is executed after the repository user requested to save the document, but before the document is actually saved.
This hook can modify the content of the document before saving. For example, to extract information from images or other types of documents and assign it to parts or fields.
The PreSaveHook should be registered as a plugin with the
PluginRegistry
| Method Summary | |
|---|---|
void |
process(Document document,
Repository repository)
Performs the pre-save work by modifying the supplied Document object. |
| Method Detail |
|---|
void process(Document document,
Repository repository)
throws Exception
If this method throws an exception, it will be logged, but the document will still be saved. Hence, a pre-save hook cannot prevent a document from being saved.
Exception
|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||