plugin.admin-api-on-write-file

Background

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.

Setting the key

Set this configuration key in the server configuration.

Use the configuration key editor to add or edit the plugin.admin-api-on-write-file key, and set the value. This can be set to any valid com.funnelback.plugin.PluginId value.

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