public final class PageTemplateHome extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
checkStylePageTemplateIsUsed(int nPageTemplateId)
Checks if a page template is used by a page
|
static PageTemplate |
create(PageTemplate pageTemplate)
Creation of an instance of a page template
|
static PageTemplate |
findByPrimaryKey(int nKey)
Returns an instance of an page template whose identifier is specified in parameter
|
static List<PageTemplate> |
getPageTemplatesList()
Return the list of all the page templates
|
static void |
remove(int nId)
Remove the page template whose identifier is specified in parameter
|
static PageTemplate |
update(PageTemplate pageTemplate)
Update of the page template which is specified
|
public static PageTemplate create(PageTemplate pageTemplate)
pageTemplate
- template An instance of a page template which contains the informations to storepublic static PageTemplate update(PageTemplate pageTemplate)
pageTemplate
- The instance of the page template which contains the data to storepublic static void remove(int nId)
nId
- The identifier of the page template to removepublic static PageTemplate findByPrimaryKey(int nKey)
nKey
- The page template primary keypublic static List<PageTemplate> getPageTemplatesList()
public static boolean checkStylePageTemplateIsUsed(int nPageTemplateId)
nPageTemplateId
- The identifier of the page TemplateCopyright © 2020 City of Paris. All rights reserved.