java.lang.Object
fr.paris.lutece.plugins.myluteceaccessrules.business.RuleDAO
All Implemented Interfaces:
IRuleDAO

@ApplicationScoped public final class RuleDAO extends Object implements IRuleDAO
This class provides Data Access methods for Rule objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    void
    insert(Rule rule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    selectIdRulesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the id of all the rule objects and returns them as a list
    selectRulesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the rule objects and returns them as a list
    fr.paris.lutece.util.ReferenceList
    selectRulesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the rule objects and returns them as a referenceList
    void
    store(Rule rule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the record in the table

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RuleDAO

      public RuleDAO()
  • Method Details

    • insert

      public void insert(Rule rule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface IRuleDAO
      Parameters:
      rule - instance of the Rule object to insert
      plugin - the Plugin
    • load

      public Rule load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface IRuleDAO
      Parameters:
      nKey - The identifier of the rule
      plugin - the Plugin
      Returns:
      The instance of the rule
    • delete

      public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Specified by:
      delete in interface IRuleDAO
      Parameters:
      nKey - The identifier of the Rule to delete
      plugin - the Plugin
    • store

      public void store(Rule rule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IRuleDAO
      Parameters:
      rule - the reference of the Rule
      plugin - the Plugin
    • selectRulesList

      public List<Rule> selectRulesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the rule objects and returns them as a list
      Specified by:
      selectRulesList in interface IRuleDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the rule objects
    • selectIdRulesList

      public List<Integer> selectIdRulesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the rule objects and returns them as a list
      Specified by:
      selectIdRulesList in interface IRuleDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the id of all the rule objects
    • selectRulesReferenceList

      public fr.paris.lutece.util.ReferenceList selectRulesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the rule objects and returns them as a referenceList
      Specified by:
      selectRulesReferenceList in interface IRuleDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The referenceList which contains the data of all the rule objects