|
|
|
@ -10,7 +10,9 @@ import org.gcube.application.geoportalcommon.shared.GeoNaItemRef;
|
|
|
|
|
import org.gcube.application.geoportalcommon.shared.ItemField;
|
|
|
|
|
import org.gcube.application.geoportalcommon.shared.ResultSetPaginatedData;
|
|
|
|
|
import org.gcube.application.geoportalcommon.shared.SearchingFilter;
|
|
|
|
|
import org.gcube.application.geoportalcommon.shared.SearchingFilter.LOGICAL_OP;
|
|
|
|
|
import org.gcube.application.geoportalcommon.shared.SearchingFilter.ORDER;
|
|
|
|
|
import org.gcube.application.geoportalcommon.shared.WhereClause;
|
|
|
|
|
import org.gcube.application.geoportalcommon.shared.products.ConcessioneDV;
|
|
|
|
|
import org.gcube.portlets.user.geoportaldataviewer.client.GeoportalDataViewerConstants;
|
|
|
|
|
import org.gcube.portlets.user.geoportaldataviewer.client.GeoportalDataViewerServiceAsync;
|
|
|
|
@ -463,7 +465,16 @@ public class SearchFacilityUI extends Composite {
|
|
|
|
|
searchInto.put(fieldname, searchText);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
searchingFilter.setSearchInto(searchInto);
|
|
|
|
|
WhereClause where = new WhereClause();
|
|
|
|
|
where.setSearchInto(searchInto);
|
|
|
|
|
where.setOperator(LOGICAL_OP.OR);
|
|
|
|
|
|
|
|
|
|
//THIS CLAUSE IS ADDED IN ORDER TO SEARCH ONLY PUBLISHED PRODUCT (WITH SUCCESS)
|
|
|
|
|
Map<String, Object> searchInto2 = new HashMap<String, Object>();
|
|
|
|
|
searchInto2.put("report.status", "PASSED");
|
|
|
|
|
WhereClause where2 = new WhereClause(LOGICAL_OP.AND, searchInto2);
|
|
|
|
|
|
|
|
|
|
searchingFilter.setConditions(Arrays.asList(where, where2));
|
|
|
|
|
}
|
|
|
|
|
return searchingFilter;
|
|
|
|
|
}
|
|
|
|
|