public class BackupResourceTask
extends info.magnolia.module.delta.AbstractRepositoryTask
Modifier and Type | Field and Description |
---|---|
static boolean |
ADD_TIMESTAMP |
static boolean |
COPY_ORIGIN_NODE |
static String |
DEFAULT_BACKUP_PATH |
static boolean |
DEFAULT_ORIGIN_NODE_ACTION |
static boolean |
DEFAULT_TIMESTAMP_ACTION |
static String |
DEFAULT_TIMESTAMP_FORMAT |
static boolean |
MOVE_ORIGIN_NODE |
static boolean |
NO_TIMESTAMP |
static String |
WORKSPACE |
Constructor and Description |
---|
BackupResourceTask(String name,
String description,
String resourcePath) |
BackupResourceTask(String name,
String description,
String resourcePath,
boolean moveOrigin) |
BackupResourceTask(String name,
String description,
String resourcePath,
boolean moveOrigin,
boolean noTimeStamp) |
BackupResourceTask(String name,
String description,
String resourcePath,
boolean moveOrigin,
String timeStampFormat) |
BackupResourceTask(String name,
String description,
String resourcePath,
String backupPath) |
BackupResourceTask(String name,
String description,
String resourcePath,
String backupPath,
boolean moveOrigin) |
BackupResourceTask(String name,
String description,
String resourcePath,
String backupPath,
boolean moveOrigin,
boolean noTimeStamp) |
BackupResourceTask(String name,
String description,
String resourcePath,
String backupPath,
boolean moveOrigin,
String timeStampFormat) |
BackupResourceTask(String name,
String description,
String resourcePath,
String backupPath,
String timeStampFormat) |
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(info.magnolia.module.InstallContext installContext) |
public static final String DEFAULT_BACKUP_PATH
public static final String WORKSPACE
public static final String DEFAULT_TIMESTAMP_FORMAT
public static final boolean MOVE_ORIGIN_NODE
public static final boolean COPY_ORIGIN_NODE
public static final boolean DEFAULT_ORIGIN_NODE_ACTION
public static final boolean ADD_TIMESTAMP
public static final boolean NO_TIMESTAMP
public static final boolean DEFAULT_TIMESTAMP_ACTION
public BackupResourceTask(String name, String description, String resourcePath)
name
- task namedescription
- task descriptionresourcePath
- the path of the resource to backuppublic BackupResourceTask(String name, String description, String resourcePath, boolean moveOrigin)
name
- task namedescription
- task descriptionresourcePath
- the path of the resource to backupmoveOrigin
- true if moving the origin node, false if copying the origin node. Default value = true (DEFAULT_ORIGIN_NODE_ACTION)public BackupResourceTask(String name, String description, String resourcePath, boolean moveOrigin, String timeStampFormat)
name
- task namedescription
- task descriptionresourcePath
- the path of the resource to backupmoveOrigin
- true if moving the origin node, false if copying the origin node. Default value = true (DEFAULT_ORIGIN_NODE_ACTION)timeStampFormat
- the format of the time stamp which is added to the backed up resource name. Default value = "'date'-yyyy-MM-dd-'time'-kk-mm-ss-SSSS" (DEFAULT_TIMESTAMP_FORMAT)public BackupResourceTask(String name, String description, String resourcePath, boolean moveOrigin, boolean noTimeStamp)
name
- task namedescription
- task descriptionresourcePath
- the path of the resource to backupmoveOrigin
- true if moving the origin node, false if copying the origin node. Default value = true (DEFAULT_ORIGIN_NODE_ACTION)noTimeStamp
- not adding a time stamp folder to the backup path. Default value = false (DEFAULT_TIMESTAMP_ACTION)public BackupResourceTask(String name, String description, String resourcePath, String backupPath)
name
- task namedescription
- task descriptionresourcePath
- the path of the resource to backupbackupPath
- destination path of the backup within resources. Default value = /backup (DEFAULT_BACKUP_PATH)public BackupResourceTask(String name, String description, String resourcePath, String backupPath, boolean moveOrigin)
name
- task namedescription
- task descriptionresourcePath
- the path of the resource to backupbackupPath
- destination path of the backup within resources. Default value = /backup (DEFAULT_BACKUP_PATH)moveOrigin
- true if moving the origin node, false if copying the origin node. Default value = true (DEFAULT_ORIGIN_NODE_ACTION)public BackupResourceTask(String name, String description, String resourcePath, String backupPath, String timeStampFormat)
name
- task namedescription
- task descriptionresourcePath
- the path of the resource to backupbackupPath
- destination path of the backup within resources. Default value = /backup (DEFAULT_BACKUP_PATH)timeStampFormat
- the format of the time stamp which is added to the backed up resource name. Default value = "'date'-yyyy-MM-dd-'time'-kk-mm-ss-SSSS" (DEFAULT_TIMESTAMP_FORMAT)public BackupResourceTask(String name, String description, String resourcePath, String backupPath, boolean moveOrigin, String timeStampFormat)
name
- task namedescription
- task descriptionresourcePath
- the path of the resource to backupbackupPath
- destination path of the backup within resources. Default value = /backup (DEFAULT_BACKUP_PATH)moveOrigin
- true if moving the origin node, false if copying the origin node. Default value = true (DEFAULT_ORIGIN_NODE_ACTION)timeStampFormat
- the format of the time stamp which is added to the backed up resource name. Default value = "'date'-yyyy-MM-dd-'time'-kk-mm-ss-SSSS" (DEFAULT_TIMESTAMP_FORMAT)public BackupResourceTask(String name, String description, String resourcePath, String backupPath, boolean moveOrigin, boolean noTimeStamp)
name
- task namedescription
- task descriptionresourcePath
- the path of the resource to backupbackupPath
- destination path of the backup within resources. Default value = /backup (DEFAULT_BACKUP_PATH)moveOrigin
- true if moving the origin node, false if copying the origin node. Default value = true (DEFAULT_ORIGIN_NODE_ACTION)noTimeStamp
- not adding a time stamp folder to the backup path. Default value = false (DEFAULT_TIMESTAMP_ACTION)protected void doExecute(info.magnolia.module.InstallContext installContext) throws info.magnolia.module.delta.TaskExecutionException, javax.jcr.RepositoryException
doExecute
in class info.magnolia.module.delta.AbstractRepositoryTask
info.magnolia.module.delta.TaskExecutionException
javax.jcr.RepositoryException
Copyright © 2016 Magnolia International Ltd.. All rights reserved.