org.apache.maven.continuum.management.redback
Class LegacyJdoDataManagementTool

java.lang.Object
  extended by org.apache.maven.continuum.management.redback.LegacyJdoDataManagementTool
All Implemented Interfaces:
DataManagementTool

public class LegacyJdoDataManagementTool
extends Object
implements DataManagementTool

JDO implementation the database management tool API.

Version:
$Id: LegacyJdoDataManagementTool.java 1372260 2012-08-13 04:29:09Z brett $

Constructor Summary
LegacyJdoDataManagementTool()
           
 
Method Summary
 void backupDatabase(File backupDirectory)
          Backup the database.
 void backupKeyDatabase(File backupDirectory)
           
 void backupRBACDatabase(File backupDirectory)
           
 void backupUserDatabase(File backupDirectory)
           
 void eraseDatabase()
          Smoke the database.
 void eraseKeysDatabase()
           
 void eraseRBACDatabase()
           
 void eraseUsersDatabase()
           
 void restoreDatabase(File backupDirectory, boolean strict)
          Restore the database.
 void restoreKeysDatabase(File backupDirectory)
           
 void restoreRBACDatabase(File backupDirectory)
           
 void restoreUsersDatabase(File backupDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyJdoDataManagementTool

public LegacyJdoDataManagementTool()
Method Detail

backupDatabase

public void backupDatabase(File backupDirectory)
                    throws IOException
Description copied from interface: DataManagementTool
Backup the database.

Specified by:
backupDatabase in interface DataManagementTool
Parameters:
backupDirectory - the directory to backup to
Throws:
IOException - if there is a problem writing to the backup file

restoreDatabase

public void restoreDatabase(File backupDirectory,
                            boolean strict)
                     throws IOException,
                            DataManagementException
Description copied from interface: DataManagementTool
Restore the database.

Specified by:
restoreDatabase in interface DataManagementTool
Parameters:
backupDirectory - the directory where the backup to restore from resides
Throws:
IOException - if there is a problem reading the backup file
DataManagementException - if there is a problem parsing the backup file

eraseDatabase

public void eraseDatabase()
Description copied from interface: DataManagementTool
Smoke the database.

Specified by:
eraseDatabase in interface DataManagementTool

backupRBACDatabase

public void backupRBACDatabase(File backupDirectory)
                        throws org.codehaus.plexus.security.rbac.RbacManagerException,
                               IOException,
                               javax.xml.stream.XMLStreamException
Throws:
org.codehaus.plexus.security.rbac.RbacManagerException
IOException
javax.xml.stream.XMLStreamException

backupUserDatabase

public void backupUserDatabase(File backupDirectory)
                        throws IOException,
                               javax.xml.stream.XMLStreamException
Throws:
IOException
javax.xml.stream.XMLStreamException

backupKeyDatabase

public void backupKeyDatabase(File backupDirectory)
                       throws IOException,
                              javax.xml.stream.XMLStreamException
Throws:
IOException
javax.xml.stream.XMLStreamException

restoreRBACDatabase

public void restoreRBACDatabase(File backupDirectory)
                         throws IOException,
                                javax.xml.stream.XMLStreamException,
                                org.codehaus.plexus.security.rbac.RbacManagerException,
                                org.codehaus.plexus.jdo.PlexusStoreException
Throws:
IOException
javax.xml.stream.XMLStreamException
org.codehaus.plexus.security.rbac.RbacManagerException
org.codehaus.plexus.jdo.PlexusStoreException

restoreUsersDatabase

public void restoreUsersDatabase(File backupDirectory)
                          throws IOException,
                                 javax.xml.stream.XMLStreamException
Throws:
IOException
javax.xml.stream.XMLStreamException

restoreKeysDatabase

public void restoreKeysDatabase(File backupDirectory)
                         throws IOException,
                                javax.xml.stream.XMLStreamException
Throws:
IOException
javax.xml.stream.XMLStreamException

eraseRBACDatabase

public void eraseRBACDatabase()

eraseUsersDatabase

public void eraseUsersDatabase()

eraseKeysDatabase

public void eraseKeysDatabase()


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.