Class AbstractProductCustomPersistenceHandlerExtensionHandler
java.lang.Object
org.broadleafcommerce.common.extension.AbstractExtensionHandler
org.broadleafcommerce.admin.server.service.extension.AbstractProductCustomPersistenceHandlerExtensionHandler
- All Implemented Interfaces:
ProductCustomPersistenceHandlerExtensionHandler,org.broadleafcommerce.common.extension.ExtensionHandler
public abstract class AbstractProductCustomPersistenceHandlerExtensionHandler
extends org.broadleafcommerce.common.extension.AbstractExtensionHandler
implements ProductCustomPersistenceHandlerExtensionHandler
Abstract Extension handler for
ProductCustomPersistenceHandlerExtensionHandler- Author:
- Jon Fleschler (jfleschler
-
Field Summary
Fields inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
enabled, priority -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.common.extension.ExtensionResultStatusTypeCleanup any special state started byProductCustomPersistenceHandlerExtensionHandler.initiateFetchState()org.broadleafcommerce.common.extension.ExtensionResultStatusTypeSetup any special state to influence the fetch resultsorg.broadleafcommerce.common.extension.ExtensionResultStatusTypemanageAdditionalFilterMappings(org.broadleafcommerce.openadmin.dto.CriteriaTransferObject cto) Perform any special filtering for the fetchorg.broadleafcommerce.common.extension.ExtensionResultStatusTypemanageFields(org.broadleafcommerce.openadmin.dto.PersistencePackage persistencePackage, org.broadleafcommerce.core.catalog.domain.Product product) Perform any special handling for field on the productorg.broadleafcommerce.common.extension.ExtensionResultStatusTypemanageInspect(Map<String, org.broadleafcommerce.openadmin.dto.FieldMetadata> metadata) Perform any special metadata handling for the inspectorg.broadleafcommerce.common.extension.ExtensionResultStatusTypemanageParentCategoryForAdd(org.broadleafcommerce.openadmin.dto.PersistencePackage persistencePackage, org.broadleafcommerce.core.catalog.domain.Product product) Perform any special handling for the parent category of a product during a product addorg.broadleafcommerce.common.extension.ExtensionResultStatusTypemanageParentCategoryForUpdate(org.broadleafcommerce.openadmin.dto.PersistencePackage persistencePackage, org.broadleafcommerce.core.catalog.domain.Product product) Perform any special handling for the parent category of a product during a product updateorg.broadleafcommerce.common.extension.ExtensionResultStatusTypemanageRemove(org.broadleafcommerce.openadmin.dto.PersistencePackage persistencePackage, org.broadleafcommerce.core.catalog.domain.Product product) Perform any special handling for the removeMethods inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
getPriority, isEnabled, setEnabled, setPriorityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler
getPriority, isEnabled
-
Constructor Details
-
AbstractProductCustomPersistenceHandlerExtensionHandler
public AbstractProductCustomPersistenceHandlerExtensionHandler()
-
-
Method Details
-
manageParentCategoryForAdd
public org.broadleafcommerce.common.extension.ExtensionResultStatusType manageParentCategoryForAdd(org.broadleafcommerce.openadmin.dto.PersistencePackage persistencePackage, org.broadleafcommerce.core.catalog.domain.Product product) throws org.broadleafcommerce.common.exception.ServiceException Description copied from interface:ProductCustomPersistenceHandlerExtensionHandlerPerform any special handling for the parent category of a product during a product add- Specified by:
manageParentCategoryForAddin interfaceProductCustomPersistenceHandlerExtensionHandler- Returns:
- Throws:
org.broadleafcommerce.common.exception.ServiceException
-
manageParentCategoryForUpdate
public org.broadleafcommerce.common.extension.ExtensionResultStatusType manageParentCategoryForUpdate(org.broadleafcommerce.openadmin.dto.PersistencePackage persistencePackage, org.broadleafcommerce.core.catalog.domain.Product product) throws org.broadleafcommerce.common.exception.ServiceException Description copied from interface:ProductCustomPersistenceHandlerExtensionHandlerPerform any special handling for the parent category of a product during a product update- Specified by:
manageParentCategoryForUpdatein interfaceProductCustomPersistenceHandlerExtensionHandler- Returns:
- Throws:
org.broadleafcommerce.common.exception.ServiceException
-
manageRemove
public org.broadleafcommerce.common.extension.ExtensionResultStatusType manageRemove(org.broadleafcommerce.openadmin.dto.PersistencePackage persistencePackage, org.broadleafcommerce.core.catalog.domain.Product product) throws org.broadleafcommerce.common.exception.ServiceException Description copied from interface:ProductCustomPersistenceHandlerExtensionHandlerPerform any special handling for the remove- Specified by:
manageRemovein interfaceProductCustomPersistenceHandlerExtensionHandler- Returns:
- Throws:
org.broadleafcommerce.common.exception.ServiceException
-
manageInspect
public org.broadleafcommerce.common.extension.ExtensionResultStatusType manageInspect(Map<String, org.broadleafcommerce.openadmin.dto.FieldMetadata> metadata) throws org.broadleafcommerce.common.exception.ServiceExceptionDescription copied from interface:ProductCustomPersistenceHandlerExtensionHandlerPerform any special metadata handling for the inspect- Specified by:
manageInspectin interfaceProductCustomPersistenceHandlerExtensionHandler- Returns:
- Throws:
org.broadleafcommerce.common.exception.ServiceException
-
manageFields
public org.broadleafcommerce.common.extension.ExtensionResultStatusType manageFields(org.broadleafcommerce.openadmin.dto.PersistencePackage persistencePackage, org.broadleafcommerce.core.catalog.domain.Product product) throws org.broadleafcommerce.common.exception.ServiceException Description copied from interface:ProductCustomPersistenceHandlerExtensionHandlerPerform any special handling for field on the product- Specified by:
manageFieldsin interfaceProductCustomPersistenceHandlerExtensionHandler- Returns:
- Throws:
org.broadleafcommerce.common.exception.ServiceException
-
initiateFetchState
public org.broadleafcommerce.common.extension.ExtensionResultStatusType initiateFetchState() throws org.broadleafcommerce.common.exception.ServiceExceptionDescription copied from interface:ProductCustomPersistenceHandlerExtensionHandlerSetup any special state to influence the fetch results- Specified by:
initiateFetchStatein interfaceProductCustomPersistenceHandlerExtensionHandler- Returns:
- Throws:
org.broadleafcommerce.common.exception.ServiceException
-
endFetchState
public org.broadleafcommerce.common.extension.ExtensionResultStatusType endFetchState() throws org.broadleafcommerce.common.exception.ServiceExceptionDescription copied from interface:ProductCustomPersistenceHandlerExtensionHandlerCleanup any special state started byProductCustomPersistenceHandlerExtensionHandler.initiateFetchState()- Specified by:
endFetchStatein interfaceProductCustomPersistenceHandlerExtensionHandler- Returns:
- Throws:
org.broadleafcommerce.common.exception.ServiceException
-
manageAdditionalFilterMappings
public org.broadleafcommerce.common.extension.ExtensionResultStatusType manageAdditionalFilterMappings(org.broadleafcommerce.openadmin.dto.CriteriaTransferObject cto) throws org.broadleafcommerce.common.exception.ServiceException Description copied from interface:ProductCustomPersistenceHandlerExtensionHandlerPerform any special filtering for the fetch- Specified by:
manageAdditionalFilterMappingsin interfaceProductCustomPersistenceHandlerExtensionHandler- Returns:
- Throws:
org.broadleafcommerce.common.exception.ServiceException
-