fr.paris.lutece.plugins.rating.business
Class ResourceConfHome

java.lang.Object
  extended by fr.paris.lutece.plugins.rating.business.ResourceConfHome

public final class ResourceConfHome
extends java.lang.Object

class ResourceConfHome


Method Summary
static void create(ResourceConf resourceConf, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of resourceConf
static ResourceConf findByResource(java.lang.String strResourceType, int nIdResource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of DocumentVote whose document identifier is specified in parameter
static java.util.List<java.lang.String> getResourceTypes(fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
static void remove(java.lang.String strResourceType, int nIdResource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the ResourceConf whose identifier are specified in parameters
static void update(ResourceConf resourceConf, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the mapping 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

getResourceTypes

public static java.util.List<java.lang.String> getResourceTypes(fr.paris.lutece.portal.service.plugin.Plugin plugin)

create

public static void create(ResourceConf resourceConf,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of resourceConf

Parameters:
resourceConf - The instance of the ResourceConf which contains the informations to store
plugin - the Plugin

findByResource

public static ResourceConf findByResource(java.lang.String strResourceType,
                                          int nIdResource,
                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of DocumentVote whose document identifier is specified in parameter

Parameters:
strResourceType - the type of the resource
nIdResource - the id of the resource
plugin - the Plugin
Returns:
an instance of DocumentVote

update

public static void update(ResourceConf resourceConf,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the mapping which is specified in parameter

Parameters:
resourceConf - The instance of the ResourceConf which contains the informations to update
plugin - the Plugin

remove

public static void remove(java.lang.String strResourceType,
                          int nIdResource,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the ResourceConf whose identifier are specified in parameters

Parameters:
strResourceType - The type of the resource
nIdResource - the id of the resource
plugin - the Plugin


Copyright © 2011 Mairie de Paris. All Rights Reserved.