Skip to main content
Version: 1.15

Acquisition chain - Product generation plugins

Overview

note

This extension point allows to define how to construct a Product from a list of files to acquire. A Product is a package of related files. At the end of the aquisition process each product is represented by a Feature in a SIP Collection.

REGARDS provides many implementation of this extension point :

Interface

IProductPlugin

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.

NOTE : To define a product with many files, the plugin must return the same product name for each file.

@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 IProductPlugin {

@Override
public String getProductName(Path filePath) throws ModuleException {
// Return the product name for the give scanned file
}

}