Interface PageTemplatesServiceLocal
public interface PageTemplatesServiceLocal
Local interface for managing page templates.
This interface defines methods for creating queries, retrieving, creating, updating, and deleting page templates. It provides a contract for interacting with page template entities.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCreates a newPageTemplatesQueryfor querying page templates.getPageTemplateById(PageTemplateId pageTemplateId) Retrieves aPageTemplateby its unique identifier.getPageTemplatesForPublicationId(PublicationId publicationId) Retrieves a list ofPageTemplateobjects associated with a specific publication.
-
Method Details
-
createPageTemplatesQuery
PageTemplatesQuery createPageTemplatesQuery()Creates a newPageTemplatesQueryfor querying page templates.- Returns:
- a new
PageTemplatesQueryinstance
-
getPageTemplateById
Retrieves aPageTemplateby its unique identifier.- Parameters:
pageTemplateId- the identifier of the page template to retrieve- Returns:
- an
Optionalcontaining thePageTemplateif found, or an emptyOptionalif not
-
getPageTemplatesForPublicationId
Retrieves a list ofPageTemplateobjects associated with a specific publication.- Parameters:
publicationId- the identifier of the publication for which to retrieve the page templates- Returns:
- a
ListofPageTemplateobjects associated with the specified publication, or an emptyListif no page templates are found
-