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

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

public final class ApplicationHome
extends Object

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


Method Summary
static Application create(Application pluginApplication, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Create an instance of the pluginApplication class
static Collection<Application> findByPlugin(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a pluginApplication whose identifier is specified in parameter
static Application findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a pluginApplication whose identifier is specified in parameter
static Collection<Application> 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 removeApplicationsByPlugin(int nIdPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Removes all the applications attached to a plugin
static Application update(Application 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

removeApplicationsByPlugin

public static void removeApplicationsByPlugin(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 Application create(Application 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 Application update(Application 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 Application 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 Collection<Application> 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 Collection<Application> 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 © 2013 Mairie de Paris. All Rights Reserved.