Search in sources :

Example 1 with SearchDataBuilder

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(), "");
}
Also used : Comparison(com.opentext.ia.sdk.dto.query.Comparison) SearchDataBuilder(com.opentext.ia.sdk.dto.SearchDataBuilder)

Aggregations

SearchDataBuilder (com.opentext.ia.sdk.dto.SearchDataBuilder)1 Comparison (com.opentext.ia.sdk.dto.query.Comparison)1