com.jalios.jcms
Class NotificationManager
java.lang.Object
com.jalios.jcms.NotificationManager
- All Implemented Interfaces:
- JcmsConstants, JaliosConstants
public class NotificationManager
- extends Object
- implements JcmsConstants
This class is instantiated by a Channel
in method initAfterLoad()
only if property 'notification.enabled' is set to true.
The NotificationManager
handles 4 alarms, one per hour, one per
day, one per week, one per month. A single AlarmManager listens to these alarms and launches notifications
threads (@see NotificationThread) each time an alarm is fired.
CAUTION: NotificationThread checks the server is not 127.0.0.1 nor localhost, to avoid emails
being sent by mistake while staging.
- Version:
- $Revision: 22248 $
Fields inherited from interface com.jalios.jcms.JcmsConstants |
ADATE_SEARCH, ADMIN_NOTES_PROP, ADVANCED_TAB, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, CRYPT_MD5, CRYPT_UNDEFINED, CRYPT_UNIX, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DAILY_MAIL_ALERT, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, ICON_ARCHIVE, ICON_LOCK, ICON_LOCK_STRONG, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, JALIOS_JUNIT_PROP, JCMS_CADDY, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, LOG_FILE, LOG_TOPIC_SECURITY, LOGGER_PROP, LOGGER_XMLPROP, MBR_PHOTO_DIR, MDATE_SEARCH, MONITOR_XML, MONTHLY_MAIL_ALERT, NO_MAIL_ALERT, OP_CREATE, OP_DEEP_COPY, OP_DEEP_DELETE, OP_DELETE, OP_MERGE, OP_UPDATE, PDATE_SEARCH, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_WIDTH, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_WIDTH, PHOTO_TINY_HEIGHT, PHOTO_TINY_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, STATS_REPORT_DIR, STATUS_PROP, STORE_XML, TEMPLATE_TAB, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_WIDTH, UDATE_SEARCH, UPDATE_RIGHT_TAB, UPLOAD_DIR, URL_REGEXP, WARNING_MSG, WEBAPP_PROP, WEEKLY_MAIL_ALERT, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XML |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REVISION
public static final String REVISION
- See Also:
- Constant Field Values
alarmMgr
protected AlarmManager alarmMgr
channel
protected Channel channel
USE_CRITERIA_GROUP_AND_MEMBER
public static final int USE_CRITERIA_GROUP_AND_MEMBER
- See Also:
- Constant Field Values
USE_CRITERIA_MEMBER_ONLY
public static final int USE_CRITERIA_MEMBER_ONLY
- See Also:
- Constant Field Values
USE_CRITERIA_GROUP_ONLY
public static final int USE_CRITERIA_GROUP_ONLY
- See Also:
- Constant Field Values
HOURLY
public static final int HOURLY
- See Also:
- Constant Field Values
DAILY
public static final int DAILY
- See Also:
- Constant Field Values
WEEKLY
public static final int WEEKLY
- See Also:
- Constant Field Values
MONTHLY
public static final int MONTHLY
- See Also:
- Constant Field Values
MINUTED
public static final int MINUTED
- See Also:
- Constant Field Values
PERIODS_1
public static final int[] PERIODS_1
PERIODS_2
public static final int[] PERIODS_2
MUTATION_CREATE
public static final int MUTATION_CREATE
- See Also:
- Constant Field Values
MUTATION_MAJOR
public static final int MUTATION_MAJOR
- See Also:
- Constant Field Values
MUTATION_ALL
public static final int MUTATION_ALL
- See Also:
- Constant Field Values
MUTATION_TYPES
public static final int[] MUTATION_TYPES
PERIOD_LABELS
public static final String[] PERIOD_LABELS
CHANGES
public static final String CHANGES
- See Also:
- Constant Field Values
DELETIONS
public static final String DELETIONS
- See Also:
- Constant Field Values
reinit
protected int reinit
- Variable used to reinitialize the NotificationManager in case a PastDateException is thrown in
initialization stage.
minuteAlarmEntry
protected AlarmEntry minuteAlarmEntry
hourAlarmEntry
protected AlarmEntry hourAlarmEntry
dayAlarmEntry
protected AlarmEntry dayAlarmEntry
weekAlarmEntry
protected AlarmEntry weekAlarmEntry
monthAlarmEntry
protected AlarmEntry monthAlarmEntry
NotificationManager
public NotificationManager()
init
public void init()
processNotification
public void processNotification(int period)
- Launches a thread that notifies all members who have requested
to be alerted of specific changes at each period.
- Parameters:
period
- The period type
getAvailablePeriods
public static int[] getAvailablePeriods()
getAvailableMutationTypes
public static int[] getAvailableMutationTypes()
getPeriodLabels
public static String[] getPeriodLabels()
getPeriodLabel
public static String getPeriodLabel(int period)
getMutationTypeLabel
public static String getMutationTypeLabel(int mutationType)
getNotificationCriteria
public static NotificationCriteria[] getNotificationCriteria(Member member)
getGroupsCriteriaSet
public static Set<NotificationCriteria> getGroupsCriteriaSet(Member member)
Copyright © 2001-2007 Jalios SA. All Rights Reserved.