I dont want people to delete the property group from xml, so is there any way to check if that propertygroup has some value associated with it. I mean, if there are some documents that has that property group associated with it.
Map<String, String> properties = new HashMap<String, String>();
properties.put("okp:expiration.date", ISO8601.formatBasic(from) + "," + ISO8601.formatBasic(to));
properties.put("okp:expiration.state", "valid");
QueryParams params = new QueryParams();
params.setPath("/okm:root");
params.setProperties(properties);
List<QueryResult> results = OKMSearch.getInstance().find(null, params);Map<String, String> properties = new HashMap<String, String>();
properties.put("okp:expiration.date", ISO8601.formatBasic(from) + "," + ISO8601.formatBasic(to));
properties.put("okp:expiration.state", "valid");
QueryParams params = new QueryParams();
params.setPath("/okm:root");
params.setProperties(properties);
List<QueryResult> results = OKMSearch.getInstance().find(null, params);
properties.put("okp:expiration.state", "***");