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, priority
Fields 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 theExtensionResultHolder
will hold the associatedFieldDefinition
for the givenPage
and 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, setPriority
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:PageServiceExtensionHandler
If this method returns something other thanExtensionResultStatusType.NOT_HANDLED
, the result variable in theExtensionResultHolder
will hold the associatedFieldDefinition
for the givenPage
and field key.- Specified by:
getFieldDefinition
in interfacePageServiceExtensionHandler
- Returns:
-
overridePageDto
public ExtensionResultStatusType overridePageDto(ExtensionResultHolder<PageDTO> erh, PageDTO pageDto, Page page) Description copied from interface:PageServiceExtensionHandler
This method provides the opportunity to modify the page fields associated with the pageDtoExtensionResultHolder
. Modifying classes should clone the DTO and adjust fields.- Specified by:
overridePageDto
in interfacePageServiceExtensionHandler
- Returns:
-