Class NewsTemplatesService
java.lang.Object
sk.iway.iwcm.components.news.templates.NewsTemplatesService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Clears the cache for news templates.static NewsTemplatesEntity
getTemplateByName
(String name) Fetches the template by name from the cache or database.static List<NewsTemplatesEntity>
Fetches all templates from the database for current domain.
-
Constructor Details
-
NewsTemplatesService
-
-
Method Details
-
getTemplateByName
Fetches the template by name from the cache or database. If the template is not found in the cache, it will be fetched from the database and cached.- Parameters:
name
-- Returns:
-
getTemplates
Fetches all templates from the database for current domain.- Returns:
-
clearCache
public static void clearCache()Clears the cache for news templates.
-