plugin.admin-api-on-write-file

Defines the id of the server plugin which will provide the functionality to scan a file.

Key: plugin.admin-api-on-write-file
Type: com.funnelback.plugin.PluginId
Can be set in: global.cfg

Description

This server plugin will be invoked when the content of a file is updated via the admin api. Admin api expects this plugin to return true or false after scanning the content of the file. Admin api will only update the content if the plugin returned true. Otherwise the changes won’t be added to the file.

Default Value

No default value

Examples

Use the plugin with the file-scanner to scan files every time they get updated with new content.

plugin.admin-api-on-write-file=file-scanner