Ejemplo n.º 1
0
  private void addAttributeFilters(JSONObject conditionArgs) {
    List<String> include = new ArrayList<String>(), exclude = new ArrayList<String>();

    getIncludeAndExclude(include, exclude, FilterFactory.ATTRIBUTE_TYPE);

    String includeSql = Utils.joinStrings(" OR ", include);
    String excludeSql = Utils.joinStrings(" OR ", exclude);
    addIfNonempty(conditionArgs, "include_attributes_where", includeSql);
    addIfNonempty(conditionArgs, "exclude_attributes_where", excludeSql);
  }
Ejemplo n.º 2
0
  public void addHistoryArguments(Map<String, String> arguments, String name) {
    List<String> fields = new ArrayList<String>();
    for (HeaderField field : getSelectedItems()) {
      fields.add(field.getSqlName());
    }
    String fieldList = Utils.joinStrings(",", fields);
    arguments.put(name, fieldList);
    if (isFixedValuesActive()) {
      arguments.put(name + HISTORY_FIXED_VALUES, display.getFixedValuesInput().getText());
    }

    headerFields.addHistoryArguments(arguments);
  }