Skip to content
Snippets Groups Projects

OZG-7609 provide aggregation manager config endpoint without auhtantication

Merged Felix Reichenbach requested to merge OZG-7609-aggregation-manager-configurations into main
2 unresolved threads
5 files
+ 17
8
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -30,10 +30,13 @@ import org.springframework.data.mongodb.repository.Query;
@@ -30,10 +30,13 @@ import org.springframework.data.mongodb.repository.Query;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import org.springframework.security.access.annotation.Secured;
import org.springframework.security.access.annotation.Secured;
@Secured("ROLE_DATENBEAUFTRAGUNG")
@RepositoryRestResource
@RepositoryRestResource
interface AggregationMappingRepository extends MongoRepository<AggregationMapping, String> {
interface AggregationMappingRepository extends MongoRepository<AggregationMapping, String> {
 
@Override
@Override
@Query("{'_class': 'AggregationMapping'}")
@Secured("ROLE_DATENBEAUFTRAGUNG")
List<AggregationMapping> findAll();
List<AggregationMapping> findAll();
 
 
@Query("{}")
 
List<AggregationMapping> findAllUnsecured();
}
}
Loading