Class RuleHome


  • public final class RuleHome
    extends java.lang.Object
    This class provides instances management methods (create, find, ...) for Rule objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Rule create​(Rule rule)
      Create an instance of the rule class
      static Rule findByPrimaryKey​(int nKey)
      Returns an instance of a rule whose identifier is specified in parameter
      static java.util.List<java.lang.Integer> getIdRulesList()
      Load the id of all the rule objects and returns them as a list
      static java.util.List<Rule> getRulesList()
      Load the data of all the rule objects and returns them as a list
      static fr.paris.lutece.util.ReferenceList getRulesReferenceList()
      Load the data of all the rule objects and returns them as a referenceList
      static void remove​(int nKey)
      Remove the rule whose identifier is specified in parameter
      static Rule update​(Rule rule)
      Update of the rule which is specified in parameter
      static void updateRulesPriorities​(java.util.List<Rule> listRules)
      Update rules priorities.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • RULE_PROTECTED_URL_PREFIX

        public static final java.lang.String RULE_PROTECTED_URL_PREFIX
        See Also:
        Constant Field Values
      • RULE_ROLES_PREFIX

        public static final java.lang.String RULE_ROLES_PREFIX
        See Also:
        Constant Field Values
      • RULE_PUBLIC_URL_PREFIX

        public static final java.lang.String RULE_PUBLIC_URL_PREFIX
        See Also:
        Constant Field Values
    • Method Detail

      • 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 java.util.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 java.util.List<java.lang.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​(java.util.List<Rule> listRules)
        Update rules priorities.
        Parameters:
        listRules - the list rules