Ejemplo n.º 1
0
 protected VdcQueryReturnValue runInternalQuery(
     VdcQueryType actionType, VdcQueryParametersBase 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 getBackend().runInternalQuery(actionType, parameters, getEngineContext());
 }
Ejemplo n.º 2
0
  protected void syncSearch(
      VdcQueryType vdcQueryType, VdcQueryParametersBase vdcQueryParametersBase) {
    vdcQueryParametersBase.setRefresh(getIsQueryFirstTime());

    Frontend.getInstance().runQuery(vdcQueryType, vdcQueryParametersBase, new SetItemsAsyncQuery());

    setIsQueryFirstTime(false);
  }
  @Override
  protected void syncSearch() {
    super.syncSearch();

    AsyncQuery _asyncQuery = new AsyncQuery();
    _asyncQuery.setModel(this);
    _asyncQuery.asyncCallback =
        new INewAsyncCallback() {
          @Override
          public void onSuccess(Object model, Object ReturnValue) {
            SystemPermissionListModel systemPermissionListModel = (SystemPermissionListModel) model;
            systemPermissionListModel.setItems(
                (Collection) ((VdcQueryReturnValue) ReturnValue).getReturnValue());
          }
        };
    VdcQueryParametersBase params = new VdcQueryParametersBase();
    params.setRefresh(false);

    Frontend.getInstance().runQuery(VdcQueryType.GetSystemPermissions, params, _asyncQuery);
  }
 private VdcQueryParametersBase getParameters() {
   VdcQueryParametersBase parameters = new VdcQueryParametersBase();
   parameters.setFiltered(true);
   return parameters;
 }