public class PostTemplateServiceImpl extends TemplateServiceImpl
TemplateService for Posts.contextemct, tCONTENT_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
Templates |
String |
getTemplateNameIdForContent(String contentNameId,
Locale locale)
This method was created for pages to derive which Template they belong to.
|
getTemplate, getTemplateByName, getTemplateByRefId, getTemplatesdelete, 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 TemplateServicegetTemplateNameIdForContent in class TemplateServiceImplcontentNameId - as String @nullable falselocale - as Locale @nullable truepublic Map<Template,List<PageIdentifier>> getPages(Collection<Template> templates, Status status)
TemplateServiceTemplatesgetPages in interface TemplateServicegetPages in class TemplateServiceImpltemplates - as Collection of templateTemplate as key and List of PageIdentifier as value for the map.Copyright © 2018. All rights reserved.