com.googlecode.fascinator.transformer.basicVersioning
Class BasicVersioningTransformer

java.lang.Object
  extended by com.googlecode.fascinator.transformer.basicVersioning.BasicVersioningTransformer
All Implemented Interfaces:
com.googlecode.fascinator.api.Plugin, com.googlecode.fascinator.api.transformer.Transformer
Direct Known Subclasses:
ExtensionBasicVersioningTransformer

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.

Configuration

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

Examples

  1. Adding Transformer to The Fascinator
     "basicVersioning": {
         "id" : "basicVersioning",
         "sourcePayload" : "object.tfpackage",
     }
     

Author:
Duncan Dickinson, Jianfeng Li

Constructor Summary
BasicVersioningTransformer()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicVersioningTransformer

public BasicVersioningTransformer()
Method Detail

transform

public com.googlecode.fascinator.api.storage.DigitalObject transform(com.googlecode.fascinator.api.storage.DigitalObject in,
                                                                     String config)
                                                              throws com.googlecode.fascinator.api.transformer.TransformerException
Specified by:
transform in interface com.googlecode.fascinator.api.transformer.Transformer
Throws:
com.googlecode.fascinator.api.transformer.TransformerException

getId

public String getId()
Specified by:
getId in interface com.googlecode.fascinator.api.Plugin

getName

public String getName()
Specified by:
getName in interface com.googlecode.fascinator.api.Plugin

getPluginDetails

public com.googlecode.fascinator.api.PluginDescription getPluginDetails()
Specified by:
getPluginDetails in interface com.googlecode.fascinator.api.Plugin

init

public void init(File jsonFile)
          throws com.googlecode.fascinator.api.PluginException
Specified by:
init in interface com.googlecode.fascinator.api.Plugin
Throws:
com.googlecode.fascinator.api.PluginException

init

public void init(String jsonString)
          throws com.googlecode.fascinator.api.PluginException
Specified by:
init in interface com.googlecode.fascinator.api.Plugin
Throws:
com.googlecode.fascinator.api.PluginException

shutdown

public void shutdown()
              throws com.googlecode.fascinator.api.PluginException
Specified by:
shutdown in interface com.googlecode.fascinator.api.Plugin
Throws:
com.googlecode.fascinator.api.PluginException


Copyright © 2009-2014. All Rights Reserved.