Idan Shaby has uploaded a new change for review.

Change subject: searchbackend: Search Storage Domains by Wipe After Delete
......................................................................

searchbackend: Search Storage Domains by Wipe After Delete

This patch adds the ability to search for Storage Domains by their Wipe
After Delete value.

Change-Id: Ia45aeffbea103fc7d51dce3dd31bc3fd25196357
Bug-Url: https://bugzilla.redhat.com/1183801
Signed-off-by: Idan Shaby <[email protected]>
---
M 
backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/StorageDomainFieldAutoCompleter.java
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/06/37206/1

diff --git 
a/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/StorageDomainFieldAutoCompleter.java
 
b/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/StorageDomainFieldAutoCompleter.java
index 187ca05..ff02917 100644
--- 
a/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/StorageDomainFieldAutoCompleter.java
+++ 
b/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/StorageDomainFieldAutoCompleter.java
@@ -14,6 +14,7 @@
     public static final String COMMITTED = "COMMITTED";
     public static final String COMMENT = "COMMENT";
     public static final String DESCRIPTION = "DESCRIPTION";
+    public static final String WIPE_AFTER_DELETE = "WIPE_AFTER_DELETE";
 
 
     public StorageDomainFieldAutoCompleter() {
@@ -27,6 +28,7 @@
         mVerbs.add(COMMITTED);
         mVerbs.add(COMMENT);
         mVerbs.add(DESCRIPTION);
+        mVerbs.add(WIPE_AFTER_DELETE);
 
         // Building the autoCompletion Dict
         buildCompletions();
@@ -40,6 +42,7 @@
         getTypeDictionary().put(COMMITTED, Integer.class);
         getTypeDictionary().put(COMMENT, String.class);
         getTypeDictionary().put(DESCRIPTION, String.class);
+        getTypeDictionary().put(WIPE_AFTER_DELETE, Boolean.class);
 
         // building the ColumnName Dict
         columnNameDict.put(NAME, "storage_name");
@@ -51,6 +54,7 @@
         columnNameDict.put(COMMITTED, "commited_disk_size");
         columnNameDict.put(COMMENT, "storage_comment");
         columnNameDict.put(DESCRIPTION, "storage_description");
+        columnNameDict.put(WIPE_AFTER_DELETE, "wipe_after_delete");
 
         // Building the validation dict
         buildBasicValidationTable();
@@ -74,6 +78,9 @@
         }
         else if (STATUS.equals(fieldName)) {
             retval = new 
EnumValueAutoCompleter(StorageDomainSharedStatus.class);
+        }
+        else if (WIPE_AFTER_DELETE.equals(fieldName)) {
+            retval = new BitValueAutoCompleter();
         } else {
         }
         return retval;


-- 
To view, visit http://gerrit.ovirt.org/37206
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia45aeffbea103fc7d51dce3dd31bc3fd25196357
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

Reply via email to