public class AbstractStructuredContentServiceExtensionHandler extends AbstractExtensionHandler implements StructuredContentServiceExtensionHandler
StructuredContentService
enabled, priority
Constructor and Description |
---|
AbstractStructuredContentServiceExtensionHandler() |
Modifier and Type | Method and Description |
---|---|
ExtensionResultStatusType |
modifyStructuredContentDtoList(List<StructuredContentDTO> structuredContentList,
ExtensionResultHolder resultHolder)
Allows an extension handler to modify the list of structured content items.
|
ExtensionResultStatusType |
populateAdditionalStructuredContentFields(StructuredContent sc,
StructuredContentDTO dto,
boolean secure)
Further modifies the fields when parsing a
StructuredContent into a StructuredContentDTO . |
getPriority, isEnabled, setEnabled, setPriority
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPriority, isEnabled
public AbstractStructuredContentServiceExtensionHandler()
public ExtensionResultStatusType populateAdditionalStructuredContentFields(StructuredContent sc, StructuredContentDTO dto, boolean secure)
StructuredContentServiceExtensionHandler
StructuredContent
into a StructuredContentDTO
. This method
will be invoked at the end of StructuredContentServiceImpl.buildFieldValues(StructuredContent, StructuredContentDTO, boolean)
.
Note that even though this method should return an ExtensionResultStatusType
, modifications should be made to
the StructuredContentDTO
by using information from the StructuredContent
.populateAdditionalStructuredContentFields
in interface StructuredContentServiceExtensionHandler
sc
- the StructuredContent
that 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 default StructuredContentDTO
already parsedsecure
- whether or not the request is secureStructuredContentServiceImpl#buildFieldValues(StructuredContent, StructuredContentDTO, boolean)}
,
StructuredContentServiceImpl#buildStructuredContentDTO(StructuredContent, boolean)}
public ExtensionResultStatusType modifyStructuredContentDtoList(List<StructuredContentDTO> structuredContentList, ExtensionResultHolder resultHolder)
StructuredContentServiceExtensionHandler
ExtensionResultHolder
if non null should contain a replacement list to use.modifyStructuredContentDtoList
in interface StructuredContentServiceExtensionHandler
Copyright © 2022. All rights reserved.