Update of /var/cvs/contributions/natmm/src/nl/leocms/evenementen
In directory james.mmbase.org:/tmp/cvs-serv31643/src/nl/leocms/evenementen
Modified Files:
EventNotifier.java
Log Message:
NMCMS-476
See also:
http://cvs.mmbase.org/viewcvs/contributions/natmm/src/nl/leocms/evenementen
See also: http://www.mmbase.org/jira/browse/NMCMS-476
Index: EventNotifier.java
===================================================================
RCS file:
/var/cvs/contributions/natmm/src/nl/leocms/evenementen/EventNotifier.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- EventNotifier.java 21 Nov 2007 12:45:10 -0000 1.18
+++ EventNotifier.java 20 Mar 2008 12:52:35 -0000 1.19
@@ -301,9 +301,15 @@
}
public String groupEventConfirmationPeriodExpired(Cloud cloud) {
-
String logMessage = "";
+
+ // groupevent confirmationperiod expired notifications are only sent on
monday
+ Calendar rightNow = Calendar.getInstance();
+ int day = rightNow.get(Calendar.DAY_OF_WEEK);
+
+ if (day == Calendar.MONDAY) {
int nEmailSend = 0;
+
try {
// list all the group subscription:
// - not confirmed
@@ -337,6 +343,10 @@
log.info(e);
}
logMessage += "\n<br>Number of groupevent confirmationperiod expired
send " + nEmailSend;
+ }
+ else {
+ logMessage += "\n<br>Groupevent confirmationperiod expired
notifications are only send on monday";
+ }
return logMessage;
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs