Class AbstractCswStore
java.lang.Object
ddf.catalog.util.impl.DescribableImpl
ddf.catalog.util.impl.MaskableImpl
org.codice.ddf.spatial.ogc.csw.catalog.common.source.AbstractCswSource
org.codice.ddf.spatial.ogc.csw.catalog.common.source.AbstractCswStore
- All Implemented Interfaces:
ddf.catalog.resource.ResourceReader,ddf.catalog.service.ConfiguredService,ddf.catalog.source.CatalogStore,ddf.catalog.source.ConnectedSource,ddf.catalog.source.FederatedSource,ddf.catalog.source.OAuthFederatedSource,ddf.catalog.source.RemoteSource,ddf.catalog.source.Source,ddf.catalog.util.Describable,ddf.catalog.util.Maskable,org.codice.ddf.platform.services.common.Describable
public abstract class AbstractCswStore
extends AbstractCswSource
implements ddf.catalog.source.CatalogStore
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javax.ws.rs.ext.MessageBodyWriter<CswTransactionRequest>protected TransformerManagerFields inherited from class org.codice.ddf.spatial.ogc.csw.catalog.common.source.AbstractCswSource
AUTHENTICATION_TYPE, availabilityPollFuture, capabilities, CERT_ALIAS_PROPERTY, clientBuilderFactory, configurationPid, CONNECTION_TIMEOUT_PROPERTY, COORDINATE_ORDER_PROPERTY, CSW_SERVER_ERROR, cswFilterDelegate, cswQueryFilterTransformerProvider, cswSourceConfiguration, cswTransformConverter, CSWURL_PROPERTY, DISABLE_CN_CHECK_PROPERTY, EVENT_SERVICE_ADDRESS, factory, filterAdapter, filterBuilder, filterlessSubscriptionId, FORCE_SPATIAL_FILTER_PROPERTY, forceSpatialFilter, getRecordsTypeProvider, ID_PROPERTY, IS_CQL_FORCED_PROPERTY, jaxbElementClassMap, jaxbElementClassNames, KEYSTORE_PATH_PROPERTY, METACARD_MAPPINGS_PROPERTY, NO_FORCE_SPATIAL_FILTER, OAUTH_CLIENT_ID, OAUTH_CLIENT_SECRET, OAUTH_DISCOVERY_URL, OAUTH_FLOW, OUTPUT_SCHEMA_PROPERTY, PASSWORD_PROPERTY, POLL_INTERVAL_PROPERTY, QUERY_TYPE_NAME_PROPERTY, QUERY_TYPE_NAMESPACE_PROPERTY, RECEIVE_TIMEOUT_PROPERTY, REGISTER_FOR_EVENTS, SECURITY_ATTRIBUTES_PROPERTY, securityManager, SSL_PROTOCOL_PROPERTY, subscribeClientFactory, USE_POS_LIST_PROPERTY, USERNAME_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCswStore(ddf.security.encryption.EncryptionService encryptionService, org.codice.ddf.cxf.client.ClientBuilderFactory clientBuilderFactory, org.codice.ddf.security.Security security, ddf.security.permission.Permissions permissions) Instantiates a CswStore.AbstractCswStore(org.osgi.framework.BundleContext context, CswSourceConfiguration cswSourceConfiguration, com.thoughtworks.xstream.converters.Converter provider, org.codice.ddf.cxf.client.ClientBuilderFactory clientBuilderFactory, ddf.security.encryption.EncryptionService encryptionService, org.codice.ddf.security.Security security, ddf.security.permission.Permissions permissions) Instantiates a CswStore. -
Method Summary
Modifier and TypeMethodDescriptionddf.catalog.operation.CreateResponsecreate(ddf.catalog.operation.CreateRequest createRequest) ddf.catalog.operation.DeleteResponsedelete(ddf.catalog.operation.DeleteRequest deleteRequest) javax.ws.rs.ext.MessageBodyWriter<CswTransactionRequest>initProviders(com.thoughtworks.xstream.converters.Converter cswTransformProvider, CswSourceConfiguration cswSourceConfiguration) voidsetCswTransactionWriter(javax.ws.rs.ext.MessageBodyWriter<CswTransactionRequest> cswTransactionWriter) voidsetSchemaTransformerManager(TransformerManager schemaTransformerManager) ddf.catalog.operation.UpdateResponseupdate(ddf.catalog.operation.UpdateRequest updateRequest) protected voidMethods inherited from class org.codice.ddf.spatial.ogc.csw.catalog.common.source.AbstractCswSource
addSourceMonitor, availabilityChanged, configureCswSource, createResults, destroy, getAdditionalConsumers, getAuthenticationType, getAvailabilityCommand, getCapabilities, getConfigurationPid, getConnectionTimeout, getContentTypes, getCswQueryFilterTransformerProvider, getCswTransformConverter, getDescription, getForceSpatialFilter, getId, getMetadataTransformerId, getOauthClientId, getOauthClientSecret, getOauthDiscoveryUrl, getOauthFlow, getOptions, getOrganization, getParameter, getReceiveTimeout, getResourceReader, getSecurityAttributes, getSupportedSchemes, getSystemSubject, getTitle, getVersion, handleClientException, handleWebApplicationException, init, initClientFactory, initSubscribeClientFactory, isAvailable, isAvailable, loadContentTypes, lookupMetadataTransformer, maskId, query, query, refresh, retrieveResource, setAuthenticationType, setAvailabilityTask, setCertAlias, setConfigurationPid, setConnectionTimeout, setContext, setCoordinateOrder, setCsw201, setCswQueryFilterTransformerProvider, setCswTransformConverter, setCswUrl, setDisableCnCheck, setEventServiceAddress, setFilterAdapter, setFilterBuilder, setFilterDelegate, setForceSpatialFilter, setId, setIsCqlForced, setKeystorePath, setMetacardMappings, setMetacardTypes, setOauthClientId, setOauthClientSecret, setOauthDiscoveryUrl, setOauthFlow, setOutputSchema, setPassword, setPollInterval, setQueryTypeName, setQueryTypeNamespace, setReceiveTimeout, setRegisterForEvents, setResourceReader, setSecurityManager, setSslProtocol, setupAvailabilityPoll, setUsePosList, setUsername, transformMethods inherited from class ddf.catalog.util.impl.DescribableImpl
setDescription, setOrganization, setShortname, setTitle, setVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ddf.catalog.util.Describable
getDescription, getId, getOrganization, getTitle, getVersionMethods inherited from interface ddf.catalog.resource.ResourceReader
getOptions, getSupportedSchemes, retrieveResourceMethods inherited from interface ddf.catalog.source.Source
getContentTypes, getSecurityAttributes, isAvailable, isAvailable, query
-
Field Details
-
schemaTransformerManager
-
cswTransactionWriter
-
-
Constructor Details
-
AbstractCswStore
public AbstractCswStore(org.osgi.framework.BundleContext context, CswSourceConfiguration cswSourceConfiguration, com.thoughtworks.xstream.converters.Converter provider, org.codice.ddf.cxf.client.ClientBuilderFactory clientBuilderFactory, ddf.security.encryption.EncryptionService encryptionService, org.codice.ddf.security.Security security, ddf.security.permission.Permissions permissions) Instantiates a CswStore. This constructor is for unit tests- Parameters:
context- TheBundleContextfrom the OSGi FrameworkcswSourceConfiguration- the configuration of this sourceprovider- transform provider to transform resultsclientBuilderFactory- client factory already configured for this source
-
AbstractCswStore
public AbstractCswStore(ddf.security.encryption.EncryptionService encryptionService, org.codice.ddf.cxf.client.ClientBuilderFactory clientBuilderFactory, org.codice.ddf.security.Security security, ddf.security.permission.Permissions permissions) Instantiates a CswStore.
-
-
Method Details
-
create
public ddf.catalog.operation.CreateResponse create(ddf.catalog.operation.CreateRequest createRequest) throws ddf.catalog.source.IngestException - Specified by:
createin interfaceddf.catalog.source.CatalogStore- Throws:
ddf.catalog.source.IngestException
-
update
public ddf.catalog.operation.UpdateResponse update(ddf.catalog.operation.UpdateRequest updateRequest) throws ddf.catalog.source.IngestException - Specified by:
updatein interfaceddf.catalog.source.CatalogStore- Throws:
ddf.catalog.source.IngestException
-
delete
public ddf.catalog.operation.DeleteResponse delete(ddf.catalog.operation.DeleteRequest deleteRequest) throws ddf.catalog.source.IngestException - Specified by:
deletein interfaceddf.catalog.source.CatalogStore- Throws:
ddf.catalog.source.IngestException
-
initProviders
protected List<Object> initProviders(com.thoughtworks.xstream.converters.Converter cswTransformProvider, CswSourceConfiguration cswSourceConfiguration) - Overrides:
initProvidersin classAbstractCswSource
-
setSchemaTransformerManager
-
getCswTransactionWriter
-
setCswTransactionWriter
public void setCswTransactionWriter(javax.ws.rs.ext.MessageBodyWriter<CswTransactionRequest> cswTransactionWriter) -
validateOperation
protected void validateOperation()
-