QueryParametersBase.setRefresh
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.ovirt.engine.core.common.queries.QueryParametersBase.setRefresh(Showing top 10 results out of 315)

origin: oVirt/ovirt-engine

public void getAllVmTemplates(AsyncQuery<List<VmTemplate>> aQuery, final boolean refresh) {
  aQuery.converterCallback = new TemplateConverter();
  QueryParametersBase params = new QueryParametersBase();
  params.setRefresh(refresh);
  Frontend.getInstance().runQuery(QueryType.GetAllVmTemplates, params, aQuery);
}
origin: oVirt/ovirt-engine

protected QueryReturnValue runInternalQuery(QueryType actionType, QueryParametersBase parameters) {
  //All internal queries should have refresh set to false, since the decision to refresh the session should
  //be up to the client. All internal queries will not refresh the session.
  parameters.setRefresh(false);
  return backend.runInternalQuery(actionType, parameters, getEngineContext());
}
origin: oVirt/ovirt-engine

public QueryParametersBase withRefresh() {
  setRefresh(true);
  return this;
}
origin: oVirt/ovirt-engine

private void fetchClusterPolicies() {
  AsyncQuery<QueryReturnValue> asyncQuery = new AsyncQuery<>(returnValue -> {
    ArrayList<ClusterPolicy> list = returnValue.getReturnValue();
    Collections.sort(list,
        Comparator.comparing(ClusterPolicy::isLocked).reversed()
            .thenComparing(ClusterPolicy::getName, new LexoNumericComparator()));
    setItems(list);
  });
  QueryParametersBase parametersBase = new QueryParametersBase();
  parametersBase.setRefresh(getIsQueryFirstTime());
  Frontend.getInstance().runQuery(QueryType.GetClusterPolicies, parametersBase, asyncQuery);
  setIsQueryFirstTime(false);
}
origin: oVirt/ovirt-engine

@Override
protected void syncSearch() {
  super.syncSearch();
  QueryParametersBase tempVar = new QueryParametersBase();
  tempVar.setRefresh(getIsQueryFirstTime());
  Frontend.getInstance().runQuery(QueryType.GetAllRoles, tempVar, new AsyncQuery<QueryReturnValue>(returnValue -> {
        ArrayList<Role> filteredList = new ArrayList<>();
        for (Role item : (ArrayList<Role>) returnValue.getReturnValue()) {
          // ignore CONSUME_QUOTA_ROLE in UI
          if (item.getId().equals(ApplicationGuids.quotaConsumer.asGuid())) {
            continue;
          }
          if (getItemsFilter() == null || getItemsFilter() == item.getType()) {
            filteredList.add(item);
          }
        }
        Collections.sort(filteredList, new NameableComparator());
        setItems(filteredList);
      }));
  setIsQueryFirstTime(false);
}
origin: oVirt/ovirt-engine

protected void syncSearch(
    QueryType queryType,
    QueryParametersBase queryParametersBase,
    AsyncQuery<QueryReturnValue> asyncCallback) {
  queryParametersBase.setRefresh(getIsQueryFirstTime());
  Frontend.getInstance().runQuery(queryType, queryParametersBase, asyncCallback);
  setIsQueryFirstTime(false);
}
origin: oVirt/ovirt-engine

for (int i = 0; i < queryTypeList.size(); i++) {
  QueryParametersBase parameters = queryParamsList.get(i);
  parameters.setRefresh(false); // Why do we do this?
  initQueryParamsFilter(parameters);
  operationList.add(new VdcOperation<>(queryTypeList.get(i),
origin: oVirt/ovirt-engine

@Override
public QueryReturnValue runPublicQuery(QueryType actionType, QueryParametersBase parameters) {
  parameters.setRefresh(false);
  switch (actionType) {
  case GetAAAProfileList:
origin: oVirt/ovirt-engine

@Override
protected void syncSearch() {
  super.syncSearch();
  QueryParametersBase params = new QueryParametersBase();
  params.setRefresh(false);
  Frontend.getInstance().runQuery(QueryType.GetSystemPermissions, params, new SetItemsAsyncQuery());
}
origin: oVirt/ovirt-engine

public QueryParametersBase withoutRefresh() {
  setRefresh(false);
  return this;
}
org.ovirt.engine.core.common.queriesQueryParametersBasesetRefresh

Popular methods of QueryParametersBase

  • <init>
  • setFiltered
  • setSessionId
  • getCorrelationId
  • getRefresh
  • isFiltered
  • setCorrelationId
  • appendAttributes
  • getSessionId
  • toString
  • withRefresh
  • withoutRefresh
  • withRefresh,
  • withoutRefresh

Popular classes and methods

  • setScale (BigDecimal)
    Returns a new BigDecimal instance with the specified scale. If the new scale is greater than the old
  • compareTo (BigDecimal)
    Compares this BigDecimal with val. Returns one of the three values 1, 0, or -1. The method behaves a
  • setContentView (Activity)
  • Font (java.awt)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Proxy (java.net)
    This class represents a proxy setting, typically a type (http, socks) and a socket address. A Proxy
  • URL (java.net)
    Class URL represents a Uniform Resource Locator, a pointer to a "resource" on the World Wide Web.
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)