fr.paris.lutece.plugins.pluginwizard.business.model
Interface IPortletDAO

All Known Implementing Classes:
PortletDAO

public interface IPortletDAO

IPluginPortletDAO Interface


Method Summary
 void delete(int nIdPluginPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void deleteByPlugin(int nIdPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete portlets from a given plugin
 void insert(Portlet pluginPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Portlet load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 Collection<Portlet> selectPluginPortletsList(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          A collection of portlets related to the generated plugin
 Collection<Portlet> selectPluginPortletsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the pluginPortlet objects and returns them as a collection
 void store(Portlet pluginPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

insert

void insert(Portlet pluginPortlet,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
pluginPortlet - instance of the PluginPortlet object to inssert
plugin - the Plugin

store

void store(Portlet pluginPortlet,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
pluginPortlet - the reference of the PluginPortlet
plugin - the Plugin

delete

void delete(int nIdPluginPortlet,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nIdPluginPortlet - int identifier of the PluginPortlet to delete
plugin - the Plugin

load

Portlet load(int nKey,
             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table

Parameters:
nKey - The identifier of the pluginPortlet
plugin - the Plugin
Returns:
The instance of the pluginPortlet

selectPluginPortletsList

Collection<Portlet> selectPluginPortletsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the pluginPortlet objects and returns them as a collection

Parameters:
plugin - the Plugin
Returns:
The collection which contains the data of all the pluginPortlet objects

selectPluginPortletsList

Collection<Portlet> selectPluginPortletsList(int nKey,
                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
A collection of portlets related to the generated plugin

Parameters:
nKey - The identifier of the plugin
plugin - The plugin
Returns:
A list of portlets for the generated plugin

deleteByPlugin

void deleteByPlugin(int nIdPlugin,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete portlets from a given plugin

Parameters:
nIdPortlet - The identifier of the plugin
plugin - The plugin


Copyright © 2013 Mairie de Paris. All Rights Reserved.