fr.paris.lutece.plugins.form.business
Class RegularExpressionHome

java.lang.Object
  extended by fr.paris.lutece.plugins.form.business.RegularExpressionHome

public final class RegularExpressionHome
extends java.lang.Object

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


Method Summary
static void create(RegularExpression regularExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of regular expression
static RegularExpression findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a RegularExpression whose identifier is specified in parameter
static java.util.List<RegularExpression> getList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the regularExpression and returns them in a list
static java.util.List<RegularExpression> getListByFieldId(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the regularExpression associate to the field and returns them in a list
static fr.paris.lutece.util.ReferenceList getListRegularExpression(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the regular expression returns them in a reference list
static boolean isAssociateToAQuestion(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdExpression)
           
static void remove(int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the regularExpression whose identifier is specified in parameter
static void update(RegularExpression regularExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the regularExpression 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

create

public static void create(RegularExpression regularExpression,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of regular expression

Parameters:
regularExpression - The instance of the RegularExpression which contains the informations to store
plugin - the Plugin

update

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

Parameters:
regularExpression - The instance of the RegularExpression which contains the informations to update
plugin - the Plugin

remove

public static void remove(int nIdExpression,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the regularExpression whose identifier is specified in parameter

Parameters:
nIdExpression - The reportingProject Id
plugin - the Plugin

findByPrimaryKey

public static RegularExpression findByPrimaryKey(int nKey,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a RegularExpression whose identifier is specified in parameter

Parameters:
nKey - The regularExpression primary key
plugin - the Plugin
Returns:
an instance of RegularExpression

getList

public static java.util.List<RegularExpression> getList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the regularExpression and returns them in a list

Parameters:
plugin - the plugin
Returns:
the list of regularexpression

getListByFieldId

public static java.util.List<RegularExpression> getListByFieldId(int nIdField,
                                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the regularExpression associate to the field and returns them in a list

Parameters:
nIdField - the id of field
plugin - the plugin
Returns:
the list of regular expression

getListRegularExpression

public static fr.paris.lutece.util.ReferenceList getListRegularExpression(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the regular expression returns them in a reference list

Parameters:
plugin - the plugin
Returns:
a reference list of regular expression

isAssociateToAQuestion

public static boolean isAssociateToAQuestion(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                             int nIdExpression)
Parameters:
plugin - the plugin
nIdExpression - the id of the regular expression
Returns:
true if there is a question associate to the regular expression


Copyright © 2008 Mairie de Paris. All Rights Reserved.