|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.pluginwizard.business.model.ResourceKeyHome
public final class ResourceKeyHome
This class provides instances management methods (create, find, ...) for ResourceKey objects
Method Summary | |
---|---|
static void |
addEmptyKeys(int nPluginId,
java.util.ArrayList<java.lang.String> listKeys,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Persists the i18n keys |
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 ResourceKey |
findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a resourceKey whose identifier is specified in parameter |
static java.util.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 |
static java.util.Collection<ResourceKey> |
getResourceKeysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the resourceKey objects and returns them in form of a collection |
static boolean |
isEmpty(int nPluginId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Verifies if the keys have been generated for the plugin |
static boolean |
isValid(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 |
static void |
remove(int nResourceKeyId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the resourceKey whose identifier is specified in parameter |
static void |
removeResourcesByPlugin(int nIdPlugin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Removes i18n ressources by plugin |
static ResourceKey |
update(ResourceKey resourceKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the resourceKey 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 |
---|
public static void removeResourcesByPlugin(int nIdPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdPlugin
- The id of the pluginplugin
- The pluginpublic static ResourceKey create(ResourceKey resourceKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
resourceKey
- The instance of the ResourceKey which contains the informations to storeplugin
- the Plugin
public static ResourceKey update(ResourceKey resourceKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
resourceKey
- The instance of the ResourceKey which contains the data to storeplugin
- the Plugin
public static void remove(int nResourceKeyId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nResourceKeyId
- The resourceKey Idplugin
- the Pluginpublic static ResourceKey findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey
- The resourceKey primary keyplugin
- the Plugin
public static java.util.Collection<ResourceKey> getResourceKeysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- the Plugin
public static java.util.Collection<ResourceKey> getResourceKeysList(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nPluginId
- The identifier of the generated pluginplugin
- the Plugin
public static boolean isValid(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nPluginId
- The identifier of the generated pluginplugin
- the Plugin
public static void addEmptyKeys(int nPluginId, java.util.ArrayList<java.lang.String> listKeys, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nPluginId
- The id of the pluginlistKeys
- The i18n keysplugin
- The pluginpublic static boolean isEmpty(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nPluginId
- The id of the generated pluginplugin
- The plugin
public static void deleteKeysByPlugin(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nPluginId
- The Plugin Idplugin
- The Plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |