Class HtmlPageHome
- java.lang.Object
-
- fr.paris.lutece.plugins.htmlpage.business.HtmlPageHome
-
public class HtmlPageHome extends Object
This class provides instances management methods (create, find, ...) for Htmlpage objects- Author:
- lenaini
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HtmlPagecreate(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)Creation of an instance of htmlpagestatic Collection<HtmlPage>findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns a collection of htmlpages objectsstatic HtmlPagefindByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns an instance of a htmlpage whose identifier is specified in parameterstatic HtmlPagefindEnabledHtmlPage(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns htmlpage object with valid statusstatic Collection<HtmlPage>findEnabledHtmlPageList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns a collection of htmlpages objects with valid statusstatic voidremove(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove the Htmlpage whose identifier is specified in parameterstatic HtmlPageupdate(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update of the htmlpage which is specified in parameter
-
-
-
Method Detail
-
create
public static HtmlPage create(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of htmlpage- Parameters:
htmlpage- The instance of the htmlpage which contains the informations to storeplugin- The Plugin object- Returns:
- The instance of htmlpage which has been created with its primary key.
-
update
public static HtmlPage update(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the htmlpage which is specified in parameter- Parameters:
htmlpage- The instance of the htmlpage which contains the data to storeplugin- The Plugin object- Returns:
- The instance of the htmlpage which has been updated
-
remove
public static void remove(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the Htmlpage whose identifier is specified in parameter- Parameters:
htmlpage- The Htmlpage object to removeplugin- The Plugin object
-
findByPrimaryKey
public static HtmlPage findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a htmlpage whose identifier is specified in parameter- Parameters:
nKey- The Primary key of the htmlpageplugin- The Plugin object- Returns:
- An instance of htmlpage
-
findAll
public static Collection<HtmlPage> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of htmlpages objects- Parameters:
plugin- The Plugin object- Returns:
- A collection of htmlpages
-
findEnabledHtmlPage
public static HtmlPage findEnabledHtmlPage(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns htmlpage object with valid status- Parameters:
nKey- the page idplugin- The Plugin object- Returns:
- A htmlpage
-
findEnabledHtmlPageList
public static Collection<HtmlPage> findEnabledHtmlPageList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of htmlpages objects with valid status- Parameters:
plugin- The Plugin object- Returns:
- A collection of htmlpages
-
-