|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.apps.groupspace.announcements.poller.controls.AnnouncementsPollerControlImpl
public class AnnouncementsPollerControlImpl
Copyright (c) 2005-2006 by BEA Systems, Inc. All Rights Reserved.
Field Summary | |
---|---|
protected AnnouncementsPollerCmxControl |
announcementsBeanX
|
protected org.apache.beehive.controls.api.context.ControlBeanContext |
controlContext
Control context |
Constructor Summary | |
---|---|
AnnouncementsPollerControlImpl()
|
Method Summary | |
---|---|
long |
cleanExpiredAnnouncements()
Searches for all expired application announcements and physically removes them from CM. |
long |
notifyPendingAnnouncements()
Searches all application related announcements for all communities and sends notifications for those announcements. |
void |
onCreate()
Put any other init params here. |
void |
remove(Announcement ann)
|
boolean |
sendNotification(Announcement ann,
boolean updateAnnouncement)
Sends an announcement notification based on the provided announcement. |
void |
sendNotification(Announcement ann,
String username)
Sends an announcement notification based on the provided announcement to the provided user only. |
void |
update(Announcement ann)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.apache.beehive.controls.api.context.ControlBeanContext controlContext
protected AnnouncementsPollerCmxControl announcementsBeanX
Constructor Detail |
---|
public AnnouncementsPollerControlImpl()
Method Detail |
---|
public void update(Announcement ann) throws AuthorizationException, NoSuchNodeException, NoSuchPropertyException, RepositoryException
AuthorizationException
NoSuchNodeException
NoSuchPropertyException
RepositoryException
public void remove(Announcement ann) throws AuthorizationException, NoSuchNodeException, NoSuchPropertyException, RepositoryException
AuthorizationException
NoSuchNodeException
NoSuchPropertyException
RepositoryException
public long notifyPendingAnnouncements() throws Exception
This method should only be called from the announcement poller, using the timer services built within the application container.
notifyPendingAnnouncements
in interface AnnouncementsPollerControl
Exception
public long cleanExpiredAnnouncements() throws Exception
This method should only be called from the announcement poller, using the timer services built within the application container.
cleanExpiredAnnouncements
in interface AnnouncementsPollerControl
Exception
public boolean sendNotification(Announcement ann, boolean updateAnnouncement)
If this criteria is not satisfied, then a notification will not be sent.
sendNotification
in interface AnnouncementsPollerControl
ann
- The announcement which to send the notification on.updateAnnouncement
- Indicates whether to update the notification date
and timestamp property on the announcement. If false, the caller is responsible
for doing so (if applicable).
public void sendNotification(Announcement ann, String username)
sendNotification
in interface AnnouncementsPollerControl
ann
- The announcement to send the notification on (required).username
- The wls username of the current user (required).public void onCreate() throws org.apache.beehive.controls.api.ControlException
org.apache.beehive.controls.api.ControlException
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |