fr.paris.lutece.plugins.pluginwizard.business.model
Interface IResourceKeyDAO

All Known Implementing Classes:
ResourceKeyDAO

public interface IResourceKeyDAO

IResourceKeyDAO Interface


Method Summary
 void addEmptyKeys(int nPluginId, java.util.ArrayList<java.lang.String> listKeys, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Persists the i18n keys
 void delete(int nIdResourceKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void deleteByPlugin(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Deletes all the resources from a Plugin
 void insert(ResourceKey resourceKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 boolean isEmpty(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Verifies if the keys have been generated for the plugin
 boolean isValid(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns true if resource key is valid
 ResourceKey load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 java.util.Collection<ResourceKey> selectResourceKeysList(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Select a list of resource keys
 java.util.Collection<ResourceKey> selectResourceKeysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the resourceKey objects and returns them as a collection
 void store(ResourceKey resourceKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

insert

void insert(ResourceKey resourceKey,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
resourceKey - instance of the ResourceKey object to inssert
plugin - the Plugin

store

void store(ResourceKey resourceKey,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
resourceKey - the reference of the ResourceKey
plugin - the Plugin

delete

void delete(int nIdResourceKey,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nIdResourceKey - int identifier of the ResourceKey to delete
plugin - the Plugin

load

ResourceKey load(int nKey,
                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table

Parameters:
nKey - The identifier of the ressource key
plugin - the Plugin
Returns:
The instance of the resourceKey

selectResourceKeysList

java.util.Collection<ResourceKey> selectResourceKeysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the resourceKey objects and returns them as a collection

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

selectResourceKeysList

java.util.Collection<ResourceKey> selectResourceKeysList(int nPluginId,
                                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select a list of resource keys

Parameters:
nPluginId - The id of the plugin
plugin - The Plugin
Returns:
A collection of all the resource keys related to a generated plugin

isValid

boolean isValid(int nPluginId,
                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns true if resource key is valid

Parameters:
nPluginId - The id of the generated plugin
plugin - The Plugin
Returns:
A boolean value indicating the validity of the resource key

addEmptyKeys

void addEmptyKeys(int nPluginId,
                  java.util.ArrayList<java.lang.String> listKeys,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Persists the i18n keys

Parameters:
nPluginId - The plugin id
listKeys - The list of i18n keys
plugin - The plugin

isEmpty

boolean isEmpty(int nPluginId,
                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Verifies if the keys have been generated for the plugin

Parameters:
nPluginId - The id of the generated plugin
plugin - The plugin
Returns:
A boolean value

deleteByPlugin

void deleteByPlugin(int nPluginId,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes all the resources from a Plugin

Parameters:
nPluginId - The generated plugin id
plugin - The plugin


Copyright © 2012 Mairie de Paris. All Rights Reserved.