Package org.opencms.notification
Class CmsNotificationCandidates
java.lang.Object
org.opencms.notification.CmsNotificationCandidates
The basic class for the content notification feature in OpenCms. Collects all resources that require a notification,
creates and sends notifications to their responsible users.
-
Constructor Summary
ConstructorDescriptionCollects all resources that will expire in short time, or will become valid, or are not modified since a long time. -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<CmsContentNotification>
Returns a collection of CmsContentNotifications, one for each responsible that receives a notification.Sends all notifications to the responsible users.
-
Constructor Details
-
CmsNotificationCandidates
Collects all resources that will expire in short time, or will become valid, or are not modified since a long time.- Parameters:
cms
- the CmsObject- Throws:
CmsException
- if something goes wrong
-
-
Method Details
-
notifyResponsibles
Sends all notifications to the responsible users.- Returns:
- a string listing all responsibles that a notification was sent to
- Throws:
CmsException
- if something goes wrong
-
getContentNotifications
Returns a collection of CmsContentNotifications, one for each responsible that receives a notification.- Returns:
- the list of CmsContentNotifications, one for each responsible that receives a notification
- Throws:
CmsException
- if something goes wrong
-