Interface TemplateServiceLocal


public interface TemplateServiceLocal
Local interface for managing templates.

This interface defines methods for creating queries and retrieving templates. It provides a contract for interacting with template entities.

See Also:
  • Method Details

    • createTemplateQuery

      TemplateQuery createTemplateQuery()
      Creates a new TemplateQuery for querying templates.
      Returns:
      a new TemplateQuery instance
    • getTemplateById

      Optional<Template> getTemplateById(TemplateId templateId)
      Retrieves a Template by its unique identifier.
      Parameters:
      templateId - the identifier of the template to retrieve
      Returns:
      an Optional containing the Template if found, or an empty Optional if not
    • getTemplatesForPublicationId

      List<Template> getTemplatesForPublicationId(PublicationId publicationId)
      Retrieves a list of Template objects associated with a specific publication.
      Parameters:
      publicationId - the identifier of the publication for which to retrieve the templates
      Returns:
      a List of Template objects associated with the specified publication, or an empty List if no page templates are found