public interface ContentProcessorExtensionHandler extends ExtensionHandler
ContentProcessor| Modifier and Type | Method and Description |
|---|---|
ExtensionResultStatusType |
addAdditionalFieldsToModel(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element)
This method will add any additional attributes to the model that the extension needs
|
ExtensionResultStatusType |
addExtensionFieldDeepLink(List<DeepLink> links,
org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element)
Provides a hook point for an extension of content processor to optionally add in deep links
for a content item based on its extension fields
|
ExtensionResultStatusType |
lookupContentByElementAttribute(List<StructuredContentDTO> contentItems,
SandBox sandBox,
Locale locale,
Integer count,
Map<String,Object> ruleDTOs,
boolean secure,
org.thymeleaf.dom.Element element)
This method returns content given a specific element attribute
Returns active content items for the passed in sandbox that match the passed in type. |
ExtensionResultStatusType |
postProcessDeepLinks(List<DeepLink> links)
Provides a hook point to allow extension handlers to modify the generated deep links.
|
ExtensionResultStatusType |
shouldHandleContentLookup(org.thymeleaf.dom.Element element)
This method returns whether or not this implementation should handle the content lookup
This is determined by the element attribute values that are passed in.
|
getPriority, isEnabledExtensionResultStatusType shouldHandleContentLookup(org.thymeleaf.dom.Element element)
element - - the Thymeleaf Processor elementExtensionResultStatusType lookupContentByElementAttribute(List<StructuredContentDTO> contentItems, SandBox sandBox, Locale locale, Integer count, Map<String,Object> ruleDTOs, boolean secure, org.thymeleaf.dom.Element element)
SandBoxType of
production is passed in, only those items in that SandBox are returned.
contentItems - - the list of DTOs to add tosandBox - - the sandbox to find structured content items (null indicates items that are in production for
sites that are single tenant.locale - - the localecount - - the max number of content items to returnruleDTOs - - a Map of objects that will be used in MVEL processing.secure - - set to true if the request is being served over httpselement - - the Thymeleaf Processor elementContentProcessorExtensionResultStatusType addAdditionalFieldsToModel(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element)
arguments - - the Thymeleaf Processor argumentselement - - the Thymeleaf Processor elementExtensionResultStatusType addExtensionFieldDeepLink(List<DeepLink> links, org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element)
links - arguments - element - ExtensionResultStatusType postProcessDeepLinks(List<DeepLink> links)
links - Copyright © 2014. All Rights Reserved.