com.cybelia.sandra.notifier
Class SandraNotifier
java.lang.Object
com.cybelia.sandra.notifier.SandraNotifier
public class SandraNotifier
- extends Object
- Author:
- sletellier
|
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
|
Method Summary |
protected void |
addLabelMapInContext(org.nuiton.topia.TopiaContext transaction,
Map<String,Object> context)
|
protected void |
doNotifyCron(org.nuiton.topia.TopiaContext transaction,
String cronTopiaId)
|
protected void |
doNotifyEvent(org.nuiton.topia.TopiaContext transaction,
String type,
String[] values)
|
protected void |
endTransaction(org.nuiton.topia.TopiaContext transaction)
|
protected boolean |
isList(String value)
|
protected boolean |
isPj(String variable)
|
protected boolean |
isValidListOfId(String value)
|
void |
notifyCron(String cronTopiaId)
Notification pour un cron a partir de son identifiant, utilse par les jobs
de quartz |
protected void |
notifyCron(org.nuiton.topia.TopiaContext transaction,
Cron cron,
List<Queue> queues)
Notification pour un cron sur une liste d'evenements |
void |
notifyEvent(String type,
String... values)
Notification d'un evenement |
protected void |
notifyUser(org.nuiton.topia.TopiaContext transaction,
Cron cron,
List<Queue> queues,
org.nuiton.topia.taas.entities.TaasUser user,
String to)
Notification pour un cron sur une liste d'evenements pour un destinataire |
void |
sendTemplate(Cron cron,
List<Map<String,Object>> events,
List<String> pjs,
String to)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.commons.logging.Log log
SandraNotifier
public SandraNotifier()
endTransaction
protected void endTransaction(org.nuiton.topia.TopiaContext transaction)
throws org.nuiton.topia.TopiaException
- Throws:
org.nuiton.topia.TopiaException
notifyEvent
public void notifyEvent(String type,
String... values)
throws org.nuiton.topia.TopiaException
- Notification d'un evenement
- Throws:
org.nuiton.topia.TopiaException
notifyCron
public void notifyCron(String cronTopiaId)
throws org.nuiton.topia.TopiaException
- Notification pour un cron a partir de son identifiant, utilse par les jobs
de quartz
- Throws:
org.nuiton.topia.TopiaException
doNotifyEvent
protected void doNotifyEvent(org.nuiton.topia.TopiaContext transaction,
String type,
String[] values)
doNotifyCron
protected void doNotifyCron(org.nuiton.topia.TopiaContext transaction,
String cronTopiaId)
notifyCron
protected void notifyCron(org.nuiton.topia.TopiaContext transaction,
Cron cron,
List<Queue> queues)
throws Exception
- Notification pour un cron sur une liste d'evenements
- Throws:
Exception
notifyUser
protected void notifyUser(org.nuiton.topia.TopiaContext transaction,
Cron cron,
List<Queue> queues,
org.nuiton.topia.taas.entities.TaasUser user,
String to)
throws Exception
- Notification pour un cron sur une liste d'evenements pour un destinataire
- Parameters:
cron - queues - user - to -
- Throws:
Exception
addLabelMapInContext
protected void addLabelMapInContext(org.nuiton.topia.TopiaContext transaction,
Map<String,Object> context)
throws Exception
- Throws:
Exception
isPj
protected boolean isPj(String variable)
isValidListOfId
protected boolean isValidListOfId(String value)
throws Exception
- Throws:
Exception
isList
protected boolean isList(String value)
throws Exception
- Throws:
Exception
sendTemplate
public void sendTemplate(Cron cron,
List<Map<String,Object>> events,
List<String> pjs,
String to)
throws Exception
- Throws:
Exception
Copyright © 2008-2012 Cybelia. All Rights Reserved.