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

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

public final class ResourceKeyHome
extends Object

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


Method Summary
static ResourceKey create(ResourceKey resourceKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Create an instance of the resourceKey class
static void deleteKeysByPlugin(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Deletes all the resources for a generated plugin
static Collection<ResourceKey> getResourceKeysList(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the resourceKey objects and returns them in form of a collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

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

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

getResourceKeysList

public static Collection<ResourceKey> getResourceKeysList(int nPluginId,
                                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the resourceKey objects and returns them in form of a collection

Parameters:
nPluginId - The identifier of the generated plugin
plugin - the Plugin
Returns:
the collection which contains the data of all the resourceKey objects

deleteKeysByPlugin

public static void deleteKeysByPlugin(int nPluginId,
                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes all the resources for a generated plugin

Parameters:
nPluginId - The Plugin Id
plugin - The Plugin


Copyright © 2013 Mairie de Paris. All Rights Reserved.