public class SingleContentPerFacetPublishAdapter extends AbstractPublishAdapter<Content>
ContentFacet of ContentDescriber that is of type ContentType.HTML or ContentType.MARKUP or ContentType.TEXT
and publish a separate file for it.
#publishActions(Template, ContentDescriber)| Modifier and Type | Field and Description |
|---|---|
static String |
SINGLE_CONTENT_VELOCITY_TEMPLATE_LOCATION
Path set to configuration in velocity.xml - resourceLoaderPath; where default class path is set from where it will look for resources
|
contentFilter| Constructor and Description |
|---|
SingleContentPerFacetPublishAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Publisher |
getPublisher() |
String |
getVmTemplatePath() |
void |
publishActions(Template template,
Content content)
Public the given
ContentDescriber in the context of the provided Template
By default the following ContentType are processed:
ContentType.MARKUP
ContentType.HTML
ContentType.SAFE_HTML
ContentType.MARKUP_SCRIPT
ContentType.TEXT
ContentType.XML
... |
void |
setPublisher(Publisher publisher) |
void |
setVmTemplatePath(String vmTemplatePath) |
filterContentAndApplyDefault, getContentFilter, setContentFilterpublic static final String SINGLE_CONTENT_VELOCITY_TEMPLATE_LOCATION
public void publishActions(Template template, Content content) throws Exception
ContentDescriber in the context of the provided Template
ContentType are processed:
ContentType.MARKUPContentType.HTMLContentType.SAFE_HTMLContentType.MARKUP_SCRIPTContentType.TEXTContentType.XMLContentType.getName() starts with MARK, TEXT, SCRIPT, XML.AbstractContent.getFacets(); if the ContentFacet is an array then the action is performed on all indeces indiivdually seperately.public Publisher getPublisher()
public void setPublisher(Publisher publisher)
public String getVmTemplatePath()
public void setVmTemplatePath(String vmTemplatePath)
Copyright © 2018. All rights reserved.