Juan Hernandez has uploaded a new change for review. Change subject: core: Add support to search Data Center by id ......................................................................
core: Add support to search Data Center by id This patch modifies the search backend so that it is possible to search Data Centers by id. Change-Id: I5aeaf9fd14fda00b1d757b6beb2360e96b9814f3 Related-To: https://bugzilla.redhat.com/1082090 Signed-off-by: Juan Hernandez <juan.hernan...@redhat.com> --- M backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/StoragePoolFieldAutoCompleter.java 1 file changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/13/37413/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 84cfeab..918b36b 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 @@ -2,8 +2,11 @@ import org.ovirt.engine.core.common.businessentities.StoragePoolStatus; +import java.util.UUID; + public class StoragePoolFieldAutoCompleter extends BaseConditionFieldAutoCompleter { + public static final String ID = "ID"; public static final String NAME = "NAME"; public static final String DESCRIPTION = "DESCRIPTION"; public static final String LOCAL = "LOCAL"; @@ -13,6 +16,7 @@ public StoragePoolFieldAutoCompleter() { // Building the basic vervs Dict + mVerbs.add(ID); mVerbs.add(NAME); mVerbs.add(DESCRIPTION); mVerbs.add(LOCAL); @@ -23,6 +27,7 @@ // Building the autoCompletion Dict buildCompletions(); // Building the types dict + getTypeDictionary().put(ID, UUID.class); getTypeDictionary().put(NAME, String.class); getTypeDictionary().put(DESCRIPTION, String.class); getTypeDictionary().put(COMMENT, String.class); @@ -31,6 +36,7 @@ getTypeDictionary().put(COMPATIBILITY_VERSION, String.class); // building the ColumnName Dict + columnNameDict.put(ID, "id"); columnNameDict.put(NAME, "name"); columnNameDict.put(DESCRIPTION, "description"); columnNameDict.put(COMMENT, "free_text_comment"); -- To view, visit http://gerrit.ovirt.org/37413 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5aeaf9fd14fda00b1d757b6beb2360e96b9814f3 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Juan Hernandez <juan.hernan...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches