Class DefaultItemDeletionService

java.lang.Object
de.hybris.platform.inboundservices.persistence.impl.DefaultItemDeletionService
All Implemented Interfaces:
ItemDeletionService

public class DefaultItemDeletionService extends Object implements ItemDeletionService
Default implementation for ItemDeletionService
  • 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 item
      search - a search service to use for searching the item to be deleted.
  • Method Details

    • deleteItem

      public void deleteItem(ItemSearchRequest searchRequest)
      Deletes the item matching the conditions of the specified request
      Specified by:
      deleteItem in interface ItemDeletionService
      Parameters:
      searchRequest - Parameter object that holds values for searching the item to be deleted.
      Throws:
      ItemNotFoundException - when an item is not found
    • setDeleteItemValidators

      public void setDeleteItemValidators(List<ItemSearchRequestValidator> validators)
      Sets validators to be used for validating the search request in deleteItem(ItemSearchRequest) invocation.
      Parameters:
      validators - validators to be called sequentially before searching for the item to be deleted.