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

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

public final class PluginFeatureHome
extends java.lang.Object

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


Method Summary
static PluginFeature create(PluginFeature pluginFeature, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Create an instance of the pluginFeature class
static java.util.Collection<PluginFeature> findByPlugin(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the collection of plugin features for a specific plugin
static PluginFeature findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a pluginFeature whose identifier is specified in parameter
static fr.paris.lutece.util.ReferenceList getAdminFeaturesForPlugin(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a reference list of features available for the plugin
static void remove(int nPluginFeatureId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the pluginFeature whose identifier is specified in parameter
static void removePluginFeaturesByPlugin(int nIdPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Removes the features attached to a plugin
static PluginFeature update(PluginFeature pluginFeature, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the pluginFeature 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

removePluginFeaturesByPlugin

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

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

create

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

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

update

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

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

remove

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

Parameters:
nPluginFeatureId - The pluginFeature Id
plugin - the Plugin

findByPrimaryKey

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

Parameters:
nKey - The pluginFeature primary key
plugin - the Plugin
Returns:
an instance of PluginFeature

findByPlugin

public static java.util.Collection<PluginFeature> findByPlugin(int nPluginId,
                                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the collection of plugin features for a specific plugin

Parameters:
nPluginId - The plugin id
plugin - The plugin
Returns:
The collection of the plugin features

getAdminFeaturesForPlugin

public static fr.paris.lutece.util.ReferenceList getAdminFeaturesForPlugin(int nPluginId,
                                                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a reference list of features available for the plugin

Parameters:
nPluginId - The id of the generated plugin
plugin - The plugin
Returns:
The reference list


Copyright © 2011 Mairie de Paris. All Rights Reserved.