Class UpdateActionImpl
java.lang.Object
org.codice.ddf.spatial.ogc.csw.catalog.common.transaction.UpdateActionImpl
- All Implemented Interfaces:
org.codice.ddf.spatial.ogc.csw.catalog.actions.UpdateAction
public class UpdateActionImpl
extends Object
implements org.codice.ddf.spatial.ogc.csw.catalog.actions.UpdateAction
An UpdateActionImpl represents a single update action within a CSW transaction.
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateActionImpl(ddf.catalog.data.Metacard metacard, String typeName, String handle) Constructs an UpdateActionImpl with the specified metacard, typeName, and handle.UpdateActionImpl(Map<String, Serializable> recordProperties, String typeName, String handle, net.opengis.cat.csw.v_2_0_2.QueryConstraintType constraint, Map<String, String> prefixToUriMappings) Constructs an UpdateActionImpl 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. -
Method Summary
Modifier and TypeMethodDescriptionnet.opengis.cat.csw.v_2_0_2.QueryConstraintTypeddf.catalog.data.Metacard
-
Constructor Details
-
UpdateActionImpl
Constructs an UpdateActionImpl with the specified metacard, typeName, and handle. This UpdateActionImpl will replace the existing metacard having the same ID asmetacardwithmetacard.If an error occurs while processing this update action,
handlewill be included in the exception report response so the specific action within the transaction that caused the error can be identified.- Parameters:
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 action
-
UpdateActionImpl
public UpdateActionImpl(Map<String, Serializable> recordProperties, String typeName, String handle, net.opengis.cat.csw.v_2_0_2.QueryConstraintType constraint, Map<String, String> prefixToUriMappings) Constructs an UpdateActionImpl 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.prefixToUriMappingsshould contain the prefix to URI mappings declared in the transaction request XML.This UpdateActionImpl will update all metacards matching
constraintby updating their attributes according to the attribute names and values specified inrecordProperties.If an error occurs while processing this update action,
handlewill be included in the exception report response so the specific action within the transaction that caused the error can be identified.- Parameters:
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- theQueryConstraintTypethat 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 XML
-
-
Method Details
-
getMetacard
public ddf.catalog.data.Metacard getMetacard()- Specified by:
getMetacardin interfaceorg.codice.ddf.spatial.ogc.csw.catalog.actions.UpdateAction
-
getConstraint
public net.opengis.cat.csw.v_2_0_2.QueryConstraintType getConstraint()- Specified by:
getConstraintin interfaceorg.codice.ddf.spatial.ogc.csw.catalog.actions.UpdateAction
-
getRecordProperties
- Specified by:
getRecordPropertiesin interfaceorg.codice.ddf.spatial.ogc.csw.catalog.actions.UpdateAction
-
getPrefixToUriMappings
- Specified by:
getPrefixToUriMappingsin interfaceorg.codice.ddf.spatial.ogc.csw.catalog.actions.UpdateAction
-
getTypeName
- Specified by:
getTypeNamein interfaceorg.codice.ddf.spatial.ogc.csw.catalog.actions.UpdateAction
-
getHandle
- Specified by:
getHandlein interfaceorg.codice.ddf.spatial.ogc.csw.catalog.actions.UpdateAction
-