org.fcrepo.test
Class ManagedContentTranslator

java.lang.Object
  extended by org.fcrepo.test.ManagedContentTranslator

public class ManagedContentTranslator
extends Object

Utility class for translating an existing Fedora DO into one where DC, RELS-EXT and RELS-INT are managed content rather than inline XML.

Version:
$Id$
Author:
Stephen Bayliss

Constructor Summary
ManagedContentTranslator()
           
 
Method Summary
static void createManagedClone(FedoraAPIMMTOM apim, String pidToClone, String newPid)
          Create a managed content DO from an existing DO, ingesting the new object.
static void main(String[] args)
           
protected static byte[] translate(InputStream input, String newPID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedContentTranslator

public ManagedContentTranslator()
Method Detail

main

public static void main(String[] args)

createManagedClone

public static void createManagedClone(FedoraAPIMMTOM apim,
                                      String pidToClone,
                                      String newPid)
                               throws Exception
Create a managed content DO from an existing DO, ingesting the new object. Datastreams DC, RELS-EXT and RELS-INT are managed content in the new object

Parameters:
apim -
pidToClone - - PID of original object
newPid - - PID for new managed content object
Throws:
Exception

translate

protected static byte[] translate(InputStream input,
                                  String newPID)
                           throws Exception
Throws:
Exception


Copyright © 2012 DuraSpace. All Rights Reserved.