public final class RuleHome extends Object
Modifier and Type | Method and Description |
---|---|
static Rule |
create(Rule rule)
Creation of an instance of rule
|
static List<Rule> |
findAll(Locale locale)
Returns a collection of rules objects
|
static Rule |
findByPrimaryKey(int nKey)
Returns an instance of a rule whose identifier is specified in parameter
|
static Collection<Rule> |
findByRuleTypeKey(String strRuleTypeKey)
Returns a collection of rules objects specified by rule type key
|
static String |
getRuleTypeKey(Rule rule)
Returns the rule type of a given class type
|
static Collection<Rule> |
getRuleTypes()
Returns all rule types
|
static fr.paris.lutece.util.ReferenceList |
getRuleTypesList(Locale locale)
Returns the rule types list
|
static Rule |
newInstance(String strRuleTypeId)
Create a new instance of a rule of a given type
|
static void |
remove(int nRuleId)
Remove the Rule whose identifier is specified in parameter
|
static Rule |
update(Rule rule)
Update of the rule which is specified in parameter
|
public static Rule create(Rule rule)
rule
- The instance of the rule which contains the informations to storepublic static Rule update(Rule rule)
rule
- The instance of the rule which contains the data to storepublic static void remove(int nRuleId)
nRuleId
- The Rule Idpublic static Rule findByPrimaryKey(int nKey)
nKey
- The Primary key of the rulepublic static List<Rule> findAll(Locale locale)
locale
- the current localpublic static fr.paris.lutece.util.ReferenceList getRuleTypesList(Locale locale)
locale
- the Localepublic static Rule newInstance(String strRuleTypeId)
strRuleTypeId
- The key name of the rule typepublic static Collection<Rule> getRuleTypes()
public static String getRuleTypeKey(Rule rule)
rule
- The Rule objectpublic static Collection<Rule> findByRuleTypeKey(String strRuleTypeKey)
strRuleTypeKey
- The rule type keyCopyright © 2020 City of Paris. All rights reserved.