fr.paris.lutece.plugins.pluginwizard.business.model
Class PluginPortletDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.pluginwizard.business.model.PluginPortletDAO
All Implemented Interfaces:
IPluginPortletDAO

public final class PluginPortletDAO
extends java.lang.Object
implements IPluginPortletDAO

This class provides Data Access methods for PluginPortlet objects


Constructor Summary
PluginPortletDAO()
           
 
Method Summary
 void delete(int nPluginPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void deleteDependency(int nIdPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete the dependency
 void insert(PluginPortlet pluginPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 void insertDependency(int nIdPlugin, int nIdPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Add the dependency
 PluginPortlet load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the pluginPortlet from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 java.util.Collection<PluginPortlet> selectPluginPortletsList(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a collection of portlets associated to the generated plugin
 java.util.Collection<PluginPortlet> selectPluginPortletsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the pluginPortlets and returns them as a collection
 void store(PluginPortlet pluginPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginPortletDAO

public PluginPortletDAO()
Method Detail

newPrimaryKey

public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Parameters:
plugin - The Plugin
Returns:
The new primary key

insert

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

Specified by:
insert in interface IPluginPortletDAO
Parameters:
pluginPortlet - instance of the PluginPortlet object to insert
plugin - The plugin

insertDependency

public void insertDependency(int nIdPlugin,
                             int nIdPortlet,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add the dependency

Parameters:
nIdPlugin - The id of the plugin
nIdPortlet - The id of the portlet
plugin - The plugin

load

public PluginPortlet load(int nId,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the pluginPortlet from the table

Specified by:
load in interface IPluginPortletDAO
Parameters:
nId - The identifier of the pluginPortlet
plugin - The plugin
Returns:
the instance of the PluginPortlet

delete

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

Specified by:
delete in interface IPluginPortletDAO
Parameters:
nPluginPortletId - The identifier of the pluginPortlet
plugin - The plugin

deleteDependency

public void deleteDependency(int nIdPortlet,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the dependency

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

store

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

Specified by:
store in interface IPluginPortletDAO
Parameters:
pluginPortlet - The reference of the pluginPortlet
plugin - The plugin

selectPluginPortletsList

public java.util.Collection<PluginPortlet> selectPluginPortletsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the pluginPortlets and returns them as a collection

Specified by:
selectPluginPortletsList in interface IPluginPortletDAO
Parameters:
plugin - The plugin
Returns:
The Collection which contains the data of all the pluginPortlets

selectPluginPortletsList

public java.util.Collection<PluginPortlet> selectPluginPortletsList(int nPluginId,
                                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of portlets associated to the generated plugin

Specified by:
selectPluginPortletsList in interface IPluginPortletDAO
Parameters:
nPluginId - The identifier of the generated plugin
plugin - The Plugin
Returns:
A collection of plugin portlets


Copyright © 2011 Mairie de Paris. All Rights Reserved.