Juan Hernandez has uploaded a new change for review. Change subject: core: Add support to search Cluster by id ......................................................................
core: Add support to search Cluster by id This patch modifies the search backend so that it is possible to search Clusters by id. Change-Id: I3e18e42a03c0209fb4a03f34df21dd29f8ad878f 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/ClusterConditionFieldAutoCompleter.java 1 file changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/14/37414/1 diff --git a/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/ClusterConditionFieldAutoCompleter.java b/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/ClusterConditionFieldAutoCompleter.java index 9aadd4c..cb567d8 100644 --- a/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/ClusterConditionFieldAutoCompleter.java +++ b/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/ClusterConditionFieldAutoCompleter.java @@ -2,7 +2,10 @@ import org.ovirt.engine.core.common.businessentities.ArchitectureType; +import java.util.UUID; + public class ClusterConditionFieldAutoCompleter extends BaseConditionFieldAutoCompleter { + public static final String ID = "ID"; public static final String NAME = "NAME"; public static final String DESCRIPTION = "DESCRIPTION"; public static final String COMMENT = "COMMENT"; @@ -10,6 +13,7 @@ public ClusterConditionFieldAutoCompleter() { // Building the basic vervs Dict + mVerbs.add(ID); mVerbs.add(NAME); mVerbs.add(DESCRIPTION); mVerbs.add(COMMENT); @@ -18,12 +22,14 @@ // 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); getTypeDictionary().put(ARCHITECTURE, ArchitectureType.class); // building the ColumnName Dict + columnNameDict.put(ID, "vds_group_id"); columnNameDict.put(NAME, "name"); columnNameDict.put(DESCRIPTION, "description"); columnNameDict.put(COMMENT, "free_text_comment"); -- To view, visit http://gerrit.ovirt.org/37414 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3e18e42a03c0209fb4a03f34df21dd29f8ad878f 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