public abstract class AbstractCswStore extends AbstractCswSource implements CatalogStore
Modifier and Type | Field and Description |
---|---|
protected javax.ws.rs.ext.MessageBodyWriter<CswTransactionRequest> |
cswTransactionWriter |
protected TransformerManager |
schemaTransformerManager |
availabilityPollFuture, capabilities, configurationPid, CONNECTION_TIMEOUT_PROPERTY, COORDINATE_ORDER_PROPERTY, CSW_SERVER_ERROR, cswFilterDelegate, 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, METACARD_MAPPINGS_PROPERTY, NO_FORCE_SPATIAL_FILTER, 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, subscribeClientFactory, USE_POS_LIST_PROPERTY, USERNAME_PROPERTY
Constructor and Description |
---|
AbstractCswStore(org.osgi.framework.BundleContext context,
CswSourceConfiguration cswSourceConfiguration,
com.thoughtworks.xstream.converters.Converter provider,
SecureCxfClientFactory factory,
EncryptionService encryptionService)
Instantiates a CswStore.
|
AbstractCswStore(EncryptionService encryptionService)
Instantiates a CswStore.
|
Modifier and Type | Method and Description |
---|---|
CreateResponse |
create(CreateRequest createRequest)
Publishes a list of
Metacard objects into the catalog. |
DeleteResponse |
delete(DeleteRequest deleteRequest)
Deletes records specified by a list of attribute values such as an id attribute.
|
javax.ws.rs.ext.MessageBodyWriter<CswTransactionRequest> |
getCswTransactionWriter() |
protected List<? extends Object> |
initProviders(com.thoughtworks.xstream.converters.Converter cswTransformProvider,
CswSourceConfiguration cswSourceConfiguration) |
void |
setCswTransactionWriter(javax.ws.rs.ext.MessageBodyWriter<CswTransactionRequest> cswTransactionWriter) |
void |
setSchemaTransformerManager(TransformerManager schemaTransformerManager) |
UpdateResponse |
update(UpdateRequest updateRequest)
Updates a list of
Metacard records. |
protected void |
validateOperation() |
addSourceMonitor, availabilityChanged, configureCswSource, createResults, destroy, getAdditionalConsumers, getAvailabilityCommand, getCapabilities, getConfigurationPid, getConnectionTimeout, getContentTypes, getCswTransformConverter, getDescription, getForceSpatialFilter, getId, getMetadataTransformerId, getOptions, getOrganization, getParameter, getReceiveTimeout, getResourceReader, getSecurityAttributes, getSupportedSchemes, getSystemSubject, getTitle, getVersion, handleClientException, handleWebApplicationException, init, initSubscribeClientFactory, isAvailable, isAvailable, loadContentTypes, lookupMetadataTransformer, maskId, query, query, refresh, retrieveResource, setAvailabilityTask, setConfigurationPid, setConnectionTimeout, setContext, setCoordinateOrder, setCsw201, setCswTransformConverter, setCswUrl, setDisableCnCheck, setEventServiceAddress, setFilterAdapter, setFilterBuilder, setFilterDelegate, setForceSpatialFilter, setId, setIsCqlForced, setMetacardMappings, setMetacardTypes, setOutputSchema, setPassword, setPollInterval, setQueryTypeName, setQueryTypeNamespace, setReceiveTimeout, setRegisterForEvents, setResourceReader, setSecurityManager, setupAvailabilityPoll, setUsePosList, setUsername, transform
setDescription, setOrganization, setShortname, setTitle, setVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContentTypes, getSecurityAttributes, isAvailable, isAvailable, query
getOptions, getSupportedSchemes, retrieveResource
getDescription, getId, getOrganization, getTitle, getVersion
protected TransformerManager schemaTransformerManager
protected javax.ws.rs.ext.MessageBodyWriter<CswTransactionRequest> cswTransactionWriter
public AbstractCswStore(org.osgi.framework.BundleContext context, CswSourceConfiguration cswSourceConfiguration, com.thoughtworks.xstream.converters.Converter provider, SecureCxfClientFactory factory, EncryptionService encryptionService)
context
- The BundleContext
from the OSGi FrameworkcswSourceConfiguration
- the configuration of this sourceprovider
- transform provider to transform resultsfactory
- client factory already configured for this sourcepublic AbstractCswStore(EncryptionService encryptionService)
public CreateResponse create(CreateRequest createRequest) throws IngestException
CatalogStore
Metacard
objects into the catalog.create
in interface CatalogStore
createRequest
- - the CreateRequest
that includes a List
of
Metacard
objects to be stored in a Source
. The ID of the
Metacard
object will be ignored and populated / generated by the
CatalogStore
when the record has been stored.CreateResponse
containing a List
of fully populated
metacards. This should be similar to the parameter list of Metacard
objects but it must have the ddf.catalog.data.Metacard ID
populated.IngestException
- if any problem occurs when storing the metacardspublic UpdateResponse update(UpdateRequest updateRequest) throws IngestException
CatalogStore
Metacard
records. Metacard
records that are not in the Catalog will not be created.update
in interface CatalogStore
updateRequest
- - the UpdateRequest
that includes updates to Metacard
records that have been previously stored in a Source
. A
given Attribute
name-value pair in this request must uniquely
identify zero metacards or one metacard in the Source
, otherwise an IngestException
will be thrown.UpdateResponse
containing a List
of Update
objects that represent the new (updated) and old (previous)
Metacard
records.IngestException
- if an issue occurs during the update such as multiple records were
matched for a single update entrypublic DeleteResponse delete(DeleteRequest deleteRequest) throws IngestException
CatalogStore
delete
in interface CatalogStore
deleteRequest
- - the DeleteRequest
containing the attribute values associated
with Metacard
s to deleteDeleteResponse
with Metacard
s that were deleted.
These Metacard
s are fully populated in preparation for any
processing services.IngestException
- if an issue occurs during the deleteprotected List<? extends Object> initProviders(com.thoughtworks.xstream.converters.Converter cswTransformProvider, CswSourceConfiguration cswSourceConfiguration)
initProviders
in class AbstractCswSource
public void setSchemaTransformerManager(TransformerManager schemaTransformerManager)
public javax.ws.rs.ext.MessageBodyWriter<CswTransactionRequest> getCswTransactionWriter()
public void setCswTransactionWriter(javax.ws.rs.ext.MessageBodyWriter<CswTransactionRequest> cswTransactionWriter)
protected void validateOperation()
This work is licensed under a Creative Commons Attribution 4.0 International License.