Class FieldHome
- java.lang.Object
-
- fr.paris.lutece.plugins.form.business.FieldHome
-
public final class FieldHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for Field objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcopy(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)Copy of an instance of fieldstatic intcreate(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)Creation of an instance of fieldstatic voidcreateVerifyBy(int nIdField, int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)insert an association between field and a regular expressionstatic FieldfindByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns an instance of a Field whose identifier is specified in parameterstatic java.util.List<Field>getFieldListByIdEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the field of the entry and returns them in a liststatic java.util.List<java.lang.Integer>getListRegularExpressionKeyByIdField(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the key of all the regularExpression associate to the field and returns them in a liststatic booleanisRegularExpressionIsUse(int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)verify if the regular expresssion is usestatic voidremove(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove the field whose identifier is specified in parameterstatic voidremoveVerifyBy(int nIdField, int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete an association between field and a regular expressionstatic voidupdate(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update of the field which is specified in parameter
-
-
-
Method Detail
-
create
public static int create(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of field- Parameters:
field- The instance of the Field which contains the informations to storeplugin- the Plugin- Returns:
- The primary key of the new Field.
-
copy
public static void copy(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Copy of an instance of field- Parameters:
field- The instance of the Field who must copyplugin- the Plugin
-
update
public static void update(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the field which is specified in parameter- Parameters:
field- The instance of the Field which contains the informations to updateplugin- the Plugin
-
remove
public static void remove(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove the field whose identifier is specified in parameter- Parameters:
nIdField- The field Idplugin- the Plugin
-
findByPrimaryKey
public static Field findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a Field whose identifier is specified in parameter- Parameters:
nKey- The field primary keyplugin- the Plugin- Returns:
- an instance of Field
-
getFieldListByIdEntry
public static java.util.List<Field> getFieldListByIdEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the field of the entry and returns them in a list- Parameters:
nIdEntry- the id of the entryplugin- the plugin- Returns:
- the list of field
-
removeVerifyBy
public static void removeVerifyBy(int nIdField, int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete an association between field and a regular expression- Parameters:
nIdField- The identifier of the fieldnIdExpression- The identifier of the regular expressionplugin- the plugin
-
createVerifyBy
public static void createVerifyBy(int nIdField, int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)insert an association between field and a regular expression- Parameters:
nIdField- The identifier of the fieldnIdExpression- The identifier of the regular expressionplugin- the plugin
-
getListRegularExpressionKeyByIdField
public static java.util.List<java.lang.Integer> getListRegularExpressionKeyByIdField(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the key of all the regularExpression associate to the field and returns them in a list- Parameters:
nIdField- the id of the fieldplugin- the plugin- Returns:
- the list of regular expression key
-
isRegularExpressionIsUse
public static boolean isRegularExpressionIsUse(int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)verify if the regular expresssion is use- Parameters:
nIdExpression- The identifier of the regular expressionplugin- the plugin- Returns:
- true if the regular expression is use
-
-