|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jalios.jcms.alert.AlertManager
public class AlertManager
Field Summary |
---|
Fields inherited from interface com.jalios.jcms.alert.AlertConstants |
---|
HTML_MARKUP, MSG_PREFIX_PROP, NAME_PREFIX_PROP, TEXT_MARKUP, WIKI_MARKUP |
Fields inherited from interface com.jalios.util.JPropertiesListener |
---|
REVISION |
Fields inherited from interface com.jalios.util.JaliosConstants |
---|
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR, REVISION |
Method Summary | |
---|---|
void |
addAlertChannel(AlertChannel alertChannel)
Adds the given AlertChannel |
AlertChannel |
getAlertChannel(String name)
Returns the AlertChannel with the given name. |
List<AlertChannel> |
getAlertChannelList()
Returns the list of all available AlertChannel. |
List<AlertChannel> |
getAlertChannelList(Member mbr)
Returns the list of available AlertChannel for the given member. |
Set<AlertChannel> |
getAlertChannelSet(Alert alert)
Returns the set of AlertChannel matching the given alert. |
int |
getAlertCount(Member mbr)
Returns the count of Alert the given member is a recipient. |
List<Alert.Level> |
getAlertLevelList()
Returns the list of Alert.Level. |
List<Alert> |
getAlertList(Member mbr)
Returns the list of Alert the given member is a recipient. |
List<Alert> |
getAlertList(Member mbr,
Alert.Level level,
Boolean read)
Returns the list of Alert the given member is a recipient. |
Set<AlertChannel> |
getDefaultAlertChannelSet()
Returns the set of default AlertChannel. |
static AlertManager |
getInstance()
|
AlertChannel |
getMailAlertChannel()
Returns the MailAlertChannel |
Alert.Level |
getMaxUnreadAlertLevel(Member mbr)
Returns the highest alert level the given member is a recipient. |
List<Alert> |
getOldAlertList()
Returns the list of old alerts. |
int |
getUnreadAlertCount(Member mbr)
Returns the count of unread Alert the given member is a recipient. |
AlertChannel |
getWebAlertChannel()
Returns the WebAlertChannel |
void |
invalidateCacheEntries(String mid)
Invalidate the cache entries for the given member. |
void |
markAsRead(Alert alert,
Member loggedMember)
Marks the given alert as read and updates it. |
void |
markAsUnread(Alert alert,
Member loggedMember)
Marks the given alert as unread and updates it. |
void |
propertiesChange(JProperties properties)
Invoked after properties have been modified in JCMS and save on disk. |
void |
purgeAlerts()
Purge old alerts. |
void |
removeAlertChannel(AlertChannel alertChannel)
Removes the given AlertChannel |
void |
sendAlert(Alert alert)
Send the given alert |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AlertManager getInstance()
public void propertiesChange(JProperties properties)
JPropertiesListener
You cannot alter the value received in parameters.
propertiesChange
in interface JPropertiesListener
properties
- the properties which have been modified (may not contain all JCMS properties)public void addAlertChannel(AlertChannel alertChannel)
alertChannel
- the AlertChannel to addpublic void removeAlertChannel(AlertChannel alertChannel)
alertChannel
- the AlertChannel to removepublic void sendAlert(Alert alert)
alert
- the Alertpublic List<Alert.Level> getAlertLevelList()
public AlertChannel getAlertChannel(String name)
name
- the name of the AlertChannel
public AlertChannel getMailAlertChannel()
public AlertChannel getWebAlertChannel()
public List<AlertChannel> getAlertChannelList()
public List<AlertChannel> getAlertChannelList(Member mbr)
mbr
- the member
public Set<AlertChannel> getDefaultAlertChannelSet()
public Set<AlertChannel> getAlertChannelSet(Alert alert)
alert
- the alert
public List<Alert> getAlertList(Member mbr)
mbr
- the member
public List<Alert> getAlertList(Member mbr, Alert.Level level, Boolean read)
mbr
- the memberlevel
- the alert level. Null means any level.read
- true for read alerts, false for not read alerts, null for read or not read alerts.
public int getAlertCount(Member mbr)
mbr
- the member
public int getUnreadAlertCount(Member mbr)
mbr
- the member
public Alert.Level getMaxUnreadAlertLevel(Member mbr)
mbr
- the member
public void markAsRead(Alert alert, Member loggedMember)
alert
- the alertloggedMember
- the logged memberpublic void markAsUnread(Alert alert, Member loggedMember)
alert
- the alertloggedMember
- the logged memberpublic void purgeAlerts()
public List<Alert> getOldAlertList()
public void invalidateCacheEntries(String mid)
mid
- the member's id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |