public class UpdateAction extends CswAction
Constructor and Description |
---|
UpdateAction(Map<String,Serializable> recordProperties,
String typeName,
String handle,
QueryConstraintType constraint,
Map<String,String> prefixToUriMappings)
Constructs an UpdateAction with the specified map of attributes to new values to update in the
metacard, typeName, handle, constraint, and map of XML namespace prefixes to their respective
URIs.
|
UpdateAction(Metacard metacard,
String typeName,
String handle)
Constructs an UpdateAction with the specified metacard, typeName, and handle.
|
Modifier and Type | Method and Description |
---|---|
QueryConstraintType |
getConstraint() |
Metacard |
getMetacard() |
Map<String,String> |
getPrefixToUriMappings() |
Map<String,Serializable> |
getRecordProperties() |
getHandle, getTypeName
public UpdateAction(Metacard metacard, String typeName, String handle)
metacard
with metacard
.
If an error occurs while processing this update action, handle
will be included in
the exception report response so the specific action within the transaction that caused the
error can be identified.
metacard
- the updated metacard that will replace the existing metacard with the same IDtypeName
- the type of record being updated, such as csw:Recordhandle
- the name to associate with this update actionpublic UpdateAction(Map<String,Serializable> recordProperties, String typeName, String handle, QueryConstraintType constraint, Map<String,String> prefixToUriMappings)
prefixToUriMappings
should contain the prefix to URI mappings declared in the
transaction request XML.
This UpdateAction will update all metacards matching constraint
by updating their
attributes according to the attribute names and values specified in recordProperties
.
If an error occurs while processing this update action, handle
will be included in
the exception report response so the specific action within the transaction that caused the
error can be identified.
recordProperties
- the map of attribute names to update to their new valuestypeName
- the type of record being updated, such as csw:Recordhandle
- the name to associate with this update actionconstraint
- the QueryConstraintType
that specifies which metacards this update
will be applied toprefixToUriMappings
- the map that contains the XML namespace prefix to URI mappings
declared in the transaction request XMLpublic Metacard getMetacard()
public QueryConstraintType getConstraint()
public Map<String,Serializable> getRecordProperties()
This work is licensed under a Creative Commons Attribution 4.0 International License.