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

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

public final class FeatureHome
extends Object

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


Method Summary
static Feature create(Feature pluginFeature, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Create an instance of the pluginFeature class
static Collection<Feature> findByPlugin(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the collection of plugin features for a specific plugin
static Feature 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 removeFeaturesByPlugin(int nIdPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Removes the features attached to a plugin
static Feature update(Feature 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

create

public static Feature create(Feature 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 Feature update(Feature 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

removeFeaturesByPlugin

public static void removeFeaturesByPlugin(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

findByPrimaryKey

public static Feature 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 Collection<Feature> 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 © 2013 Mairie de Paris. All Rights Reserved.