Class RuleHome
java.lang.Object
fr.paris.lutece.plugins.document.business.rules.RuleHome
This class provides instances management methods (create, find, ...) for Rule objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic RuleCreation of an instance of ruleReturns a collection of rules objectsstatic RulefindByPrimaryKey(int nKey) Returns an instance of a rule whose identifier is specified in parameterstatic Collection<Rule>findByRuleTypeKey(String strRuleTypeKey) Returns a collection of rules objects specified by rule type keystatic StringgetRuleTypeKey(Rule rule) Returns the rule type of a given class typestatic Collection<Rule>Returns all rule typesstatic fr.paris.lutece.util.ReferenceListgetRuleTypesList(Locale locale) Returns the rule types liststatic RulenewInstance(String strRuleTypeId) Create a new instance of a rule of a given typestatic voidremove(int nRuleId) Remove the Rule whose identifier is specified in parameterstatic RuleUpdate of the rule which is specified in parameter
-
Method Details
-
create
Creation of an instance of rule- 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 nRuleId) Remove the Rule whose identifier is specified in parameter- Parameters:
nRuleId- The Rule Id
-
findByPrimaryKey
Returns an instance of a rule whose identifier is specified in parameter- Parameters:
nKey- The Primary key of the rule- Returns:
- An instance of rule
-
findAll
Returns a collection of rules objects- Parameters:
locale- the current local- Returns:
- A collection of rules
-
getRuleTypesList
Returns the rule types list- Parameters:
locale- the Locale- Returns:
- The rule types list
-
newInstance
Create a new instance of a rule of a given type- Parameters:
strRuleTypeId- The key name of the rule type- Returns:
- A new Rule instance
-
getRuleTypes
Returns all rule types- Returns:
- A collection of rule types
-
getRuleTypeKey
Returns the rule type of a given class type- Parameters:
rule- The Rule object- Returns:
- The rule type
-
findByRuleTypeKey
Returns a collection of rules objects specified by rule type key- Parameters:
strRuleTypeKey- The rule type key- Returns:
- A collection of Rule
-