|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.googlecode.fascinator.redbox.plugins.handle.HandleTransformer
public class HandleTransformer
Create and store handles against a particular name authority. Most of the handle code is a direct implementation of the examples provided at: http://www.handle.net/
Download the system and it will be bundled with all source, including samples on handle creation: src.java/net/handle/apps/simple/HDLCreate.java
Keep in mind that each data source can provide an overriding values.
| Option | Description | Required | Default |
|---|---|---|---|
| id | Id of the transformer | Yes | handle |
| namingAuthority | Your registered Handle naming authority (or prefix). | Yes | N/A |
| privateKeyPath | The path to a binary private key on disk. This is created as part of your Handle Server installation. | Yes | N/A |
| passPhrase | Pass phrase to unlock the private key (if it requires such). | No | N/A |
| template | The template to evaluate in creating Handle suffixes. Supports
placeholder values:
|
No | pid:[[OID]] |
| urlTemplate | Similar to above, but this template decides how to build the URL this
Handle will resolve to. If none is provided, the Handle will not resolve.
Supports placeholder values:
|
No | N/A |
| updateUrl | Boolean flag used to force an update on URLs in Handles. For performance reasons it is advised that this should only be set to 'true' if the template for resolvable URLs has changed. | No | false |
| source | The source payload where description data can be found. The special value of '.tfpackage' can be used to find whichever payload contains the Facsinator package (eg. ReDBox Collections). | No | metadata.json |
| description | Instructs the Transformer on how to build a description String from
the source metadata. Has two child nodes:
|
No | N/A |
| output | The path to store the resulting Handle in the source metadata. Has two child nodes:
|
No | Combination of both values defaults to "metadata" > "dc:identifier" |
| useIncrements | Boolean flag to decide if auto-incrementing numbers are in use. | No | false |
| incrementingFile | If the above flag is set, this File is used to store/read the current value of the sequence. | Yes (if 'useIncrements' is set) | N/A |
| publishedDomain | The publicly accessible domain you will use to publish your Handles. Technically you can point this to your local Handle server, but it is strongly advised that the default Handle Network domain should be used. | No | hdl.handle.net |
There is also some related configuration in the Curation Manager that this Transformer looks for under "curation" > "pidProperty". This value decides on the metadata property where the Handle should be stored for the Curation Manager to find it.
| Constructor Summary | |
|---|---|
HandleTransformer()
Constructor |
|
| Method Summary | |
|---|---|
String |
getId()
Get Transformer ID |
String |
getName()
Get Transformer Name |
com.googlecode.fascinator.api.PluginDescription |
getPluginDetails()
Gets a PluginDescription object relating to this plugin. |
void |
init(File jsonFile)
Init method from file |
void |
init(String jsonString)
Init method from String |
void |
shutdown()
Shut down the transformer plugin |
com.googlecode.fascinator.api.storage.DigitalObject |
transform(com.googlecode.fascinator.api.storage.DigitalObject in,
String jsonConfig)
Transform method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HandleTransformer()
| Method Detail |
|---|
public void init(File jsonFile)
throws com.googlecode.fascinator.api.PluginException
init in interface com.googlecode.fascinator.api.PluginjsonFile -
IOException
com.googlecode.fascinator.api.PluginException
public void init(String jsonString)
throws com.googlecode.fascinator.api.PluginException
init in interface com.googlecode.fascinator.api.PluginjsonString -
IOException
com.googlecode.fascinator.api.PluginException
public com.googlecode.fascinator.api.storage.DigitalObject transform(com.googlecode.fascinator.api.storage.DigitalObject in,
String jsonConfig)
throws com.googlecode.fascinator.api.transformer.TransformerException
transform in interface com.googlecode.fascinator.api.transformer.Transformerobject - : DigitalObject to be transformedjsonConfig - : String containing configuration for this item
com.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.Plugin
public void shutdown()
throws com.googlecode.fascinator.api.PluginException
shutdown in interface com.googlecode.fascinator.api.Plugincom.googlecode.fascinator.api.PluginException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||