Class DefaultItemDeletionService
java.lang.Object
de.hybris.platform.inboundservices.persistence.impl.DefaultItemDeletionService
- All Implemented Interfaces:
ItemDeletionService
Default implementation for
ItemDeletionService-
Constructor Summary
ConstructorsConstructorDescriptionDefaultItemDeletionService(@NotNull ModelService service, @NotNull ItemSearchService search) Instantiates this service with required dependencies -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteItem(ItemSearchRequest searchRequest) Deletes the item matching the conditions of the specified requestvoidsetDeleteItemValidators(List<ItemSearchRequestValidator> validators) Sets validators to be used for validating the search request indeleteItem(ItemSearchRequest)invocation.
-
Constructor Details
-
DefaultItemDeletionService
public DefaultItemDeletionService(@NotNull @NotNull ModelService service, @NotNull @NotNull ItemSearchService search) Instantiates this service with required dependencies- Parameters:
service- a model service to use for deleting the itemsearch- a search service to use for searching the item to be deleted.
-
-
Method Details
-
deleteItem
Deletes the item matching the conditions of the specified request- Specified by:
deleteItemin interfaceItemDeletionService- Parameters:
searchRequest- Parameter object that holds values for searching the item to be deleted.- Throws:
ItemNotFoundException- when an item is not found
-
setDeleteItemValidators
Sets validators to be used for validating the search request indeleteItem(ItemSearchRequest)invocation.- Parameters:
validators- validators to be called sequentially before searching for the item to be deleted.
-