Package org.mycore.migration.cli
Class MCRMigrationCommands
java.lang.Object
org.mycore.migration.cli.MCRMigrationCommands
- Author:
- Thomas Scheffler (yagee)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addServFlags
(String id) static void
fixDerivateLinks
(String xpath, String id) static void
static void
migrateDerivateLink
(String objectIDStr) static void
migrateTEIEntrysOfMetsFileOfDerivate
(String derivateIdStr) static void
setOrderOfDerivate
(String derivateIDStr, String orderStr)
-
Constructor Details
-
MCRMigrationCommands
public MCRMigrationCommands()
-
-
Method Details
-
addServFlags
-
addServFlags
@MCRCommand(syntax="migrate author servflags for {0}", help="Create missing servflags for createdby and modifiedby for object {0}. (MCR-786)", order=10) public static void addServFlags(String id) throws IOException, MCRPersistenceException, MCRActiveLinkException, MCRAccessException -
fixMCR1717
@MCRCommand(syntax="fix MCR-1717", help="Fixes wrong entries in tile job table (see MCR-1717 comments)") public static void fixMCR1717() -
fixDerivateLinks
@MCRCommand(syntax="fix invalid derivate links {0} for {1}", help="Fixes the paths of all derivate links ({0} -> xpath -> e.g. /mycoreobject/metadata/derivateLinks/derivateLink) for object {1}. (MCR-1267)", order=15) public static void fixDerivateLinks(String xpath, String id) throws IOException, JDOMException, SAXException - Throws:
IOException
JDOMException
SAXException
-
fixMissingChildren
@MCRCommand(syntax="add missing children to {0}", help="Adds missing children to structure of parent {0}. (MCR-1480)", order=15) public static void fixMissingChildren(String id) throws IOException, JDOMException, SAXException - Throws:
IOException
JDOMException
SAXException
-
fixMissingChildren
@MCRCommand(syntax="add missing children", help="Adds missing children to structure of parent objects using MCRLinkTableManager. (MCR-1480)", order=20) public static List<String> fixMissingChildren() throws IOException, JDOMException, SAXException- Throws:
IOException
JDOMException
SAXException
-
migrateTEIEntrysOfMetsFileOfDerivate
@MCRCommand(syntax="migrate tei entries in mets file of derivate {0}") public static void migrateTEIEntrysOfMetsFileOfDerivate(String derivateIdStr) throws IOException, JDOMException, SAXException - Throws:
IOException
JDOMException
SAXException
-
migrateAllDerivates
@MCRCommand(syntax="migrate all derivates", help="Migrates the order and label of all derivates (MCR-2003, MCR-2099)") public static List<String> migrateAllDerivates() -
migrateDerivateLink
-
setOrderOfDerivate
@MCRCommand(syntax="migrate derivate {0} using order {1}", help="Sets the order of derivate {0} to the number {1}") public static void setOrderOfDerivate(String derivateIDStr, String orderStr) throws MCRAccessException - Throws:
MCRAccessException
-