Class DeleteProductRelationshipEntitiesHandler
java.lang.Object
com.broadleafcommerce.catalog.messaging.DeleteProductRelationshipEntitiesHandler
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.PersistenceHandler
@Deprecated(since="2.1.0",
forRemoval=true)
@DataRouteByExample(Product.class)
public class DeleteProductRelationshipEntitiesHandler
extends Object
implements com.broadleafcommerce.common.messaging.PersistenceHandler
Deprecated, for removal: This API element is subject to removal in a future version.
Deletes the product relationship entities when a
Product is deleted in production, by
default this includes:
CategoryProductVariantProductTagPromotionalProductProductAssetTranslation
- Author:
- Sunny Yu
-
Constructor Summary
ConstructorsConstructorDescriptionDeleteProductRelationshipEntitiesHandler(CategoryProductService<CategoryProduct> categoryProductService, VariantService<Variant> variantService, ProductTagService<ProductTag> productTagService, PromotionalProductService<PromotionalProduct> promotionalProductService, ProductAssetService<ProductAsset> productAssetService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationService, com.broadleafcommerce.data.tracking.core.web.ContextRequestConverter contextRequestConverter, com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager typeManager, ProductRepository<JpaProduct> productRepository, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.data.tracking.core.context.ContextInfobuildMatchingContextInfo(@NonNull com.fasterxml.jackson.databind.JsonNode entityJson) Deprecated, for removal: This API element is subject to removal in a future version.protected com.broadleafcommerce.data.tracking.core.context.ContextRequestbuildMatchingContextRequest(@NonNull com.fasterxml.jackson.databind.JsonNode entityJson) Deprecated, for removal: This API element is subject to removal in a future version.protected CategoryProductService<CategoryProduct>Deprecated, for removal: This API element is subject to removal in a future version.protected com.broadleafcommerce.data.tracking.core.web.ContextRequestConverterDeprecated, for removal: This API element is subject to removal in a future version.com.fasterxml.jackson.databind.ObjectMapperDeprecated, for removal: This API element is subject to removal in a future version.protected ProductAssetService<ProductAsset>Deprecated, for removal: This API element is subject to removal in a future version.protected StringDeprecated, for removal: This API element is subject to removal in a future version.protected ProductRepository<JpaProduct>Deprecated, for removal: This API element is subject to removal in a future version.protected ProductTagService<ProductTag>Deprecated, for removal: This API element is subject to removal in a future version.protected PromotionalProductService<PromotionalProduct>Deprecated, for removal: This API element is subject to removal in a future version.String[]Deprecated, for removal: This API element is subject to removal in a future version.protected com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation>Deprecated, for removal: This API element is subject to removal in a future version.protected com.broadleafcommerce.common.extension.TypeFactoryDeprecated, for removal: This API element is subject to removal in a future version.protected com.broadleafcommerce.common.jpa.RepositoryEntityTypeManagerDeprecated, for removal: This API element is subject to removal in a future version.protected VariantService<Variant>Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.protected booleanisDelete(com.fasterxml.jackson.databind.JsonNode tracking) Deprecated, for removal: This API element is subject to removal in a future version.voidprocessStateChange(com.fasterxml.jackson.databind.JsonNode entityJson) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.common.messaging.PersistenceHandler
handle, isValidType, validate
-
Constructor Details
-
DeleteProductRelationshipEntitiesHandler
public DeleteProductRelationshipEntitiesHandler(CategoryProductService<CategoryProduct> categoryProductService, VariantService<Variant> variantService, ProductTagService<ProductTag> productTagService, PromotionalProductService<PromotionalProduct> promotionalProductService, ProductAssetService<ProductAsset> productAssetService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationService, com.broadleafcommerce.data.tracking.core.web.ContextRequestConverter contextRequestConverter, com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager typeManager, ProductRepository<JpaProduct> productRepository, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
hook
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
hookin interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
processStateChange
@SuppressNotification("SINGLE_INDEX_REQUEST") public void processStateChange(com.fasterxml.jackson.databind.JsonNode entityJson) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
processStateChangein interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
getSupportedSimpleTypeNames
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getSupportedSimpleTypeNamesin interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
isDelete
protected boolean isDelete(com.fasterxml.jackson.databind.JsonNode tracking) Deprecated, for removal: This API element is subject to removal in a future version. -
buildMatchingContextInfo
protected com.broadleafcommerce.data.tracking.core.context.ContextInfo buildMatchingContextInfo(@NonNull @NonNull com.fasterxml.jackson.databind.JsonNode entityJson) throws com.fasterxml.jackson.core.JsonProcessingException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
buildMatchingContextRequest
protected com.broadleafcommerce.data.tracking.core.context.ContextRequest buildMatchingContextRequest(@NonNull @NonNull com.fasterxml.jackson.databind.JsonNode entityJson) Deprecated, for removal: This API element is subject to removal in a future version. -
getProductEntityType
Deprecated, for removal: This API element is subject to removal in a future version. -
getCategoryProductService
Deprecated, for removal: This API element is subject to removal in a future version. -
getVariantService
Deprecated, for removal: This API element is subject to removal in a future version. -
getProductTagService
Deprecated, for removal: This API element is subject to removal in a future version. -
getPromotionalProductService
Deprecated, for removal: This API element is subject to removal in a future version. -
getProductAssetService
Deprecated, for removal: This API element is subject to removal in a future version. -
getTranslationService
protected com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> getTranslationService()Deprecated, for removal: This API element is subject to removal in a future version. -
getContextRequestConverter
@NonNull protected com.broadleafcommerce.data.tracking.core.web.ContextRequestConverter getContextRequestConverter()Deprecated, for removal: This API element is subject to removal in a future version. -
getTypeManager
protected com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager getTypeManager()Deprecated, for removal: This API element is subject to removal in a future version. -
getProductRepository
Deprecated, for removal: This API element is subject to removal in a future version. -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()Deprecated, for removal: This API element is subject to removal in a future version. -
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getObjectMapperin interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
CatalogEntityDeletedEventListener