org.fcrepo.test
Class ManagedContentTranslator
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManagedContentTranslator
public ManagedContentTranslator()
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 objectnewPid - - 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.