Package com.uc4.api.objects
Class Rollback
java.lang.Object
com.uc4.api.objects.Rollback
This class represents the rollback tab on executable Automation Engine objects.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRollback(com.uc4.util.XMLDocument doc) Constructs aRollbackobject from the specifiedXMLDocument -
Method Summary
Modifier and TypeMethodDescriptionReturns the backup directory or an empty String if not set.Returns the UC4 Object for the backup or an empty instance if not set.Returns the UC4 Object for rollback.booleanReturnstrueif the "Delete before restore" checkbox is selected in the User Interface.booleanReturnstrueif rollback is enabled for this object otherwisefalse.booleanReturnstrueif the "Include sub-directories" option is selected in the User Interface.voidsetBackupDirectory(String backupDir) Sets the backup directory.voidsetBackupObject(UC4ObjectName backupObject) Sets the UC4 object for backup.voidsetDeleteBeforeRestore(boolean deleteBeforeRestore) Enables or disables the "Delete before restore" option.voidsetEnabled(boolean enabled) Enables or disables rollback.voidsetIncludeSubdirectories(boolean includeSubdirectories) Enables or disables the "Include sub-directories" option.voidsetRollbackObject(UC4ObjectName rollbackObject) Sets the rollback object.protected voidStores the data of this class in the specified XML document
-
Constructor Details
-
Rollback
protected Rollback(com.uc4.util.XMLDocument doc) Constructs aRollbackobject from the specifiedXMLDocument- Parameters:
doc- XML Document
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returnstrueif rollback is enabled for this object otherwisefalse.- Returns:
- Rollback enabled?
-
setEnabled
public void setEnabled(boolean enabled) Enables or disables rollback.- Parameters:
enabled- true if rollback should be enabled
-
getBackupObject
Returns the UC4 Object for the backup or an empty instance if not set.- Returns:
- Backup object, never
null
-
setBackupObject
Sets the UC4 object for backup.- Parameters:
backupObject- Backup,nullor an empty instance can be used to clear this field.
-
getRollbackObject
Returns the UC4 Object for rollback. This method does not returnnull.- Returns:
- Rollback object or an empty
UC4ObjectNameinstance if not set.
-
setRollbackObject
Sets the rollback object.- Parameters:
rollbackObject-nullor an empty instance can be used to clear this field.
-
getBackupDirectory
Returns the backup directory or an empty String if not set.- Returns:
- Directory, never
null
-
setBackupDirectory
Sets the backup directory.- Parameters:
backupDir- Directory,nullor an empty String can be used to clear this field.
-
isDeleteBeforeRestore
public boolean isDeleteBeforeRestore()Returnstrueif the "Delete before restore" checkbox is selected in the User Interface.- Returns:
- Delete before restore
-
setDeleteBeforeRestore
public void setDeleteBeforeRestore(boolean deleteBeforeRestore) Enables or disables the "Delete before restore" option.- Parameters:
deleteBeforeRestore- Delete before restore
-
isIncludeSubdirectories
public boolean isIncludeSubdirectories()Returnstrueif the "Include sub-directories" option is selected in the User Interface.- Returns:
- Include sub directories?
-
setIncludeSubdirectories
public void setIncludeSubdirectories(boolean includeSubdirectories) Enables or disables the "Include sub-directories" option.- Parameters:
includeSubdirectories- Include sub directories?
-
store
Stores the data of this class in the specified XML document- Parameters:
doc- DocumentobjectElement- Object element
-