Skip to main content
Version: 1.15

Acquisition chain - Scan plugins

Overview​

note

This extension point allows to define how to validate a file to acquire. Each input file of the acquisition process is subject to this validation. If the validation fails, the file is rejected.

REGARDS provides many implementation of this extension point :

Interface​

IValidationPlugin

Implementation​

To learn more about how to create your own plugin see Plugins

Here under is an exemple of how to implements this extension point to create your own business logic.

@Plugin(id = "exemple", version = "1.0.0", description = "exemple plugin",
author = "REGARDS Team", contact = "regards@c-s.fr", licence = "LGPLv3.0", owner = "CSSI",
url = "https://github.com/RegardsOss")
public class Plugin implements IValidationPlugin {
@Override
public boolean validate(Path filePath) throws ModuleException {
return true;
}
}