|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.document.business.rules.RuleHome
public final class RuleHome
This class provides instances management methods (create, find, ...) for Rule objects
Method Summary | |
---|---|
static Rule |
create(Rule rule)
Creation of an instance of rule |
static java.util.List<Rule> |
findAll(java.util.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 java.util.Collection<Rule> |
findByRuleTypeKey(java.lang.String strRuleTypeKey)
Returns a collection of rules objects specified by rule type key |
static java.lang.String |
getRuleTypeKey(Rule rule)
Returns the rule type of a given class type |
static java.util.Collection<Rule> |
getRuleTypes()
Returns all rule types |
static fr.paris.lutece.util.ReferenceList |
getRuleTypesList(java.util.Locale locale)
Returns the rule types list |
static Rule |
newInstance(java.lang.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Rule create(Rule rule)
rule
- The instance of the rule which contains the informations to store
public static Rule update(Rule rule)
rule
- The instance of the rule which contains the data to store
public static void remove(int nRuleId)
nRuleId
- The Rule Idpublic static Rule findByPrimaryKey(int nKey)
nKey
- The Primary key of the rule
public static java.util.List<Rule> findAll(java.util.Locale locale)
locale
- the current local
public static fr.paris.lutece.util.ReferenceList getRuleTypesList(java.util.Locale locale)
locale
- the Locale
public static Rule newInstance(java.lang.String strRuleTypeId)
strRuleTypeId
- The key name of the rule type
public static java.util.Collection<Rule> getRuleTypes()
public static java.lang.String getRuleTypeKey(Rule rule)
rule
- The Rule object
public static java.util.Collection<Rule> findByRuleTypeKey(java.lang.String strRuleTypeKey)
strRuleTypeKey
- The rule type key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |