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 voidCreation 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 statusgetHtmlPagesListByIds(List<Integer> listIds, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the avant objects and returns them as a listgetIdHtmlPagesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the html page objects and returns them as a liststatic voidRemove the Htmlpage whose identifier is specified in parameterstatic voidUpdate of the htmlpage which is specified in parameter
-
Method Details
-
create
Creation of an instance of htmlpage- Parameters:
htmlpage- The instance of the htmlpage which contains the informations to storeplugin- The Plugin object
-
update
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
-
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
-
getHtmlPagesListByIds
public static List<HtmlPage> getHtmlPagesListByIds(List<Integer> listIds, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the avant objects and returns them as a list- Parameters:
listIds- liste of ids- Returns:
- the list which contains the data of all the avant objects
-
getIdHtmlPagesList
Load the id of all the html page objects and returns them as a list- Returns:
- the list which contains the id of all the html page objects
-