@Test public void testConvertWithoutData() { AuditBarGraphRequest request = new AuditBarGraphQueryRequest(); SolrQuery query = underTest.convert(request); assertEquals(Integer.valueOf(0), query.getRows()); assertEquals(-1, query.getFacetLimit()); }
@Override public SolrQuery convert(AuditBarGraphRequest request) { SolrQuery query = super.convert(request); addListFilterToSolrQuery(query, CLUSTER, request.getClusters()); addInFiltersIfNotNullAndEnabled(query, request.getUserList(), SolrConstants.AuditLogConstants.AUDIT_REQUEST_USER, StringUtils.isNotBlank(request.getUserList())); addIncludeFieldValues(query, request.getIncludeQuery()); addExcludeFieldValues(query, request.getExcludeQuery()); return query; }
AuditBarGraphRequestQueryConverter extends AbstractDateRangeFacetQueryConverter<AuditBarGraphRequest> { @Override public SolrQuery convert(AuditBarGraphRequest request) { SolrQuery query = super.convert(request); addListFilterToSolrQuery(query, CLUSTER, request.getClusters()); addInFiltersIfNotNullAndEnabled(query, request.getUserList(), SolrConstants.AuditLogConstants.AUDIT_REQUEST_USER, StringUtils.isNotBlank(request.getUserList())); addIncludeFieldValues(query, request.getIncludeQuery()); addExcludeFieldValues(query, request.getExcludeQuery()); return query; } }
AuditBarGraphRequestQueryConverter extends AbstractDateRangeFacetQueryConverter<AuditBarGraphRequest> { @Override public SolrQuery convert(AuditBarGraphRequest request) { SolrQuery query = super.convert(request); addListFilterToSolrQuery(query, CLUSTER, request.getClusters()); addInFiltersIfNotNullAndEnabled(query, request.getUserList(), SolrConstants.AuditLogConstants.AUDIT_REQUEST_USER, StringUtils.isNotBlank(request.getUserList())); addIncludeFieldValues(query, request.getIncludeQuery()); addExcludeFieldValues(query, request.getExcludeQuery()); return query; }  }
AuditBarGraphRequestQueryConverter extends AbstractDateRangeFacetQueryConverter<AuditBarGraphRequest> { @Override public SolrQuery convert(AuditBarGraphRequest request) { SolrQuery query = super.convert(request); addListFilterToSolrQuery(query, CLUSTER, request.getClusters()); addInFiltersIfNotNullAndEnabled(query, request.getUserList(), SolrConstants.AuditLogConstants.AUDIT_REQUEST_USER, StringUtils.isNotBlank(request.getUserList())); addIncludeFieldValues(query, request.getIncludeQuery()); addExcludeFieldValues(query, request.getExcludeQuery()); return query; }  @Override String getDateFieldName(); @Override String getTypeFieldName(); @Override LogType getLogType(); @Override SolrQuery convert(AuditBarGraphRequest request); }
AuditBarGraphRequestQueryConverter extends AbstractDateRangeFacetQueryConverter<AuditBarGraphRequest> { @Override public SolrQuery convert(AuditBarGraphRequest request) { SolrQuery query = super.convert(request); addListFilterToSolrQuery(query, CLUSTER, request.getClusters()); addInFiltersIfNotNullAndEnabled(query, request.getUserList(), SolrConstants.AuditLogConstants.AUDIT_REQUEST_USER, StringUtils.isNotBlank(request.getUserList())); addIncludeFieldValues(query, request.getIncludeQuery()); addExcludeFieldValues(query, request.getExcludeQuery()); return query; }  @Override String getDateFieldName(); @Override String getTypeFieldName(); @Override LogType getLogType(); @Override SolrQuery convert(AuditBarGraphRequest request);  }