Class NewsTemplatesService

java.lang.Object
sk.iway.iwcm.components.news.templates.NewsTemplatesService

@Service public class NewsTemplatesService extends Object
  • Constructor Details

  • Method Details

    • getTemplateByName

      public static NewsTemplatesEntity getTemplateByName(String name)
      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

      public static List<NewsTemplatesEntity> getTemplates()
      Fetches all templates from the database for current domain.
      Returns:
    • clearCache

      public static void clearCache()
      Clears the cache for news templates.