public class UnavailableSolrCatalogProvider extends Object implements CatalogProvider
|Constructor and Description
|Modifier and Type
|Method and Description
Publishes a list of
Metacard objects into the catalog.
Deletes records specified by a list of attribute values such as an id attribute.
Returns a description of the describable item.
Returns the name, aka ID, of the describable item.
Returns the organization associated with the describable item.
Returns the title of the describable item.
Retrieve the version.
This method states whether this source is available, typically connecting and performing some sort of simple query or ping to the native catalog.
Instructs this source of the id to use when reporting an id externally.
Updates a list of
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Set<ContentType> getContentTypes()
ContentTypes that are currently stored by the
Source. Notice the
return object is a
Set, meaning it returns all unique content types found in the Source
public boolean isAvailable()
This is expected to be an expensive operation, possibly involving network I/O.
CatalogFramework implementations will call this and only
public boolean isAvailable(SourceMonitor callback)
Source.isAvailable() but allows a caller to provide a
SourceMonitor callback object which is meant to be used as a way for the
dynamically contact the caller with its availability. The intent is to return a boolean as to
Source is available at this very moment and also to use the
SourceMonitor object to update the caller of this method if this Source's availability changes
later in the future.
public SourceResponse query(QueryRequest queryRequest) throws UnsupportedQueryException
public String getDescription()
public String getId()
MetacardTransformer that transforms
Metacards to HTML
public String getOrganization()
public String getTitle()
public String getVersion()
public void maskId(String sourceId)
public CreateResponse create(CreateRequest createRequest) throws IngestException
Metacard objects into the catalog.
create in interface
createRequest - - the
CreateRequest that includes a
Metacard objects to be stored in a
Source. The ID of the
Metacard object will be ignored and populated / generated by the
CatalogProvider 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
IngestException - if any problem occurs when storing the metacards
public DeleteResponse delete(DeleteRequest deleteRequest) throws IngestException
delete in interface
deleteRequest - - the
DeleteRequest containing the attribute values associated
Metacards to delete
Metacards that were deleted.
Metacards are fully populated in preparation for any
IngestException - if an issue occurs during the delete
public UpdateResponse update(UpdateRequest updateRequest) throws IngestException
records that are not in the Catalog will not be created.
update in interface
updateRequest - - the
UpdateRequest that includes updates to
Metacard records that have been previously stored in a
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
Update objects that represent the new (updated) and old (previous)
IngestException - if an issue occurs during the update such as multiple records were
matched for a single update entry
This work is licensed under a Creative Commons Attribution 4.0 International License.