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

java.lang.Object
  extended by fr.paris.lutece.plugins.pluginwizard.business.model.PluginPortletHome

public final class PluginPortletHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for PluginPortlet objects


Method Summary
static PluginPortlet create(PluginPortlet pluginPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Create an instance of the pluginPortlet class
static java.util.Collection<PluginPortlet> findByPlugin(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a pluginPortlet whose identifier is specified in parameter
static PluginPortlet findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a pluginPortlet whose identifier is specified in parameter
static java.util.Collection<PluginPortlet> getPluginPortletsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the pluginPortlet objects and returns them in form of a collection
static void remove(int nPluginPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the pluginPortlet whose identifier is specified in parameter
static void removePluginPortlets(int nIdPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Removes all the portlets related to the plugin
static PluginPortlet update(PluginPortlet pluginPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the pluginPortlet which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

removePluginPortlets

public static void removePluginPortlets(int nIdPlugin,
                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Removes all the portlets related to the plugin

Parameters:
nIdPlugin - The id of the generated plugin
plugin - The plugin

create

public static PluginPortlet create(PluginPortlet pluginPortlet,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create an instance of the pluginPortlet class

Parameters:
pluginPortlet - The instance of the PluginPortlet which contains the informations to store
plugin - the Plugin
Returns:
The instance of pluginPortlet which has been created with its primary key.

update

public static PluginPortlet update(PluginPortlet pluginPortlet,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the pluginPortlet which is specified in parameter

Parameters:
pluginPortlet - The instance of the PluginPortlet which contains the data to store
plugin - the Plugin
Returns:
The instance of the pluginPortlet which has been updated

remove

public static void remove(int nPluginPortletId,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the pluginPortlet whose identifier is specified in parameter

Parameters:
nPluginPortletId - The pluginPortlet Id
plugin - the Plugin

findByPrimaryKey

public static PluginPortlet findByPrimaryKey(int nKey,
                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a pluginPortlet whose identifier is specified in parameter

Parameters:
nKey - The pluginPortlet primary key
plugin - the Plugin
Returns:
an instance of PluginPortlet

findByPlugin

public static java.util.Collection<PluginPortlet> findByPlugin(int nKey,
                                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a pluginPortlet whose identifier is specified in parameter

Parameters:
nKey - The pluginPortlet primary key
plugin - the Plugin
Returns:
an instance of PluginPortlet

getPluginPortletsList

public static java.util.Collection<PluginPortlet> getPluginPortletsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the pluginPortlet objects and returns them in form of a collection

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


Copyright © 2011 Mairie de Paris. All Rights Reserved.