message);
}
}
Entry taskEntry = getTaskEntry();
AttributeType typeBackupAll;
AttributeType typeCompress;
AttributeType typeEncrypt;
AttributeType typeHash;
AttributeType typeIncremental;
AttributeType typeSignHash;
AttributeType typeBackendID;
AttributeType typeBackupID;
AttributeType typeBackupDirectory;
AttributeType typeIncrementalBaseID;
typeBackupAll =
getAttributeType(ATTR_TASK_BACKUP_ALL, true);
typeCompress =
getAttributeType(ATTR_TASK_BACKUP_COMPRESS, true);
typeEncrypt =
getAttributeType(ATTR_TASK_BACKUP_ENCRYPT, true);
typeHash =
getAttributeType(ATTR_TASK_BACKUP_HASH, true);
typeIncremental =
getAttributeType(ATTR_TASK_BACKUP_INCREMENTAL, true);
typeSignHash =
getAttributeType(ATTR_TASK_BACKUP_SIGN_HASH, true);
typeBackendID =
getAttributeType(ATTR_TASK_BACKUP_BACKEND_ID, true);
typeBackupID =
getAttributeType(ATTR_BACKUP_ID, true);
typeBackupDirectory =
getAttributeType(ATTR_BACKUP_DIRECTORY_PATH, true);
typeIncrementalBaseID =
getAttributeType(ATTR_TASK_BACKUP_INCREMENTAL_BASE_ID, true);
List<Attribute> attrList;
attrList = taskEntry.getAttribute(typeBackupAll);
backUpAll = TaskUtils.getBoolean(attrList, false);
attrList = taskEntry.getAttribute(typeCompress);
compress = TaskUtils.getBoolean(attrList, false);
attrList = taskEntry.getAttribute(typeEncrypt);
encrypt = TaskUtils.getBoolean(attrList, false);
attrList = taskEntry.getAttribute(typeHash);
hash = TaskUtils.getBoolean(attrList, false);
attrList = taskEntry.getAttribute(typeIncremental);
incremental = TaskUtils.getBoolean(attrList, false);
attrList = taskEntry.getAttribute(typeSignHash);
signHash = TaskUtils.getBoolean(attrList, false);
attrList = taskEntry.getAttribute(typeBackendID);
backendIDList = TaskUtils.getMultiValueString(attrList);
attrList = taskEntry.getAttribute(typeBackupID);
backupID = TaskUtils.getSingleValueString(attrList);
attrList = taskEntry.getAttribute(typeBackupDirectory);
String backupDirectoryPath = TaskUtils.getSingleValueString(attrList);
backupDirectory = new File(backupDirectoryPath);
if (! backupDirectory.isAbsolute())
{
backupDirectory =
new File(DirectoryServer.getInstanceRoot(), backupDirectoryPath);
}
attrList = taskEntry.getAttribute(typeIncrementalBaseID);
incrementalBase = TaskUtils.getSingleValueString(attrList);
configEntries = TaskUtils.getBackendConfigEntries();
}