|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.forum.expert.OpenQuestionMonitor
public class OpenQuestionMonitor
Service to monitor open questions. It periodically finds all questions that
were created a certain number of hours ago and that are in the
Question.State#open open state. It then sends an email alert to
a configurable list of email addresses.
| Method Summary | |
|---|---|
void |
categoryAdded(CategoryEvent event)
Fired when a category has been added to the system. |
void |
categoryDeleted(CategoryEvent event)
Fired when a category is about to be deleted from the system. |
void |
categoryModified(CategoryEvent event)
Fired when a category has been modified. |
void |
categoryMoved(CategoryEvent event)
Fired when a category has been moved from one category to another. |
void |
forumAdded(ForumEvent event)
Fired when a forum has been added to the system. |
void |
forumDeleted(ForumEvent event)
Fired when a forum is about to be deleted from the system. |
void |
forumMerged(ForumEvent event)
Fired when a forum is merged into another forum. |
void |
forumModified(ForumEvent event)
Fired when a forum is modified. |
void |
forumMoved(ForumEvent event)
Fired when a forum has been moved from one category to another. |
OpenQuestionAlertSettings |
getAlertSettings(java.lang.Object forumElement)
Returns an OpenQuestionAlertSettings instance associated with the forumElement argument. forumElement
must be an instance of either Forum or ForumCategory, otherwise IllegalArgumentException
is thrown. |
java.lang.String |
getEmailSubject(java.util.Locale locale)
Returns the subject of the notification emails. |
java.lang.String |
getHTMLEmailBody(java.util.Locale locale)
Returns the HTML body of the nofication emails. |
static OpenQuestionMonitor |
getInstance()
|
java.lang.String |
getTextEmailBody(java.util.Locale locale)
Returns the plain-text body of the nofication emails. |
boolean |
isEnabled()
Returns true if the open question monitoring feature is enabled. |
void |
setAlertSettings(OpenQuestionAlertSettings alertSettings)
Commits changes made to an OpenQuestionAlertSettings instance. |
void |
setEmailSubject(java.lang.String emailSubject,
java.util.Locale locale)
Sets the subject of the nofitication emails. |
void |
setHTMLEmailBody(java.lang.String htmlEmailBody,
java.util.Locale locale)
Sets the HTML body of the nofication emails. |
void |
setTextEmailBody(java.lang.String textEmailBody,
java.util.Locale locale)
Sets the plain-text body of the nofication emails. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static OpenQuestionMonitor getInstance()
public OpenQuestionAlertSettings getAlertSettings(java.lang.Object forumElement)
OpenQuestionAlertSettings instance associated with the forumElement argument. forumElement
must be an instance of either Forum or ForumCategory, otherwise IllegalArgumentException
is thrown. If no settings instance is currently associated with the supplied Forum or Category, a new one will
be created and returned.
forumElement - an instance of either Forum or ForumCategory with which the returned
OpenQuestionAlertSettings will be associated.
OpenQuestionAlertSettings instance associated with the supplied Forum
or ForumCategory.
public void setAlertSettings(OpenQuestionAlertSettings alertSettings)
throws java.io.IOException
OpenQuestionAlertSettings instance. This should be called after any modifications
are made to the settings instance to ensure changes are persisted.
alertSettings - the OpenQuestionAlertSettings to persist.
java.io.IOException - if writing to the underlying persistent store fails.public void forumAdded(ForumEvent event)
ForumListener
forumAdded in interface ForumListenerevent - the event object.public void forumModified(ForumEvent event)
ForumListener
forumModified in interface ForumListenerevent - the event object.public void forumMoved(ForumEvent event)
ForumListener
forumMoved in interface ForumListenerevent - the event object.public void forumMerged(ForumEvent event)
ForumListener
forumMerged in interface ForumListenerevent - the event object.public void forumDeleted(ForumEvent event)
ForumListener
forumDeleted in interface ForumListenerevent - the event object.public void categoryAdded(CategoryEvent event)
CategoryListener
categoryAdded in interface CategoryListenerevent - the event object.public void categoryModified(CategoryEvent event)
CategoryListener
categoryModified in interface CategoryListenerevent - the event object.public void categoryMoved(CategoryEvent event)
CategoryListener
categoryMoved in interface CategoryListenerevent - the event object.public void categoryDeleted(CategoryEvent event)
CategoryListener
categoryDeleted in interface CategoryListenerevent - the event object.public boolean isEnabled()
public java.lang.String getEmailSubject(java.util.Locale locale)
locale -
public void setEmailSubject(java.lang.String emailSubject,
java.util.Locale locale)
emailSubject - the subject of notification emails.locale - public java.lang.String getTextEmailBody(java.util.Locale locale)
locale -
public void setTextEmailBody(java.lang.String textEmailBody,
java.util.Locale locale)
textEmailBody - the plain-text body of the notification emails.locale - public java.lang.String getHTMLEmailBody(java.util.Locale locale)
locale -
public void setHTMLEmailBody(java.lang.String htmlEmailBody,
java.util.Locale locale)
htmlEmailBody - the HTML body of the notification emails.locale -
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||