Interface StructuredContentServiceExtensionHandler
- All Superinterfaces:
ExtensionHandler
- All Known Implementing Classes:
AbstractStructuredContentServiceExtensionHandler
Extension handler for the
StructuredContentService- Author:
- Phillip Verheyden (phillipuniverse)
-
Method Summary
Modifier and TypeMethodDescriptionmodifyStructuredContentDtoList(List<StructuredContentDTO> structuredContentList, ExtensionResultHolder resultHolder) Allows an extension handler to modify the list of structured content items.populateAdditionalStructuredContentFields(StructuredContent sc, StructuredContentDTO dto, boolean secure) Further modifies the fields when parsing aStructuredContentinto aStructuredContentDTO.Methods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler
getPriority, isEnabled
-
Method Details
-
populateAdditionalStructuredContentFields
ExtensionResultStatusType populateAdditionalStructuredContentFields(StructuredContent sc, StructuredContentDTO dto, boolean secure) Further modifies the fields when parsing aStructuredContentinto aStructuredContentDTO. This method will be invoked at the end ofStructuredContentServiceImpl.buildFieldValues(StructuredContent, StructuredContentDTO, boolean).Note that even though this method should return an
ExtensionResultStatusType, modifications should be made to theStructuredContentDTOby using information from theStructuredContent.- Parameters:
sc- theStructuredContentthat should further be wrapped into the dtodto- the DTO that has already been mostly populated by Broadleaf. At this stage, this parameter will have all of the properties from the defaultStructuredContentDTOalready parsedsecure- whether or not the request is secure- Returns:
- the result of executing this extension handler
-
modifyStructuredContentDtoList
ExtensionResultStatusType modifyStructuredContentDtoList(List<StructuredContentDTO> structuredContentList, ExtensionResultHolder resultHolder) Allows an extension handler to modify the list of structured content items. For example to alter the order of the passed in list.The
ExtensionResultHolderif non null should contain a replacement list to use.- Parameters:
structuredContentList-resultHolder-- Returns:
-