Class RuleHome
- 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 Summary
Fields Modifier and Type Field Description static StringRULE_PROTECTED_URL_PREFIXstatic StringRULE_PUBLIC_URL_PREFIXstatic StringRULE_ROLES_PREFIX
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Rulecreate(Rule rule)Create an instance of the rule classstatic RulefindByPrimaryKey(int nKey)Returns an instance of a rule whose identifier is specified in parameterstatic List<Integer>getIdRulesList()Load the id of all the rule objects and returns them as a liststatic List<Rule>getRulesList()Load the data of all the rule objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListgetRulesReferenceList()Load 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(Rule rule)Update of the rule which is specified in parameterstatic voidupdateRulesPriorities(List<Rule> listRules)Update rules priorities.
-
-
-
Field Detail
-
RULE_PROTECTED_URL_PREFIX
public static final String RULE_PROTECTED_URL_PREFIX
- See Also:
- Constant Field Values
-
RULE_ROLES_PREFIX
public static final String RULE_ROLES_PREFIX
- See Also:
- Constant Field Values
-
RULE_PUBLIC_URL_PREFIX
public static final 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 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
-
-