@Component(value="markupContentModel") @Scope(value="prototype") public class MarkupContentModel<C extends AbstractContent<CA,CF>,CA extends AbstractContentAttribute,CF extends AbstractContentFacet> extends ContentModel<List<String>,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 (nul 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 FormModifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected ContentExtractor<URI,String> |
contentExtractor |
protected ContentFilterService |
contentFilter |
protected GenericContentService<C,CA,CF> |
contentService |
protected Map<String,List<String>> |
facetContentCache
Map for facet name to facet(s) content. |
protected FacetMeta |
facetMeta |
protected ContentLocationResolver<PageIdentifier,URI> |
locationResolver |
contentDescriber, context
Constructor and Description |
---|
MarkupContentModel(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 List<String> |
fetchFreshFacetContent() |
protected GenericContentService<C,CA,CF> |
getContentService() |
FacetMeta |
getFacet() |
protected List<String> |
load() |
void |
setFacet(FacetMeta facet) |
getContentDescriber, getContext
@Autowired protected transient org.springframework.context.ApplicationContext applicationContext
@Autowired @Qualifier(value="DefaultLocationResolver") protected transient ContentLocationResolver<PageIdentifier,URI> locationResolver
@Autowired @Qualifier(value="resourceContentExtractor") protected transient ContentExtractor<URI,String> contentExtractor
@Autowired @Qualifier(value="defaultContentFilter") protected transient ContentFilterService contentFilter
protected transient GenericContentService<C extends AbstractContent<CA,CF>,CA extends AbstractContentAttribute,CF extends AbstractContentFacet> contentService
protected FacetMeta facetMeta
Copyright © 2018. All rights reserved.