Package org.n52.iceland.config.json
Class JsonActivationDao
java.lang.Object
org.n52.faroe.json.AbstractJsonDao
org.n52.iceland.config.json.AbstractJsonActivationDao
org.n52.iceland.config.json.JsonActivationDao
- All Implemented Interfaces:
ActivationDao
TODO JavaDoc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Function<com.fasterxml.jackson.databind.JsonNode, OwsOperationMetadataExtensionProviderKey> protected RequestOperatorKeydecodeRequestOperatorKey(com.fasterxml.jackson.databind.JsonNode node) protected Supplier<com.fasterxml.jackson.databind.node.ObjectNode> encode(Supplier<com.fasterxml.jackson.databind.node.ObjectNode> supplier, RequestOperatorKey key) booleanChecks if the binding is active.booleanChecks if the extended capabilities is active.booleanReturns if a operation is active and should be offered by this service.protected Predicate<com.fasterxml.jackson.databind.JsonNode> protected Predicate<com.fasterxml.jackson.databind.JsonNode> matchesOperationName(String operationName) voidsetBindingStatus(BindingKey key, boolean active) Sets the status of a binding.voidsetOperationStatus(RequestOperatorKey key, boolean active) Sets the status of an operation.voidsetOwsOperationMetadataExtensionProviderStatus(OwsOperationMetadataExtensionProviderKey key, boolean active) Methods inherited from class org.n52.iceland.config.json.AbstractJsonActivationDao
createDomainDecoder, decodeServiceOperatorKey, encode, encode, getKeys, isActive, matches, matches, matchesDomain, matchesService, matchesVersion, setStatusMethods inherited from class org.n52.faroe.json.AbstractJsonDao
configuration, createEntryStream, createStream, getConfiguration, isNullOrMissing, nodeFactory, readLock, setConfiguration, writeLock
-
Constructor Details
-
JsonActivationDao
public JsonActivationDao()
-
-
Method Details
-
isRequestOperatorActive
Description copied from interface:ActivationDaoReturns if a operation is active and should be offered by this service.- Specified by:
isRequestOperatorActivein interfaceActivationDao- Parameters:
key- the key identifying the operation- Returns:
trueif the operation is active in this service
-
setOperationStatus
Description copied from interface:ActivationDaoSets the status of an operation.- Specified by:
setOperationStatusin interfaceActivationDao- Parameters:
key- the key identifying the operationactive- whether the operation is active or not
-
getRequestOperatorKeys
- Specified by:
getRequestOperatorKeysin interfaceActivationDao
-
isBindingActive
Description copied from interface:ActivationDaoChecks if the binding is active.- Specified by:
isBindingActivein interfaceActivationDao- Parameters:
key- the binding- Returns:
- if the binding is active
-
setBindingStatus
Description copied from interface:ActivationDaoSets the status of a binding.- Specified by:
setBindingStatusin interfaceActivationDao- Parameters:
key- the bindingactive- the status
-
getBindingKeys
- Specified by:
getBindingKeysin interfaceActivationDao
-
isOwsOperationMetadataExtensionProviderActive
public boolean isOwsOperationMetadataExtensionProviderActive(OwsOperationMetadataExtensionProviderKey key) Description copied from interface:ActivationDaoChecks if the extended capabilities is active.- Specified by:
isOwsOperationMetadataExtensionProviderActivein interfaceActivationDao- Parameters:
key- the extended capabilities key- Returns:
- if the extended capabilities is active
-
setOwsOperationMetadataExtensionProviderStatus
public void setOwsOperationMetadataExtensionProviderStatus(OwsOperationMetadataExtensionProviderKey key, boolean active) - Specified by:
setOwsOperationMetadataExtensionProviderStatusin interfaceActivationDao
-
getOwsOperationMetadataExtensionProviderKeys
- Specified by:
getOwsOperationMetadataExtensionProviderKeysin interfaceActivationDao
-
decodeRequestOperatorKey
-
decodeOwsExtendedCapabilitiesProviderKey
protected Function<com.fasterxml.jackson.databind.JsonNode,OwsOperationMetadataExtensionProviderKey> decodeOwsExtendedCapabilitiesProviderKey() -
encode
protected Supplier<com.fasterxml.jackson.databind.node.ObjectNode> encode(Supplier<com.fasterxml.jackson.databind.node.ObjectNode> supplier, RequestOperatorKey key) -
matches
-
matchesOperationName
-