|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.manager.backup.DefaultBackupManager
public class DefaultBackupManager
Default implementation of BackupManager
Constructor Summary | |
---|---|
DefaultBackupManager(XmlMigrationManager xmlMigrationManager,
FileConfigurationExporter fileConfigurationExporter,
BackupFileStore backupFileStore)
|
Method Summary | |
---|---|
long |
backup(String exportFileName,
boolean resetDomain)
Perform an XML export of crowd, as well as of the directory configuration. |
String |
generateAutomatedBackupFileName()
Generate a filename for an automated backup, that can then be used with BackupManager.backup(String, boolean) . |
protected String |
generateFileName(String pattern)
|
String |
generateManualBackupFileName()
Generate a filename for a manual backup, that can then be used with BackupManager.backup(String, boolean) |
BackupSummary |
getAutomatedBackupSummary()
Return a summary of how many automated backups are present, and how old are the oldest and most recent backups. |
String |
getBackupFileFullPath(String fileName)
Generate the full path of the given backup filename. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultBackupManager(XmlMigrationManager xmlMigrationManager, FileConfigurationExporter fileConfigurationExporter, BackupFileStore backupFileStore)
Method Detail |
---|
public String generateManualBackupFileName()
BackupManager
BackupManager.backup(String, boolean)
generateManualBackupFileName
in interface BackupManager
public String generateAutomatedBackupFileName()
BackupManager
BackupManager.backup(String, boolean)
.
generateAutomatedBackupFileName
in interface BackupManager
public String getBackupFileFullPath(String fileName)
BackupManager
getBackupFileFullPath
in interface BackupManager
fileName
- a filename
@Transactional public long backup(String exportFileName, boolean resetDomain) throws ExportException
BackupManager
backup
in interface BackupManager
exportFileName
- the name of the file to export to (not the full path)resetDomain
- whether to activate the RESET_DOMAIN option or not
ExportException
- in case an error happens while exporting the datapublic BackupSummary getAutomatedBackupSummary()
BackupManager
getAutomatedBackupSummary
in interface BackupManager
BackupSummary
protected String generateFileName(String pattern)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |