Class PageRenderServiceImpl
- java.lang.Object
-
- co.mastermindcms.framework.services.PageRenderServiceImpl
-
- All Implemented Interfaces:
PageRenderService
,java.io.Serializable
@Service public class PageRenderServiceImpl extends java.lang.Object implements PageRenderService
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private CommonProperties
commonProperties
private FrameworkOperationService
frameworkOperationService
protected TagProcessorService
tagProcessor
private TemplateLocatorService
templateLocatorService
-
Constructor Summary
Constructors Constructor Description PageRenderServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
renderElements(java.util.List<RequestElement> requestElements)
This method does render template.java.util.Map<java.lang.String,java.lang.Object>
renderTemplate(java.lang.String htmlTemplate)
This method does render template.java.lang.String
renderTemplateAsHtml(java.lang.String htmlTemplate)
This method does render template as html.
-
-
-
Field Detail
-
tagProcessor
@Autowired protected TagProcessorService tagProcessor
-
templateLocatorService
@Autowired private TemplateLocatorService templateLocatorService
-
frameworkOperationService
@Autowired private FrameworkOperationService frameworkOperationService
-
commonProperties
@Autowired private CommonProperties commonProperties
-
-
Method Detail
-
renderTemplate
public java.util.Map<java.lang.String,java.lang.Object> renderTemplate(java.lang.String htmlTemplate)
Description copied from interface:PageRenderService
This method does render template.- Specified by:
renderTemplate
in interfacePageRenderService
- Parameters:
htmlTemplate
- which will be rendered- Returns:
- data as map
-
renderElements
public java.util.Map<java.lang.String,java.lang.Object> renderElements(java.util.List<RequestElement> requestElements)
Description copied from interface:PageRenderService
This method does render template.- Specified by:
renderElements
in interfacePageRenderService
- Parameters:
requestElements
- which will be compiled and found elements for render- Returns:
- data as map
-
renderTemplateAsHtml
public java.lang.String renderTemplateAsHtml(java.lang.String htmlTemplate)
Description copied from interface:PageRenderService
This method does render template as html.- Specified by:
renderTemplateAsHtml
in interfacePageRenderService
- Parameters:
htmlTemplate
- which will be rendered- Returns:
- data as text
-
-