Package ddf.catalog.source
Interface CatalogStore
- All Superinterfaces:
Describable,org.codice.ddf.platform.services.common.Describable,FederatedSource,RemoteSource,ResourceReader,Source
This code is experimental. While this interface is functional and tested, it may change or be
removed in a future version of the library. A CatalogStore represents an editable store that
is either local or remote
-
Method Summary
Modifier and TypeMethodDescriptioncreate(CreateRequest createRequest) Publishes a list ofMetacardobjects into the catalog.delete(DeleteRequest deleteRequest) Deletes records specified by a list of attribute values such as an id attribute.update(UpdateRequest updateRequest) Updates a list ofMetacardrecords.Methods 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
-
Method Details
-
create
Publishes a list ofMetacardobjects into the catalog.- Parameters:
createRequest- - theCreateRequestthat includes aListofMetacardobjects to be stored in aSource. The ID of theMetacardobject will be ignored and populated / generated by theCatalogStorewhen the record has been stored.- Returns:
- the
CreateResponsecontaining aListof fully populated metacards. This should be similar to the parameter list ofMetacardobjects but it must have the ddf.catalog.data.Metacard ID populated. - Throws:
IngestException- if any problem occurs when storing the metacards
-
update
Updates a list ofMetacardrecords.Metacardrecords that are not in the Catalog will not be created.- Parameters:
updateRequest- - theUpdateRequestthat includes updates toMetacardrecords that have been previously stored in aSource. A givenAttributename-value pair in this request must uniquely identify zero metacards or one metacard in theSource, otherwise anIngestExceptionwill be thrown.- Returns:
- the
UpdateResponsecontaining aListofUpdateobjects that represent the new (updated) and old (previous)Metacardrecords. - Throws:
IngestException- if an issue occurs during the update such as multiple records were matched for a single update entry
-
delete
Deletes records specified by a list of attribute values such as an id attribute.- Parameters:
deleteRequest- - theDeleteRequestcontaining the attribute values associated withMetacards to delete- Returns:
- a
DeleteResponsewithMetacards that were deleted. TheseMetacards are fully populated in preparation for any processing services. - Throws:
IngestException- if an issue occurs during the delete
-