java.lang.Object
fr.paris.lutece.plugins.myluteceaccessrules.business.RuleHome

public final class RuleHome extends Object
This class provides instances management methods (create, find, ...) for Rule objects
  • Field Details

  • Method Details

    • create

      public static Rule create(Rule rule)
      Create an instance of the rule class
      Parameters:
      rule - The instance of the Rule which contains the informations to store
      Returns:
      The instance of rule which has been created with its primary key.
    • update

      public static Rule update(Rule rule)
      Update of the rule which is specified in parameter
      Parameters:
      rule - The instance of the Rule which contains the data to store
      Returns:
      The instance of the rule which has been updated
    • remove

      public static void remove(int nKey)
      Remove the rule whose identifier is specified in parameter
      Parameters:
      nKey - The rule Id
    • findByPrimaryKey

      public static Rule findByPrimaryKey(int nKey)
      Returns an instance of a rule whose identifier is specified in parameter
      Parameters:
      nKey - The rule primary key
      Returns:
      an instance of Rule
    • getRulesList

      public static List<Rule> getRulesList()
      Load the data of all the rule objects and returns them as a list
      Returns:
      the list which contains the data of all the rule objects
    • getIdRulesList

      public static List<Integer> getIdRulesList()
      Load the id of all the rule objects and returns them as a list
      Returns:
      the list which contains the id of all the rule objects
    • getRulesReferenceList

      public static fr.paris.lutece.util.ReferenceList getRulesReferenceList()
      Load the data of all the rule objects and returns them as a referenceList
      Returns:
      the referenceList which contains the data of all the rule objects
    • updateRulesPriorities

      public static void updateRulesPriorities(List<Rule> listRules)
      Update rules priorities.
      Parameters:
      listRules - the list rules