public interface TemplateService
Template
related queriesModifier and Type | Method and Description |
---|---|
Map<Template,List<PageIdentifier>> |
getPages(Collection<Template> templates,
Status status)
Get pages, categorized by the requested
Template s |
Template |
getTemplate(Query<Template> qry)
Get the Template based on a Query
|
Template |
getTemplateByName(String name)
Matches
Template.getName() to get the associated template |
Template |
getTemplateByRefId(String refId)
Use whatever reference identifier is used to refer to the template like name or bean-name (if templates defined in Spring configs) etc
Note, the Ref-id is not the same as Template.getId() or Template.getName() ; but can be different yet unique based
on the implementation scheme of creating templates and referring to them. |
String |
getTemplateNameIdForContent(String contentNameId,
Locale locale)
Helps identify which
Template is used for which Page/ContentDescriber . |
<T extends Template> |
getTemplates(Class... templateTypes)
Get all templates available to context.
|
<T extends Template> Collection<T> getTemplates(Class... templateTypes)
Template
by further class definitions that extend Template
Template
Map<Template,List<PageIdentifier>> getPages(Collection<Template> templates, Status status)
Template
stemplates
- as Collection of template
{@link
- Status} @nullable true (if null all Status will be picked, else pages with specified status will only be picked)Template
as key and List of PageIdentifier
as value for the map.Template getTemplateByName(String name)
Template.getName()
to get the associated templateTemplate getTemplateByRefId(String refId)
Template.getId()
or Template.getName()
; but can be different yet unique based
on the implementation scheme of creating templates and referring to them.
String getTemplateNameIdForContent(String contentNameId, Locale locale)
Template
is used for which Page/ContentDescriber
.
Template
NameId (Default is defined by Locale = ContentDescriber#DEFAULT_LOCALE
contentNameId
- as String @nullable falselocale
- as Locale
@nullable trueCopyright © 2018. All rights reserved.