org.mycore.services.migration
Class MCRUserMigrationHelper

java.lang.Object
  extended by org.mycore.services.migration.MCRUserMigrationHelper

 class MCRUserMigrationHelper
extends Object

Update of User Management to comply with new MyCoRe 2.0 Therefore we first checkout all users and groups, drop the concerning tables and check all users and groups back in. Before check-in the new user tables will be automatically created by Hibernate which takes care of new primary key and foreign key constraints.

Author:
Robert Stephan

Constructor Summary
MCRUserMigrationHelper()
           
 
Method Summary
(package private) static void cleanupGroupFile()
           
(package private) static void cleanupUserFile()
           
(package private) static void deleteTempFiles()
           
(package private) static void dropTables()
           
(package private) static File getGroupFile()
           
(package private) static File getUserFile()
           
(package private) static void updateAdmins()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCRUserMigrationHelper

MCRUserMigrationHelper()
Method Detail

getUserFile

static File getUserFile()

getGroupFile

static File getGroupFile()

dropTables

static final void dropTables()
                      throws SQLException
Throws:
SQLException

deleteTempFiles

static final void deleteTempFiles()

cleanupGroupFile

static void cleanupGroupFile()
                      throws Exception
Throws:
Exception

cleanupUserFile

static void cleanupUserFile()

updateAdmins

static void updateAdmins()