public class BasicVersioningTransformer extends Object implements com.googlecode.fascinator.api.transformer.Transformer
This plugin purely copies the current version of the digital object to a timestamped duplicate.
Keep in mind that each data source can provide overriding configuration. This transformer currently allows overrides on all fields (except 'id').
| Option | Description | Required | Default |
|---|---|---|---|
| id | Id of the transformer | Yes | basicVersioning |
| sourcePayload | Source payload from which the object will be versioned. | No | object.tfpackage |
"basicVersioning": {
"id" : "basicVersioning",
"sourcePayload" : "object.tfpackage",
}
| Constructor and Description |
|---|
BasicVersioningTransformer() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
String |
getName() |
com.googlecode.fascinator.api.PluginDescription |
getPluginDetails() |
void |
init(File jsonFile) |
void |
init(String jsonString) |
void |
shutdown() |
com.googlecode.fascinator.api.storage.DigitalObject |
transform(com.googlecode.fascinator.api.storage.DigitalObject in,
String config) |
public com.googlecode.fascinator.api.storage.DigitalObject transform(com.googlecode.fascinator.api.storage.DigitalObject in,
String config)
throws com.googlecode.fascinator.api.transformer.TransformerException
transform in interface com.googlecode.fascinator.api.transformer.Transformercom.googlecode.fascinator.api.transformer.TransformerExceptionpublic String getId()
getId in interface com.googlecode.fascinator.api.Pluginpublic String getName()
getName in interface com.googlecode.fascinator.api.Pluginpublic com.googlecode.fascinator.api.PluginDescription getPluginDetails()
getPluginDetails in interface com.googlecode.fascinator.api.Pluginpublic void init(File jsonFile) throws com.googlecode.fascinator.api.PluginException
init in interface com.googlecode.fascinator.api.Plugincom.googlecode.fascinator.api.PluginExceptionpublic void init(String jsonString) throws com.googlecode.fascinator.api.PluginException
init in interface com.googlecode.fascinator.api.Plugincom.googlecode.fascinator.api.PluginExceptionpublic void shutdown()
throws com.googlecode.fascinator.api.PluginException
shutdown in interface com.googlecode.fascinator.api.Plugincom.googlecode.fascinator.api.PluginExceptionCopyright © 2009-2015. All Rights Reserved.