Idan Shaby has uploaded a new change for review. Change subject: searchbackend: Search Disks by Wipe After Delete ......................................................................
searchbackend: Search Disks by Wipe After Delete This patch adds the ability to search for disks by their Wipe After Delete value. Change-Id: I1a8a6b6d80ba6a0c17c2119e5bc789d6e62c29a4 Bug-Url: https://bugzilla.redhat.com/1101012 Signed-off-by: Idan Shaby <[email protected]> --- M backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/DiskConditionFieldAutoCompleter.java 1 file changed, 6 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/05/37205/1 diff --git a/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/DiskConditionFieldAutoCompleter.java b/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/DiskConditionFieldAutoCompleter.java index 3c8c09d..e1f66a0 100644 --- a/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/DiskConditionFieldAutoCompleter.java +++ b/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/DiskConditionFieldAutoCompleter.java @@ -25,6 +25,7 @@ public static final String VM_NAMES = "VM_NAMES"; public static final String QUOTA = "QUOTA"; public static final String ID = "ID"; + public static final String WIPE_AFTER_DELETE = "WIPE_AFTER_DELETE"; public DiskConditionFieldAutoCompleter() { // Building the basic verbs set. @@ -43,6 +44,7 @@ mVerbs.add(VM_NAMES); mVerbs.add(QUOTA); mVerbs.add(ID); + mVerbs.add(WIPE_AFTER_DELETE); // Building the autoCompletion dict. buildCompletions(); @@ -63,6 +65,7 @@ getTypeDictionary().put(VM_NAMES, String.class); getTypeDictionary().put(QUOTA, String.class); getTypeDictionary().put(ID, UUID.class); + getTypeDictionary().put(WIPE_AFTER_DELETE, Boolean.class); // building the ColumnName dict. - the name of the column in db columnNameDict.put(ALIAS, "disk_alias"); @@ -80,6 +83,7 @@ columnNameDict.put(VM_NAMES, "vm_names"); columnNameDict.put(QUOTA, "quota_name"); columnNameDict.put(ID, "disk_id"); + columnNameDict.put(WIPE_AFTER_DELETE, "wipe_after_delete"); // Building the validation dict. buildBasicValidationTable(); @@ -106,7 +110,8 @@ } else if (DISK_TYPE.equals(fieldName)) { return new EnumValueAutoCompleter(DiskStorageType.class); } else if (BOOTABLE.equals(fieldName) || - SHAREABLE.equals(fieldName)) { + SHAREABLE.equals(fieldName) || + WIPE_AFTER_DELETE.equals(fieldName)) { return new BitValueAutoCompleter(); } return null; -- To view, visit http://gerrit.ovirt.org/37205 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1a8a6b6d80ba6a0c17c2119e5bc789d6e62c29a4 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Idan Shaby <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
