Class RuleHome
java.lang.Object
fr.paris.lutece.plugins.myluteceaccessrules.business.RuleHome
This class provides instances management methods (create, find, ...) for Rule objects
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic RuleCreate an instance of the rule classstatic RulefindByPrimaryKey(int nKey) Returns an instance of a rule whose identifier is specified in parameterLoad the id of all the rule objects and returns them as a listLoad the data of all the rule objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListLoad the data of all the rule objects and returns them as a referenceListstatic voidremove(int nKey) Remove the rule whose identifier is specified in parameterstatic RuleUpdate of the rule which is specified in parameterstatic voidupdateRulesPriorities(List<Rule> listRules) Update rules priorities.
-
Field Details
-
RULE_PROTECTED_URL_PREFIX
- See Also:
-
RULE_ROLES_PREFIX
- See Also:
-
RULE_PUBLIC_URL_PREFIX
- See Also:
-
-
Method Details
-
create
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
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
Returns an instance of a rule whose identifier is specified in parameter- Parameters:
nKey- The rule primary key- Returns:
- an instance of 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
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
Update rules priorities.- Parameters:
listRules- the list rules
-