public class ProcessUpdateItemImpl extends ProcessItemImpl implements ProcessUpdateItem
| Constructor and Description |
|---|
ProcessUpdateItemImpl(ProcessResource processResource,
Metacard newMetacard,
Metacard oldMetacard)
|
ProcessUpdateItemImpl(ProcessResource processResource,
Metacard newMetacard,
Metacard oldMetacard,
boolean isMetacardModified)
|
| Modifier and Type | Method and Description |
|---|---|
Metacard |
getOldMetacard()
Gets the original
Metacard before the update. |
ProcessResource |
getProcessResource()
Gets the
ProcessResource that corresponds to the associated Metacard retrieved from ProcessItem.getMetacard(). |
boolean |
isMetacardModified()
Determines whether or not the metacard from
ProcessItem.getMetacard() has been modified
by any of the PostProcessPlugins during processing by the ProcessingFramework. |
void |
markMetacardAsModified()
Mark the metacard as modified.
|
getMetacardclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetacardpublic ProcessUpdateItemImpl(@Nullable ProcessResource processResource, Metacard newMetacard, Metacard oldMetacard)
processResource - ProcessResource associated with this ProcessUpdateItem,
can be nullnewMetacard - non null Metacard that represents the metacard after updatesoldMetacard - non null Metacard that represents the original metacard before
updatespublic ProcessUpdateItemImpl(@Nullable ProcessResource processResource, Metacard newMetacard, Metacard oldMetacard, boolean isMetacardModified)
processResource - ProcessResource associated with this ProcessUpdateItem,
can be nullnewMetacard - non null Metacard that represents the metacard after updatesoldMetacard - non null Metacard that represents the original metacard before
updatesisMetacardModified - true if updates are required to be sent back to the Catalog
false otherwise.public Metacard getOldMetacard()
ProcessUpdateItemMetacard before the update.getOldMetacard in interface ProcessUpdateItemMetacard@Nullable public ProcessResource getProcessResource()
ProcessResourceItemProcessResource that corresponds to the associated Metacard retrieved from ProcessItem.getMetacard().getProcessResource in interface ProcessResourceItemProcessResourcepublic boolean isMetacardModified()
ProcessResourceItemProcessItem.getMetacard() has been modified
by any of the PostProcessPlugins during processing by the ProcessingFramework.
This is used to determine whether or not a (@link ddf.catalog.operation.UpdateRequest} for this
ProcessItem.getMetacard() needs to be made back to the CatalogFramework.isMetacardModified in interface ProcessResourceItemtrue if modified, false otherwisepublic void markMetacardAsModified()
ProcessResourceItemmarkMetacardAsModified in interface ProcessResourceItemThis work is licensed under a Creative Commons Attribution 4.0 International License.