Tal Nisan has uploaded a new change for review. Change subject: core: Allow searching data center with local property ......................................................................
core: Allow searching data center with local property Change-Id: Ica5bfded3a0464c7315ec636cc44b3280cc5921e Bug-url: https://bugzilla.redhat.com/1065941 Signed-off-by: Tal Nisan <[email protected]> --- M backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/StoragePoolFieldAutoCompleter.java 1 file changed, 5 insertions(+), 7 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/25/24625/1 diff --git a/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/StoragePoolFieldAutoCompleter.java b/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/StoragePoolFieldAutoCompleter.java index 4bdb05b..b6c0d56 100644 --- a/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/StoragePoolFieldAutoCompleter.java +++ b/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/StoragePoolFieldAutoCompleter.java @@ -1,14 +1,13 @@ package org.ovirt.engine.core.searchbackend; import org.ovirt.engine.core.common.businessentities.StoragePoolStatus; -import org.ovirt.engine.core.common.businessentities.StorageType; public class StoragePoolFieldAutoCompleter extends BaseConditionFieldAutoCompleter { public StoragePoolFieldAutoCompleter() { // Building the basic vervs Dict mVerbs.add("NAME"); mVerbs.add("DESCRIPTION"); - mVerbs.add("TYPE"); + mVerbs.add("LOCAL"); mVerbs.add("STATUS"); mVerbs.add("COMMENT"); @@ -18,14 +17,14 @@ getTypeDictionary().put("NAME", String.class); getTypeDictionary().put("DESCRIPTION", String.class); getTypeDictionary().put("COMMENT", String.class); - getTypeDictionary().put("TYPE", StorageType.class); + getTypeDictionary().put("LOCAL", Boolean.class); getTypeDictionary().put("STATUS", StoragePoolStatus.class); // building the ColumnName Dict columnNameDict.put("NAME", "name"); columnNameDict.put("DESCRIPTION", "description"); columnNameDict.put("COMMENT", "free_text_comment"); - columnNameDict.put("TYPE", "storage_pool_type"); + columnNameDict.put("LOCAL", "is_local"); columnNameDict.put("STATUS", "status"); // Building the validation dict @@ -43,9 +42,8 @@ if ("STATUS".equals(fieldName)) { retval = new EnumValueAutoCompleter(StoragePoolStatus.class); } - else if ("TYPE".equals(fieldName)) { - retval = new EnumValueAutoCompleter(StorageType.class); - } else { + else if ("LOCAL".equals(fieldName)) { + retval = new BitValueAutoCompleter(); } return retval; } -- To view, visit http://gerrit.ovirt.org/24625 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ica5bfded3a0464c7315ec636cc44b3280cc5921e Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.4 Gerrit-Owner: Tal Nisan <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
