@Component(value="defaultContentFilter") public class ContentFilterService extends Object
Templates.FacetMeta.ATTRIB_FILTER and finally applies FacetMeta.getDisplayTransformer() to return the polished content.| Constructor and Description |
|---|
ContentFilterService() |
| Modifier and Type | Method and Description |
|---|---|
String |
filterContent(String content,
FacetMeta facetMeta)
If any filter specified then apply filter; then apply it.
Filter content if a filter is specified in the FacetMeta.getAttributes() with at attribute FacetMeta.ATTRIB_FILTER |
String |
getDefaultContent(FacetMeta facetMeta)
Get a
FacetMeta.TemplateAttributes.DEFAULT_VALUE, if it exists for the FacetMeta this object is related to by
PublishableMarkupContentModel#facetMeta |
public String filterContent(String content, FacetMeta facetMeta)
FacetMeta.getAttributes() with at attribute FacetMeta.ATTRIB_FILTERcontent - as StringfacetMeta - as FacetMetapublic String getDefaultContent(FacetMeta facetMeta)
FacetMeta.TemplateAttributes.DEFAULT_VALUE, if it exists for the FacetMeta this object is related to by
PublishableMarkupContentModel#facetMetaCopyright © 2018. All rights reserved.