Class HtmlPageHome
java.lang.Object
fr.paris.lutece.plugins.htmlpage.business.HtmlPageHome
This class provides instances management methods (create, find, ...) for Htmlpage objects
- Author:
- lenaini
-
Method Summary
Modifier and TypeMethodDescriptionstatic HtmlPageCreation 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 the Htmlpage whose identifier is specified in parameterstatic HtmlPageUpdate of the htmlpage which is specified in parameter
-
Method Details
-
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
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
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
-