Class UpdateRequestImpl

java.lang.Object
ddf.catalog.operation.impl.OperationImpl
ddf.catalog.operation.impl.UpdateRequestImpl
All Implemented Interfaces:
ddf.catalog.operation.Operation, ddf.catalog.operation.Request, ddf.catalog.operation.UpdateRequest, Serializable

public class UpdateRequestImpl extends OperationImpl implements ddf.catalog.operation.UpdateRequest
The UpdateRequestImpl represents the default implementation of UpdateRequest.
See Also:
  • Field Details

  • Constructor Details

    • UpdateRequestImpl

      public UpdateRequestImpl(List<Map.Entry<Serializable,ddf.catalog.data.Metacard>> updateList, String attributeName, Map<String,Serializable> properties, Set<String> destinations)
      Instantiates a new UpdateRequestImpl.
      Parameters:
      updateList - the list of updated Metacard
      attributeName - the attribute name (e.g. Metacard.ID, Metacard.PRODUCT_URI)
      properties - the properties associated with the operation
      destinations - the destination ids this request should be sent to
    • UpdateRequestImpl

      public UpdateRequestImpl(List<Map.Entry<Serializable,ddf.catalog.data.Metacard>> updateList, String attributeName, Map<String,Serializable> properties)
      Instantiates a new UpdateRequestImpl.
      Parameters:
      updateList - - the list of updated Metacard
      attributeName - the attribute name (e.g. Metacard.ID, Metacard.PRODUCT_URI)
      properties - the properties associated with the operation
    • UpdateRequestImpl

      public UpdateRequestImpl(String id, ddf.catalog.data.Metacard metacard)
      Instantiates a new UpdateRequestImpl from an id and metacard
      Parameters:
      id - the id of the Metacard to update
      metacard - the updated Metacard value.
    • UpdateRequestImpl

      public UpdateRequestImpl(String[] ids, List<ddf.catalog.data.Metacard> metacards) throws IllegalArgumentException
      Instantiates a new UpdateRequestImpl from an array of ids and a list of Metacard
      Parameters:
      ids - - the ids associated with the Metacard list
      metacards - the updated Metacard values
      Throws:
      IllegalArgumentException - if the ids array size and list of Metacard size does not match
    • UpdateRequestImpl

      public UpdateRequestImpl(URI[] uris, List<ddf.catalog.data.Metacard> metacards) throws IllegalArgumentException
      Instantiates a new UpdateRequestImpl from an array of URI and a list of Metacard
      Parameters:
      uris - - the uris associated with the Metacard list
      metacards - the updated Metacard values
      Throws:
      IllegalArgumentException - if the uris array size and list of Metacard size does not match
  • Method Details

    • getStoreIds

      public Set<String> getStoreIds()
      Specified by:
      getStoreIds in interface ddf.catalog.operation.Request
    • getAttributeName

      public String getAttributeName()
      Specified by:
      getAttributeName in interface ddf.catalog.operation.UpdateRequest
    • getUpdates

      public List<Map.Entry<Serializable,ddf.catalog.data.Metacard>> getUpdates()
      Specified by:
      getUpdates in interface ddf.catalog.operation.UpdateRequest