@Component(value="publishableContentModel") @Scope(value="prototype") public class PublishableMarkupContentModel<C extends AbstractContent<CA,CF>,CA extends AbstractContentAttribute,CF extends AbstractContentFacet> extends MarkupContentModel<C,CA,CF>
ContentType.MARKUP or ContentType.MARKUP_SCRIPT
FacetMeta definition in a Template. FacetMeta's can support arrays also, which means the core model is a List of String.
In cases where there is just 1 element the model will contain 1 DEFAULT String (null index position) or many.
Either way the first position is reserved for default (null index) AbstractContentFacet.getValue(), and then the indexed positions start; if it is an array.
The array is guaranteed to be in order of its index position which can be any positive, 0 or negative number even.ContentSource.getFacetArray(Long, String, java.util.Collection),
ContentSource.getFacetArrayIndeces(Long, String),
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIB_ACCESS_USER_CONTEXT_DATA
When
FacetMeta.getType() is ContentType.SERVER_SCRIPT, user session data maybe needed in the dynamic content being rendered. |
applicationContext, contentExtractor, contentFilter, contentService, facetContentCache, facetMeta, locationResolvercontentDescriber, context| Constructor and Description |
|---|
PublishableMarkupContentModel(C contentDescriber,
FacetMeta facetMeta,
ContentContext<C,CA,CF> context,
Map<String,List<String>> facetContentCache,
GenericContentService<C,CA,CF> contentService) |
| Modifier and Type | Method and Description |
|---|---|
protected CF |
getContentFacetInstance() |
protected List<String> |
load() |
fetchFreshFacetContent, getContentService, getFacet, setFacetgetContentDescriber, getContextpublic static final String ATTRIB_ACCESS_USER_CONTEXT_DATA
FacetMeta.getType() is ContentType.SERVER_SCRIPT, user session data maybe needed in the dynamic content being rendered.
FacetMeta instance as a boolean attribute, using this constant.
FacetMeta.getType() is ContentType.SERVER_SCRIPT,
technically this involves the use of a ThreadLocal to pass the context to the FacetMeta.getDisplayTransformer().VelocityContentTransformer,
Constant Field Valuesprotected CF getContentFacetInstance()
protected List<String> load()
load in class MarkupContentModel<C extends AbstractContent<CA,CF>,CA extends AbstractContentAttribute,CF extends AbstractContentFacet>Copyright © 2018. All rights reserved.