Package ddf.catalog.operation.impl
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
The UpdateRequestImpl represents the default implementation of
UpdateRequest.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected List<Map.Entry<Serializable,ddf.catalog.data.Metacard>> Fields inherited from interface ddf.catalog.operation.UpdateRequest
UPDATE_BY_ID, UPDATE_BY_PRODUCT_URI -
Constructor Summary
ConstructorsConstructorDescriptionUpdateRequestImpl(String[] ids, List<ddf.catalog.data.Metacard> metacards) Instantiates a new UpdateRequestImpl from an array of ids and a list ofMetacardUpdateRequestImpl(String id, ddf.catalog.data.Metacard metacard) Instantiates a new UpdateRequestImpl from an id and metacardUpdateRequestImpl(URI[] uris, List<ddf.catalog.data.Metacard> metacards) Instantiates a new UpdateRequestImpl from an array ofURIand a list ofMetacardUpdateRequestImpl(List<Map.Entry<Serializable, ddf.catalog.data.Metacard>> updateList, String attributeName, Map<String, Serializable> properties) Instantiates a new UpdateRequestImpl.UpdateRequestImpl(List<Map.Entry<Serializable, ddf.catalog.data.Metacard>> updateList, String attributeName, Map<String, Serializable> properties, Set<String> destinations) Instantiates a new UpdateRequestImpl. -
Method Summary
Methods inherited from class ddf.catalog.operation.impl.OperationImpl
containsPropertyName, getProperties, getPropertyNames, getPropertyValue, hasProperties, setPropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ddf.catalog.operation.Operation
containsPropertyName, getProperties, getPropertyNames, getPropertyValue, hasProperties
-
Field Details
-
name
-
updates
-
-
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 updatedMetacardattributeName- the attribute name (e.g. Metacard.ID, Metacard.PRODUCT_URI)properties- the properties associated with the operationdestinations- 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 updatedMetacardattributeName- the attribute name (e.g. Metacard.ID, Metacard.PRODUCT_URI)properties- the properties associated with the operation
-
UpdateRequestImpl
Instantiates a new UpdateRequestImpl from an id and metacard- Parameters:
id- the id of theMetacardto updatemetacard- the updatedMetacardvalue.
-
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 ofMetacard- Parameters:
ids- - the ids associated with theMetacardlistmetacards- the updatedMetacardvalues- Throws:
IllegalArgumentException- if the ids array size and list ofMetacardsize does not match
-
UpdateRequestImpl
public UpdateRequestImpl(URI[] uris, List<ddf.catalog.data.Metacard> metacards) throws IllegalArgumentException Instantiates a new UpdateRequestImpl from an array ofURIand a list ofMetacard- Parameters:
uris- - the uris associated with theMetacardlistmetacards- the updatedMetacardvalues- Throws:
IllegalArgumentException- if the uris array size and list ofMetacardsize does not match
-
-
Method Details
-
getStoreIds
- Specified by:
getStoreIdsin interfaceddf.catalog.operation.Request
-
getAttributeName
- Specified by:
getAttributeNamein interfaceddf.catalog.operation.UpdateRequest
-
getUpdates
- Specified by:
getUpdatesin interfaceddf.catalog.operation.UpdateRequest
-