fr.paris.lutece.plugins.form.modules.comparevalidators.business
Class RuleHome

java.lang.Object
  extended by fr.paris.lutece.plugins.form.modules.comparevalidators.business.RuleHome

public final class RuleHome
extends Object

RuleHome


Method Summary
static Rule create(Rule rule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creates a new instance of rule
static List<Rule> findRulesByForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Finds all rules for a given form identifier
static void remove(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Removes the rule whose identifier 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 Rule create(Rule rule,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creates a new instance of rule

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

remove

public static void remove(int nKey,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Removes the rule whose identifier is specified in parameter

Parameters:
nKey - The primary key of the rule to remove
plugin - The plugin

findRulesByForm

public static List<Rule> findRulesByForm(int nIdForm,
                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all rules for a given form identifier

Parameters:
nIdForm - the form identifier
plugin - The plugin
Returns:
the referenceList which contains the found rules


Copyright © 2014 Mairie de Paris. All Rights Reserved.