Class AttributeFieldHome

java.lang.Object
fr.paris.lutece.plugins.mylutece.business.attribute.AttributeFieldHome

public class AttributeFieldHome extends Object
AttributeFieldHome
  • Constructor Details

    • AttributeFieldHome

      public AttributeFieldHome()
  • Method Details

    • findByPrimaryKey

      public static AttributeField findByPrimaryKey(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load attribute field
      Parameters:
      nIdField - ID Field
      plugin - The plugin
      Returns:
      Attribute Field
    • selectAttributeFieldsByIdAttribute

      public static List<AttributeField> selectAttributeFieldsByIdAttribute(int nIdAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the lists of attribute field associated to an attribute
      Parameters:
      nIdAttribute - the ID attribute
      plugin - The plugin
      Returns:
      the list of attribute fields
    • selectAttributeByIdField

      public static IAttribute selectAttributeByIdField(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the attribute associated to the id field
      Parameters:
      nIdField - the id field
      plugin - The plugin
      Returns:
      attribute
    • create

      public static int create(AttributeField attributeField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert an new attribute field
      Parameters:
      attributeField - the attribute field
      plugin - The plugin
      Returns:
    • update

      public static void update(AttributeField attributeField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update an attribute field
      Parameters:
      attributeField - the attribute field
      plugin - The plugin
    • remove

      public static void remove(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete an attribute field
      Parameters:
      nIdField - the attribute field id
      plugin - The plugin
    • removeAttributeFieldsFromIdAttribute

      public static void removeAttributeFieldsFromIdAttribute(int nIdAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete all attribute field from an attribute id
      Parameters:
      nIdAttribute - the ID attribute
      plugin - The plugin