org.mycore.services.migration
Class MCRMigrationCommands

java.lang.Object
  extended by org.mycore.frontend.cli.MCRAbstractCommands
      extended by org.mycore.services.migration.MCRMigrationCommands
All Implemented Interfaces:
MCRExternalCommandInterface

public class MCRMigrationCommands
extends MCRAbstractCommands


Field Summary
 
Fields inherited from class org.mycore.frontend.cli.MCRAbstractCommands
command, CONFIG
 
Constructor Summary
MCRMigrationCommands()
           
 
Method Summary
static List<String> migrateAccess()
           
static List<String> migrateAccess(int step)
           
static List<String> migrateClassifications()
           
static void migrateClassifications(int step)
           
static List<String> migrateMCRXMLTable()
           
static void migrateMCRXMLTable(String objectID)
          Migrates the MCRXMLTABLE to the version with last modified attribute.
static List<String> migrateUser()
           
static List<String> migrateUser(int step)
           
 
Methods inherited from class org.mycore.frontend.cli.MCRAbstractCommands
getPossibleCommands
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCRMigrationCommands

public MCRMigrationCommands()
Method Detail

migrateClassifications

public static List<String> migrateClassifications()
                                           throws JDOMException
Throws:
JDOMException

migrateClassifications

public static void migrateClassifications(int step)
                                   throws JDOMException,
                                          URISyntaxException
Throws:
JDOMException
URISyntaxException

migrateUser

public static List<String> migrateUser()

migrateUser

public static List<String> migrateUser(int step)
                                throws Exception
Throws:
Exception

migrateAccess

public static List<String> migrateAccess()

migrateAccess

public static List<String> migrateAccess(int step)
                                  throws Exception
Throws:
Exception

migrateMCRXMLTable

public static List<String> migrateMCRXMLTable()

migrateMCRXMLTable

public static void migrateMCRXMLTable(String objectID)
                               throws Exception
Migrates the MCRXMLTABLE to the version with last modified attribute.

Parameters:
objectID - the objectID to be migrated
Throws:
Exception