fr.paris.lutece.plugins.document.business.rules
Class RuleHome

java.lang.Object
  extended by fr.paris.lutece.plugins.document.business.rules.RuleHome

public final class RuleHome
extends java.lang.Object

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 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

create

public static Rule create(Rule rule)
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

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 nRuleId)
Remove the Rule whose identifier is specified in parameter

Parameters:
nRuleId - 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 Primary key of the rule
Returns:
An instance of rule

findAll

public static java.util.List<Rule> findAll(java.util.Locale locale)
Returns a collection of rules objects

Returns:
A collection of rules

getRuleTypesList

public static fr.paris.lutece.util.ReferenceList getRuleTypesList(java.util.Locale locale)
Returns the rule types list

Returns:
The rule types list

newInstance

public static Rule newInstance(java.lang.String strRuleTypeId)
Create a new instance of a rule of a given type

Parameters:
strRuleTypeKey - The key name of the rule type
Returns:
A new Rule instance


Copyright © 2007 Mairie de Paris. All Rights Reserved.