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 PostProcessPlugin s during processing by the ProcessingFramework . |
void |
markMetacardAsModified()
Mark the metacard as modified.
|
getMetacard
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetacard
public 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()
ProcessUpdateItem
Metacard
before the update.getOldMetacard
in interface ProcessUpdateItem
Metacard
@Nullable public ProcessResource getProcessResource()
ProcessResourceItem
ProcessResource
that corresponds to the associated Metacard
retrieved from ProcessItem.getMetacard()
.getProcessResource
in interface ProcessResourceItem
ProcessResource
public boolean isMetacardModified()
ProcessResourceItem
ProcessItem.getMetacard()
has been modified
by any of the PostProcessPlugin
s 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 ProcessResourceItem
true
if modified, false
otherwisepublic void markMetacardAsModified()
ProcessResourceItem
markMetacardAsModified
in interface ProcessResourceItem
This work is licensed under a Creative Commons Attribution 4.0 International License.