|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.agila.services.notification.AbstractNotificationService
public abstract class AbstractNotificationService
Constructor Summary | |
---|---|
AbstractNotificationService()
|
Method Summary | |
---|---|
protected abstract NotificationImpl |
createNew(UserID userID,
java.lang.String msg)
Creates a new notification |
void |
dismissNotification(NotificationID id)
Dismiss a notification. |
protected abstract NotificationImpl |
get(NotificationID id)
Query the specific notification. |
protected abstract java.util.List |
getForUserID(UserID id)
Query all notifications for a given user. |
Notification |
getNotification(NotificationID id)
Get notification. |
java.util.List |
getNotificationsForUser(UserID id)
|
NotificationID |
notify(UserID userID,
java.lang.String message)
Create a notification for a designated user. |
protected abstract boolean |
save(Notification notification)
Update the notification info. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractNotificationService()
Method Detail |
---|
public java.util.List getNotificationsForUser(UserID id)
getNotificationsForUser
in interface NotificationService
public void dismissNotification(NotificationID id)
dismissNotification
in interface NotificationService
id
- the id of the notification to be dismissedpublic Notification getNotification(NotificationID id)
getNotification
in interface NotificationService
id
- the id of the notification to be retrievedpublic NotificationID notify(UserID userID, java.lang.String message)
notify
in interface NotificationService
userID
- the user to notifymessage
- the notification message
protected abstract NotificationImpl createNew(UserID userID, java.lang.String msg)
userID
- msg
-
protected abstract boolean save(Notification notification)
notification
-
protected abstract NotificationImpl get(NotificationID id)
id
-
protected abstract java.util.List getForUserID(UserID id)
id
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |