public class StandardMetacardGroomerPlugin extends AbstractMetacardGroomerPlugin
Metacard.ID
,
Metacard.MODIFIED
, and Metacard.CREATED
fields.Constructor and Description |
---|
StandardMetacardGroomerPlugin() |
Modifier and Type | Method and Description |
---|---|
protected void |
applyCreatedOperationRules(CreateRequest createRequest,
Metacard aMetacard,
Date now)
This method is called on each Metacard in the
CreateRequest . |
protected void |
applyUpdateOperationRules(UpdateRequest updateRequest,
Map.Entry<Serializable,Metacard> anUpdate,
Metacard aMetacard,
Date now)
This method is called on each
Metacard in the UpdateRequest . |
void |
setUuidGenerator(UuidGenerator uuidGenerator) |
process, process, process
public void setUuidGenerator(UuidGenerator uuidGenerator)
protected void applyCreatedOperationRules(CreateRequest createRequest, Metacard aMetacard, Date now)
AbstractMetacardGroomerPlugin
CreateRequest
. It allows for the
modification of the Metacard
object within the request.applyCreatedOperationRules
in class AbstractMetacardGroomerPlugin
createRequest
- the entire CreateRequest
objectaMetacard
- a Metacard
within the requestnow
- a current Date
timestamp to be optionally used to timestamp each
Metacard
protected void applyUpdateOperationRules(UpdateRequest updateRequest, Map.Entry<Serializable,Metacard> anUpdate, Metacard aMetacard, Date now)
AbstractMetacardGroomerPlugin
Metacard
in the UpdateRequest
. It allows for
modification of the Metacard
object within the request.applyUpdateOperationRules
in class AbstractMetacardGroomerPlugin
updateRequest
- the entire UpdateRequest
objectanUpdate
- a single Update
within the UpdateRequest
aMetacard
- a Metacard
within the requestnow
- a current Date
timestamp to be optionally used to timestamp each
Metacard, such as stamping each Metacard with the same Metacard.MODIFIED
date.This work is licensed under a Creative Commons Attribution 4.0 International License.