use of org.ovirt.engine.core.common.queries.SearchParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getClusterListByName.
public void getClusterListByName(AsyncQuery<List<Cluster>> aQuery, String name) {
aQuery.converterCallback = new ListConverter<>();
Frontend.getInstance().runQuery(QueryType.Search, // $NON-NLS-1$ //$NON-NLS-2$
new SearchParameters("Cluster: name=" + name + " sortby name", SearchType.Cluster), aQuery);
}
use of org.ovirt.engine.core.common.queries.SearchParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getVolumeList.
public void getVolumeList(AsyncQuery<List<GlusterVolumeEntity>> aQuery, String clusterName, boolean doRefresh) {
if ((ApplicationModeHelper.getUiMode().getValue() & ApplicationMode.GlusterOnly.getValue()) == 0) {
aQuery.getAsyncCallback().onSuccess(new ArrayList<GlusterVolumeEntity>());
return;
}
aQuery.converterCallback = new ListConverter<>();
SearchParameters searchParameters;
searchParameters = // $NON-NLS-1$
clusterName == null ? // $NON-NLS-1$
new SearchParameters("Volumes:", SearchType.GlusterVolume) : // $NON-NLS-1$
new SearchParameters("Volumes: cluster.name=" + clusterName, SearchType.GlusterVolume);
searchParameters.setMaxCount(9999);
if (!doRefresh) {
searchParameters.withoutRefresh();
}
Frontend.getInstance().runQuery(QueryType.Search, searchParameters, aQuery);
}
use of org.ovirt.engine.core.common.queries.SearchParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getStorageDomainList.
public void getStorageDomainList(AsyncQuery<List<StorageDomain>> aQuery) {
aQuery.converterCallback = new ListConverter<>();
// $NON-NLS-1$
SearchParameters searchParams = new SearchParameters("Storage:", SearchType.StorageDomain);
searchParams.setMaxCount(9999);
Frontend.getInstance().runQuery(QueryType.Search, searchParams, aQuery);
}
use of org.ovirt.engine.core.common.queries.SearchParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getDataCenterListByName.
public void getDataCenterListByName(AsyncQuery<List<StoragePool>> aQuery, String name) {
aQuery.converterCallback = new ListConverter<>();
Frontend.getInstance().runQuery(QueryType.Search, // $NON-NLS-1$ //$NON-NLS-2$
new SearchParameters("DataCenter: name=" + name + " sortby name", SearchType.StoragePool), aQuery);
}
use of org.ovirt.engine.core.common.queries.SearchParameters in project ovirt-engine by oVirt.
the class StorageListModel method syncSearch.
@Override
protected void syncSearch() {
SearchParameters tempVar = new SearchParameters(applySortOptions(getSearchString()), SearchType.StorageDomain, isCaseSensitiveSearch());
tempVar.setMaxCount(getSearchPageSize());
super.syncSearch(QueryType.Search, tempVar);
}
Aggregations