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

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

public final class PluginApplicationHome
extends java.lang.Object

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


Method Summary
static PluginApplication create(PluginApplication pluginApplication, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Create an instance of the pluginApplication class
static java.util.Collection<PluginApplication> findByPlugin(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a pluginApplication whose identifier is specified in parameter
static PluginApplication findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a pluginApplication whose identifier is specified in parameter
static java.util.Collection<PluginApplication> getPluginApplicationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the pluginApplication objects and returns them in form of a collection
static void remove(int nPluginApplicationId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the pluginApplication whose identifier is specified in parameter
static void removePluginApplicationByPlugin(int nIdPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Removes all the applications attached to a plugin
static PluginApplication update(PluginApplication pluginApplication, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the pluginApplication 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

removePluginApplicationByPlugin

public static void removePluginApplicationByPlugin(int nIdPlugin,
                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Removes all the applications attached to a plugin

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

create

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

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

update

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

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

remove

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

Parameters:
nPluginApplicationId - The pluginApplication Id
plugin - the Plugin

findByPrimaryKey

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

Parameters:
nKey - The pluginApplication primary key
plugin - the Plugin
Returns:
an instance of PluginApplication

findByPlugin

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

Parameters:
nKey - The pluginApplication primary key
plugin - the Plugin
Returns:
an instance of PluginApplication

getPluginApplicationsList

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

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


Copyright © 2011 Mairie de Paris. All Rights Reserved.