use of com.opentext.ia.sdk.dto.SearchDataBuilder in project infoarchive-sip-sdk by Enterprise-Content-Management.
the class InfoArchiveRestClient method toSearchCriteria.
private String toSearchCriteria(SearchQuery searchQuery) {
SearchDataBuilder searchDataBuilder = SearchDataBuilder.builder();
searchQuery.getItems().stream().filter(item -> item instanceof Comparison).map(Comparison.class::cast).forEach(comparison -> addComparison(comparison, searchDataBuilder));
return searchDataBuilder.build().replaceFirst("<\\?.*\\?>", "").replace(" ", "").replace(System.lineSeparator(), "");
}
Aggregations