use of org.n52.iceland.request.operator.RequestOperatorKey in project arctic-sea by 52North.
the class JsonActivationDao method matches.
protected Predicate<JsonNode> matches(RequestOperatorKey key) {
OwsServiceKey sok = key == null ? null : key.getServiceOperatorKey();
String operationName = key == null ? null : key.getOperationName();
return matches(sok).and(matchesOperationName(operationName));
}
use of org.n52.iceland.request.operator.RequestOperatorKey in project arctic-sea by 52North.
the class AbstractGetCapabilitiesHandler method getOperations.
private OwsOperationsMetadata getOperations(String service, String version) throws OwsExceptionReport {
Collection<OwsDomain> parameters = getCommonParameters(service);
Collection<OwsDomain> constraints = null;
Collection<OwsOperation> operations = new LinkedList<>();
OwsOperationMetadataExtension extension = getOperationsMetadataExtension(service, version);
for (RequestOperatorKey operatorKey : requestOperatorRepository.getActiveRequestOperatorKeys(new OwsServiceKey(service, version))) {
Optional.ofNullable(requestOperatorRepository.getRequestOperator(operatorKey).getOperationMetadata(service, version)).ifPresent(operations::add);
}
return new OwsOperationsMetadata(operations, parameters, constraints, extension);
}
Aggregations