org.chorem.pollen.business.services
Interface ServicePreventRule

All Known Implementing Classes:
ServicePreventRuleImpl

public interface ServicePreventRule

Interface de gestion des règles de notification.

Version:
$Id: ServicePreventRule.java 2649 2009-07-15 16:30:23Z nrannou $
Author:
rannou

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 transaction)
          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.
 

Method Detail

createPreventRule

java.lang.String createPreventRule(PreventRuleDTO preventRule)
Création d'une règle de notification.

Parameters:
preventRule - le dto de la règle
Returns:
l'identifiant de la règle

createPreventRules

java.util.List<PreventRule> createPreventRules(java.util.List<PreventRuleDTO> preventRules,
                                               java.lang.String pollId,
                                               org.nuiton.topia.TopiaContext transaction)
Création des règles de notification du sondage

Parameters:
preventRules - les dtos des règles
pollId - l'identifiant du sondage
transaction - la transaction du sondage
Returns:
les règles créées

updatePreventRule

boolean updatePreventRule(PreventRuleDTO preventRuleDTO)
Mise à jour d'une règle de notification.

Parameters:
preventRuleDTO - le dto de la règle
Returns:
true si la règle a été mise à jours

deletePreventRule

boolean deletePreventRule(java.lang.String preventRuleId)
Suppression d'une règle de notification.

Parameters:
preventRuleId - l'identifiant de la règle
Returns:
true si la règle a été mise à jours

findPreventRuleById

PreventRuleDTO findPreventRuleById(java.lang.String preventRuleId)
Recherche d'un règle de notification par son identifiant.

Parameters:
preventRuleId - l'identifiant de la règle
Returns:
la règle

selectPreventRules

java.util.List<PreventRuleDTO> selectPreventRules(java.util.Map<java.lang.String,java.lang.Object> properties)
Recherche de toutes les règles de notification.

Parameters:
properties - filtre sur les champs de la table preventRule
Returns:
les règles


Copyright © 2009 CodeLutin. All Rights Reserved.