Class FieldHome
java.lang.Object
fr.paris.lutece.plugins.form.business.FieldHome
This class provides instances management methods (create, find, ...) for Field objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidCopy of an instance of fieldstatic intCreation 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 parametergetFieldListByIdEntry(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 listgetListRegularExpressionKeyByIdField(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 of the field which is specified in parameter
-
Method Details
-
create
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
Copy of an instance of field- Parameters:
field- The instance of the Field who must copyplugin- the Plugin
-
update
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
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 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 List<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
-