public class RegistryIdPostIngestPlugin extends Object implements PostIngestPlugin
Initially the catalog is queried to initialize the set of registry-ids. After that the list is maintained by the process methods for create and delete responses.
Constructor and Description |
---|
RegistryIdPostIngestPlugin() |
RegistryIdPostIngestPlugin(Security security) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
Set<String> |
getLocalRegistryIds() |
Set<String> |
getRegistryIds() |
Set<String> |
getRemoteMetacardIds() |
void |
init()
Init method initializes the id sets from the catalog.
|
CreateResponse |
process(CreateResponse input)
Processes the
CreateResponse . |
DeleteResponse |
process(DeleteResponse input)
Processes the
DeleteResponse . |
UpdateResponse |
process(UpdateResponse input)
Processes the
UpdateResponse . |
void |
setCatalogFramework(CatalogFramework framework) |
void |
setExecutorService(ScheduledExecutorService executorService) |
void |
setFilterBuilder(FilterBuilder filterBuilder) |
public RegistryIdPostIngestPlugin()
public RegistryIdPostIngestPlugin(Security security)
public CreateResponse process(CreateResponse input) throws PluginExecutionException
PostIngestPlugin
CreateResponse
.process
in interface PostIngestPlugin
input
- the CreateResponse
to processCreateResponse
to pass to the next PostIngestPlugin
, or if this is the last PostIngestPlugin
to be calledPluginExecutionException
- thrown when an error occurs during processingpublic UpdateResponse process(UpdateResponse input) throws PluginExecutionException
PostIngestPlugin
UpdateResponse
.process
in interface PostIngestPlugin
input
- the UpdateResponse
to processUpdateResponse
to pass to the next PostIngestPlugin
, or if this is the last PostIngestPlugin
to be calledPluginExecutionException
- thrown when an error occurs during processingpublic DeleteResponse process(DeleteResponse input) throws PluginExecutionException
PostIngestPlugin
DeleteResponse
.process
in interface PostIngestPlugin
input
- the DeleteResponse
to processDeleteResponse
to pass to the next PostIngestPlugin
, or if this is the last PostIngestPlugin
to be calledPluginExecutionException
- thrown when an error occurs during processingpublic void init()
public void destroy()
public void setFilterBuilder(FilterBuilder filterBuilder)
public void setCatalogFramework(CatalogFramework framework)
public void setExecutorService(ScheduledExecutorService executorService)
This work is licensed under a Creative Commons Attribution 4.0 International License.