org.chorem.pollen.business
Class ServicePreventRuleImpl

java.lang.Object
  extended by org.chorem.pollen.business.ServicePreventRuleImpl
All Implemented Interfaces:
ServicePreventRule

public class ServicePreventRuleImpl
extends java.lang.Object
implements ServicePreventRule

Gestion des règles de notification.

Version:
$Id: ServicePreventRuleImpl.java 2621 2009-07-03 15:09:23Z nrannou $
Author:
rannou

Constructor Summary
ServicePreventRuleImpl()
           
 
Method Summary
 java.lang.String createPreventRule(PreventRuleDTO preventRule)
          Création d'une règle de notification.
 java.util.List<PreventRule> createPreventRules(java.util.List<PreventRuleDTO> preventRules, java.lang.String pollId, org.nuiton.topia.TopiaContext trans)
          Création des règles de notification du sondage
 boolean deletePreventRule(java.lang.String preventRuleId)
          Suppression d'une règle de notification.
 PreventRuleDTO findPreventRuleById(java.lang.String preventRuleId)
          Recherche d'un règle de notification par son identifiant.
 java.util.List<PreventRuleDTO> selectPreventRules(java.util.Map<java.lang.String,java.lang.Object> properties)
          Recherche de toutes les règles de notification.
 boolean updatePreventRule(PreventRuleDTO preventRuleDTO)
          Mise à jour d'une règle de notification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServicePreventRuleImpl

public ServicePreventRuleImpl()
Method Detail

createPreventRule

public java.lang.String createPreventRule(PreventRuleDTO preventRule)
Description copied from interface: ServicePreventRule
Création d'une règle de notification.

Specified by:
createPreventRule in interface ServicePreventRule
Parameters:
preventRule - le dto de la règle
Returns:
l'identifiant de la règle

createPreventRules

public java.util.List<PreventRule> createPreventRules(java.util.List<PreventRuleDTO> preventRules,
                                                      java.lang.String pollId,
                                                      org.nuiton.topia.TopiaContext trans)
Description copied from interface: ServicePreventRule
Création des règles de notification du sondage

Specified by:
createPreventRules in interface ServicePreventRule
Parameters:
preventRules - les dtos des règles
pollId - l'identifiant du sondage
trans - la transaction du sondage
Returns:
les règles créées

updatePreventRule

public boolean updatePreventRule(PreventRuleDTO preventRuleDTO)
Description copied from interface: ServicePreventRule
Mise à jour d'une règle de notification.

Specified by:
updatePreventRule in interface ServicePreventRule
Parameters:
preventRuleDTO - le dto de la règle
Returns:
true si la règle a été mise à jours

deletePreventRule

public boolean deletePreventRule(java.lang.String preventRuleId)
Description copied from interface: ServicePreventRule
Suppression d'une règle de notification.

Specified by:
deletePreventRule in interface ServicePreventRule
Parameters:
preventRuleId - l'identifiant de la règle
Returns:
true si la règle a été mise à jours

findPreventRuleById

public PreventRuleDTO findPreventRuleById(java.lang.String preventRuleId)
Description copied from interface: ServicePreventRule
Recherche d'un règle de notification par son identifiant.

Specified by:
findPreventRuleById in interface ServicePreventRule
Parameters:
preventRuleId - l'identifiant de la règle
Returns:
la règle

selectPreventRules

public java.util.List<PreventRuleDTO> selectPreventRules(java.util.Map<java.lang.String,java.lang.Object> properties)
Description copied from interface: ServicePreventRule
Recherche de toutes les règles de notification.

Specified by:
selectPreventRules in interface ServicePreventRule
Parameters:
properties - filtre sur les champs de la table preventRule
Returns:
les règles


Copyright © 2009 CodeLutin. All Rights Reserved.