use of io.arlas.server.core.app.OGCConfiguration in project ARLAS-server by gisaia.
the class CSWService method initMetaCollection.
private void initMetaCollection(String index, OGCConfiguration ogcConfiguration, InspireConfiguration inspireConfiguration) throws ArlasException {
List<CollectionReference> collectionReferences = collectionReferenceService.getAllCollectionReferences(Optional.empty());
long count = collectionReferences.stream().filter(collectionReference -> collectionReference.collectionName.equals(getMetacollectionName())).count();
if (count > 0) {
collectionReferenceService.deleteCollectionReference(getMetacollectionName());
}
CollectionReference metacolletion = createMetaCollection(index, ogcConfiguration, inspireConfiguration);
collectionReferenceService.putCollectionReference(metacolletion);
}
Aggregations