java.lang.Object
org.codice.ddf.spatial.ogc.csw.catalog.common.transaction.InsertActionImpl
All Implemented Interfaces:
org.codice.ddf.spatial.ogc.csw.catalog.actions.InsertAction

public class InsertActionImpl extends Object implements org.codice.ddf.spatial.ogc.csw.catalog.actions.InsertAction
An InsertActionImpl represents a single insert action within a CSW transaction.
  • Constructor Details

    • InsertActionImpl

      public InsertActionImpl(String typeName, String handle, List<ddf.catalog.data.Metacard> records)
      Constructs an InsertActionImpl with the specified typeName, handle, and list of records to insert.

      If an error occurs while processing this insert action, handle will be included in the exception report response so the specific action within the transaction that caused the error can be identified.

      Parameters:
      typeName - the type of record being inserted, such as csw:Record
      handle - the name to associate with this insert action
      records - the records to insert
  • Method Details

    • getRecords

      public List<ddf.catalog.data.Metacard> getRecords()
      Specified by:
      getRecords in interface org.codice.ddf.spatial.ogc.csw.catalog.actions.InsertAction
    • getTypeName

      public String getTypeName()
      Specified by:
      getTypeName in interface org.codice.ddf.spatial.ogc.csw.catalog.actions.InsertAction
    • getHandle

      public String getHandle()
      Specified by:
      getHandle in interface org.codice.ddf.spatial.ogc.csw.catalog.actions.InsertAction