RESTResource rs = UNREDDResourceBuilder.createStatsDataResource(statsdef, year, month, day, content);
return geostoreClient1.insert(rs);
}
public static void deleteAllResources() {
ShortResourceList sres = geostoreClient1.searchResources(new FieldFilter(BaseField.NAME, "*", SearchOperator.IS_NOT_NULL));
if( ! sres.isEmpty() ) {
LOGGER.info("DeleteAll: deleting " + sres.getList().size() + " resources");
for (ShortResource shortResource : sres.getList()) {
LOGGER.info("DeleteAll: deleting resource #"+shortResource.getId()+ " " + shortResource.getName());
geostoreClient1.deleteResource(shortResource.getId());