Package ddf.catalog.operation
Interface UpdateRequest
- All Superinterfaces:
Operation,Request,Serializable
Interface representing a request to update a Metacard. Â Requests may be batched, but each
Metacard/Attribute pair will only update a single Metacard.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionThe attribute name tells theCatalogProviderwhat type of attribute values are theMap.Entrykeys in the update list.Get the updates to be made.Methods inherited from interface ddf.catalog.operation.Operation
containsPropertyName, getProperties, getPropertyNames, getPropertyValue, hasPropertiesMethods inherited from interface ddf.catalog.operation.Request
getStoreIds
-
Field Details
-
UPDATE_BY_ID
- See Also:
-
UPDATE_BY_PRODUCT_URI
Shortcut for theAttributename used for updatingMetacards by theStringvalue of theMetacard'sResource URI.- See Also:
-
-
Method Details
-
getAttributeName
String getAttributeName()The attribute name tells theCatalogProviderwhat type of attribute values are theMap.Entrykeys in the update list. For instance, if the attribute name was "id," then theCatalogProviderwould know that theMap.Entrykeys in the update list (List<Entry<Serializable, Metacard>>) were id values (such as575aa9625fa24b338bd3c439f2613709) and could create the appropriate backend search.- Returns:
- the name of the attribute, the attribute name must correspond to an
Attributethat has an ddf.catalog.data.AttributeType.AttributeFormat ofAttributeType.AttributeFormat.STRING
-
getUpdates
List<Map.Entry<Serializable,Metacard>> getUpdates()Get the updates to be made. AnyMetacards that have anAttribute.getName()that matches the name returned bygetAttributeName()and aAttribute.getValue()that matches theSerializablevalue in anMap.Entryof thisListwill be updated with the value of the associatedMetacardin theList. An entry's key in theListmust match zero metacards or one metacard in the Source.
-