public class PostTemplateServiceImpl extends TemplateServiceImpl
TemplateService
for Posts.context
em
ct, t
CONTENT_PUBLISH_CACHE_NAME, PRODUCT_LOOKUP_CACHE_NAME, PRODUCT_SEARCH_CACHE_NAME, TEMPLATEPAGE_MAPPING_CACHE_NAME
Constructor and Description |
---|
PostTemplateServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Map<Template,List<PageIdentifier>> |
getPages(Collection<Template> templates,
Status status)
Get pages, categorized by the requested
Template s |
String |
getTemplateNameIdForContent(String contentNameId,
Locale locale)
This method was created for pages to derive which Template they belong to.
|
getTemplate, getTemplateByName, getTemplateByRefId, getTemplates
delete, delete, getEntityManager, getNativeEntityName, load, load, paginate, query, query, save, setEntityManager, update
@Cacheable(key="#contentNameId + \'_\' + #locale.language + \'_\' + #locale.country + \'_\' + #locale.variant", value="templatePageMapping") public String getTemplateNameIdForContent(String contentNameId, Locale locale)
TemplateServiceImpl.getTemplate(Query)
where the query supplied has the class for the desired template.
getTemplateNameIdForContent
in interface TemplateService
getTemplateNameIdForContent
in class TemplateServiceImpl
contentNameId
- as String @nullable falselocale
- as Locale
@nullable truepublic Map<Template,List<PageIdentifier>> getPages(Collection<Template> templates, Status status)
TemplateService
Template
sgetPages
in interface TemplateService
getPages
in class TemplateServiceImpl
templates
- as Collection of template
Template
as key and List of PageIdentifier
as value for the map.Copyright © 2018. All rights reserved.