fr.paris.lutece.portal.business.style
Class PageTemplateHome

java.lang.Object
  extended by fr.paris.lutece.portal.business.style.PageTemplateHome

public final class PageTemplateHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for PageTemplate objects


Method Summary
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 java.util.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static PageTemplate create(PageTemplate pageTemplate)
Creation of an instance of a page template

Parameters:
pageTemplate - template An instance of a page template which contains the informations to store
Returns:
The instance of a page template which has been created with its primary key.

update

public static PageTemplate update(PageTemplate pageTemplate)
Update of the page template which is specified

Parameters:
pageTemplate - The instance of the page template which contains the data to store
Returns:
The instance of the page template which has been updated

remove

public static void remove(int nId)
Remove the page template whose identifier is specified in parameter

Parameters:
nId - The identifier of the page template to remove

findByPrimaryKey

public static PageTemplate findByPrimaryKey(int nKey)
Returns an instance of an page template whose identifier is specified in parameter

Parameters:
nKey - The page template primary key
Returns:
an instance of a page template

getPageTemplatesList

public static java.util.List<PageTemplate> getPageTemplatesList()
Return the list of all the page templates

Returns:
A collection of page templates objects

checkStylePageTemplateIsUsed

public static boolean checkStylePageTemplateIsUsed(int nPageTemplateId)
Checks if a page template is used by a page

Parameters:
nPageTemplateId - The identifier of the page Template
Returns:
true if a page template has been used by a page, false otherwise


Copyright © 2012 Mairie de Paris. All Rights Reserved.