public class Rollback
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Rollback(com.uc4.util.XMLDocument doc)
Constructs a
Rollback object from the specified XMLDocument |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBackupDirectory()
Returns the backup directory or an empty String if not set.
|
UC4ObjectName |
getBackupObject()
Returns the UC4 Object for the backup or an empty instance if not set.
|
UC4ObjectName |
getRollbackObject()
Returns the UC4 Object for rollback.
|
boolean |
isDeleteBeforeRestore()
Returns
true if the "Delete before restore" checkbox is selected in the User Interface. |
boolean |
isEnabled()
Returns
true if rollback is enabled for this object otherwise false . |
boolean |
isIncludeSubdirectories()
Returns
true if the "Include sub-directories" option is selected in the User Interface. |
void |
setBackupDirectory(java.lang.String backupDir)
Sets the backup directory.
|
void |
setBackupObject(UC4ObjectName backupObject)
Sets the UC4 object for backup.
|
void |
setDeleteBeforeRestore(boolean deleteBeforeRestore)
Enables or disables the "Delete before restore" option.
|
void |
setEnabled(boolean enabled)
Enables or disables rollback.
|
void |
setIncludeSubdirectories(boolean includeSubdirectories)
Enables or disables the "Include sub-directories" option.
|
void |
setRollbackObject(UC4ObjectName rollbackObject)
Sets the rollback object.
|
protected void |
store(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element objectElement)
Stores the data of this class in the specified XML document
|
protected Rollback(com.uc4.util.XMLDocument doc)
Rollback
object from the specified XMLDocument
doc
- XML Documentpublic boolean isEnabled()
true
if rollback is enabled for this object otherwise false
.public void setEnabled(boolean enabled)
enabled
- true if rollback should be enabledpublic UC4ObjectName getBackupObject()
null
public void setBackupObject(UC4ObjectName backupObject)
backupObject
- Backup, null
or an empty instance can
be used to clear this field.public UC4ObjectName getRollbackObject()
null
.UC4ObjectName
instance if not set.public void setRollbackObject(UC4ObjectName rollbackObject)
rollbackObject
- null
or an empty instance can
be used to clear this field.public java.lang.String getBackupDirectory()
null
public void setBackupDirectory(java.lang.String backupDir)
backupDir
- Directory, null
or an empty String can be used
to clear this field.public boolean isDeleteBeforeRestore()
true
if the "Delete before restore" checkbox is selected in the User Interface.public void setDeleteBeforeRestore(boolean deleteBeforeRestore)
deleteBeforeRestore
- Delete before restorepublic boolean isIncludeSubdirectories()
true
if the "Include sub-directories" option is selected in the User Interface.public void setIncludeSubdirectories(boolean includeSubdirectories)
includeSubdirectories
- Include sub directories?protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement)
doc
- DocumentobjectElement
- Object element