public class DeleteRequestImpl extends OperationImpl implements DeleteRequest
Modifier and Type | Field and Description |
---|---|
protected String |
name
The name of the attribute indicating id or URI
|
DELETE_BY_ID, DELETE_BY_PRODUCT_URI
Constructor and Description |
---|
DeleteRequestImpl(List<Serializable> values,
String attributeName,
Map<String,Serializable> properties)
Instantiates a new DeleteRequestImpl with a
List of Serializable values. |
DeleteRequestImpl(List<Serializable> values,
String attributeName,
Map<String,Serializable> properties,
Set<String> destinations) |
DeleteRequestImpl(String id)
Instantiates a new DeleteRequestImpl with a single
String id to be deleted. |
DeleteRequestImpl(String[] ids)
Instantiates a new DeleteRequestImpl with an array of
String id to be deleted. |
DeleteRequestImpl(String[] ids,
Map<String,Serializable> properties)
|
DeleteRequestImpl(URI uri)
Instantiates a new DeleteRequestImpl with an single
URI |
DeleteRequestImpl(URI[] uris)
Instantiates a new DeleteRequestImpl with a
URI array |
DeleteRequestImpl(URI[] uris,
Map<String,Serializable> properties)
|
Modifier and Type | Method and Description |
---|---|
String |
getAttributeName()
The attribute name tells the
CatalogProvider implementer what type
of attribute values are in the (DeleteRequest.getAttributeValues() ) List . |
List<Serializable> |
getAttributeValues()
Describes which
Metacard s to delete. |
Set<String> |
getStoreIds()
Returns a set of ids that correspond to catalog destinations
|
containsPropertyName, getProperties, getPropertyNames, getPropertyValue, hasProperties, setProperties
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
containsPropertyName, getProperties, getPropertyNames, getPropertyValue, hasProperties
protected String name
public DeleteRequestImpl(String id)
String
id to be deleted.id
- - the id to be used for the delete operationpublic DeleteRequestImpl(String[] ids)
String
id to be deleted.id1
- - the id to be used for the delete operationpublic DeleteRequestImpl(String[] ids, Map<String,Serializable> properties)
String
ids and a
Map
of propertiesids
- - String
list of idsproperties
- - the properties associated with the operationpublic DeleteRequestImpl(URI uri)
URI
uri
- - the URI
to be used for the delete operationpublic DeleteRequestImpl(URI[] uris)
URI
arrayuris
- - the list of URI
to be used for the delete operationpublic DeleteRequestImpl(URI[] uris, Map<String,Serializable> properties)
uris
- - the list of URI
to be deletedproperties
- - the properties associated with the delete operationpublic DeleteRequestImpl(List<Serializable> values, String attributeName, Map<String,Serializable> properties)
List
of Serializable
values. This
allows for custom delete operations aside from String id or URI.values
- - the values to be used in the delete operationattributeName
- - the attribute name associated with the valuesproperties
- the propertiespublic DeleteRequestImpl(List<Serializable> values, String attributeName, Map<String,Serializable> properties, Set<String> destinations)
public Set<String> getStoreIds()
Request
getStoreIds
in interface Request
public String getAttributeName()
DeleteRequest
CatalogProvider
implementer what type
of attribute values are in the (DeleteRequest.getAttributeValues()
) List
. For instance, if
the attribute name was "id," then the CatalogProvider
implementer
would know that the attribute values in the list were id values (such as 575aa9625fa24b338bd3c439f2613709
).getAttributeName
in interface DeleteRequest
Attribute
that has an AttributeType.AttributeFormat
of AttributeType.AttributeFormat.STRING
public List<Serializable> getAttributeValues()
DeleteRequest
Metacard
s to delete.getAttributeValues
in interface DeleteRequest
This work is licensed under a Creative Commons Attribution 4.0 International License.