!backUpAll.getValue().equals(
backUpAll.getDefaultValue())) {
values = new ArrayList<ByteString>(1);
values.add(ByteString.valueOf(backUpAll.getValue()));
attributes.add(
new LDAPAttribute(ATTR_TASK_BACKUP_ALL, values));
}
if (compress.getValue() != null &&
!compress.getValue().equals(
compress.getDefaultValue())) {
values = new ArrayList<ByteString>(1);
values.add(ByteString.valueOf(compress.getValue()));
attributes.add(
new LDAPAttribute(ATTR_TASK_BACKUP_COMPRESS, values));
}
if (encrypt.getValue() != null &&
!encrypt.getValue().equals(
encrypt.getDefaultValue())) {
values = new ArrayList<ByteString>(1);
values.add(ByteString.valueOf(encrypt.getValue()));
attributes.add(
new LDAPAttribute(ATTR_TASK_BACKUP_ENCRYPT, values));
}
if (hash.getValue() != null &&
!hash.getValue().equals(
hash.getDefaultValue())) {
values = new ArrayList<ByteString>(1);
values.add(ByteString.valueOf(hash.getValue()));
attributes.add(
new LDAPAttribute(ATTR_TASK_BACKUP_HASH, values));
}
if (incremental.getValue() != null &&
!incremental.getValue().equals(
incremental.getDefaultValue())) {
values = new ArrayList<ByteString>(1);
values.add(ByteString.valueOf(incremental.getValue()));
attributes.add(
new LDAPAttribute(ATTR_TASK_BACKUP_INCREMENTAL, values));
}
if (signHash.getValue() != null &&
!signHash.getValue().equals(
signHash.getDefaultValue())) {
values = new ArrayList<ByteString>(1);
values.add(ByteString.valueOf(signHash.getValue()));
attributes.add(
new LDAPAttribute(ATTR_TASK_BACKUP_SIGN_HASH, values));
}
List<String> backendIDs = backendID.getValues();
if (backendIDs != null && backendIDs.size() > 0) {
values = new ArrayList<ByteString>(backendIDs.size());
for (String s : backendIDs) {
values.add(ByteString.valueOf(s));
}
attributes.add(
new LDAPAttribute(ATTR_TASK_BACKUP_BACKEND_ID, values));
}
if (backupIDString.getValue() != null &&
!backupIDString.getValue().equals(
backupIDString.getDefaultValue())) {
values = new ArrayList<ByteString>(1);
values.add(ByteString.valueOf(backupIDString.getValue()));
attributes.add(
new LDAPAttribute(ATTR_BACKUP_ID, values));
}
if (backupDirectory.getValue() != null &&
!backupDirectory.getValue().equals(
backupDirectory.getDefaultValue())) {
values = new ArrayList<ByteString>(1);
values.add(ByteString.valueOf(backupDirectory.getValue()));
attributes.add(
new LDAPAttribute(ATTR_BACKUP_DIRECTORY_PATH, values));
}
if (incrementalBaseID.getValue() != null &&
!incrementalBaseID.getValue().equals(
incrementalBaseID.getDefaultValue())) {
values = new ArrayList<ByteString>(1);
values.add(ByteString.valueOf(incrementalBaseID.getValue()));
attributes.add(
new LDAPAttribute(ATTR_TASK_BACKUP_INCREMENTAL_BASE_ID, values));
}
}