Search in sources :

Example 1 with RequestOperatorKey

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));
}
Also used : OwsServiceKey(org.n52.shetland.ogc.ows.service.OwsServiceKey)

Example 2 with RequestOperatorKey

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);
}
Also used : OwsDomain(org.n52.shetland.ogc.ows.OwsDomain) RequestOperatorKey(org.n52.iceland.request.operator.RequestOperatorKey) OwsOperationsMetadata(org.n52.shetland.ogc.ows.OwsOperationsMetadata) OwsOperation(org.n52.shetland.ogc.ows.OwsOperation) OwsServiceKey(org.n52.shetland.ogc.ows.service.OwsServiceKey) OwsOperationMetadataExtension(org.n52.shetland.ogc.ows.OwsOperationMetadataExtension) LinkedList(java.util.LinkedList)

Aggregations

OwsServiceKey (org.n52.shetland.ogc.ows.service.OwsServiceKey)2 LinkedList (java.util.LinkedList)1 RequestOperatorKey (org.n52.iceland.request.operator.RequestOperatorKey)1 OwsDomain (org.n52.shetland.ogc.ows.OwsDomain)1 OwsOperation (org.n52.shetland.ogc.ows.OwsOperation)1 OwsOperationMetadataExtension (org.n52.shetland.ogc.ows.OwsOperationMetadataExtension)1 OwsOperationsMetadata (org.n52.shetland.ogc.ows.OwsOperationsMetadata)1