Class AbstractPageServiceExtensionHandler
java.lang.Object
org.broadleafcommerce.common.extension.AbstractExtensionHandler
org.broadleafcommerce.cms.page.service.AbstractPageServiceExtensionHandler
- All Implemented Interfaces:
PageServiceExtensionHandler,ExtensionHandler
public abstract class AbstractPageServiceExtensionHandler
extends AbstractExtensionHandler
implements PageServiceExtensionHandler
- Author:
- Andre Azzolini (apazzolini)
-
Field Summary
Fields inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
enabled, priorityFields inherited from interface org.broadleafcommerce.cms.page.service.PageServiceExtensionHandler
IS_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFieldDefinition(ExtensionResultHolder<FieldDefinition> erh, Page page, String fieldKey) If this method returns something other thanExtensionResultStatusType.NOT_HANDLED, the result variable in theExtensionResultHolderwill hold the associatedFieldDefinitionfor the givenPageand field key.overridePageDto(ExtensionResultHolder<PageDTO> erh, PageDTO pageDto, Page page) This method provides the opportunity to modify the page fields associated with the pageDtoExtensionResultHolder.Methods 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
-
AbstractPageServiceExtensionHandler
public AbstractPageServiceExtensionHandler()
-
-
Method Details
-
getFieldDefinition
public ExtensionResultStatusType getFieldDefinition(ExtensionResultHolder<FieldDefinition> erh, Page page, String fieldKey) Description copied from interface:PageServiceExtensionHandlerIf this method returns something other thanExtensionResultStatusType.NOT_HANDLED, the result variable in theExtensionResultHolderwill hold the associatedFieldDefinitionfor the givenPageand field key.- Specified by:
getFieldDefinitionin interfacePageServiceExtensionHandler- Returns:
-
overridePageDto
public ExtensionResultStatusType overridePageDto(ExtensionResultHolder<PageDTO> erh, PageDTO pageDto, Page page) Description copied from interface:PageServiceExtensionHandlerThis method provides the opportunity to modify the page fields associated with the pageDtoExtensionResultHolder. Modifying classes should clone the DTO and adjust fields.- Specified by:
overridePageDtoin interfacePageServiceExtensionHandler- Returns:
-