|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.mylutece.modules.notification.service.NotificationService
public final class NotificationService
NotificationService
| Method Summary | |
|---|---|
int |
create(Notification notification)
Create a notification |
List<Notification> |
findAll()
Find all notifications |
List<Notification> |
findByFilter(NotificationFilter nFilter)
Find notifications by a filter |
Notification |
findByPrimaryKey(int nIdNotification)
Find the notification by its primary key |
List<Notification> |
findNotificationsByUserGuid(String strUserGuidReceiver,
int nIdFolder)
Find the notifications from a given user guid |
int |
getNumberNotifications(int nIdFolder,
String strUserGuidReceiver)
Get the number of notifications of a demand |
int |
getNumberUnreadNotifications(int nIdFolder,
String strUserGuidReceiver)
Get the number of unread notifications of a demand |
static NotificationService |
getService()
Get the instance of NotificationService |
fr.paris.lutece.util.ReferenceList |
getUsers()
Get the list of LuteceUser |
void |
notify(String strUserGuidReceiver,
String strObject,
String strMessage)
Notify an user |
void |
notify(String strSender,
String strUserGuidReceiver,
String strObject,
String strMessage)
Notify an user |
void |
notifyAll(String strUserGuidSender,
String strObject,
String strMessage)
Notify all LuteceUser |
void |
remove(int nIdNotification)
Remove the notification |
void |
update(Notification notification)
Update the notification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static NotificationService getService()
NotificationService
NotificationServicepublic Notification findByPrimaryKey(int nIdNotification)
nIdNotification - the id notification
Notificationpublic int create(Notification notification)
notification - the notification
public void update(Notification notification)
notification - the notificationpublic void remove(int nIdNotification)
nIdNotification - the id notificationpublic List<Notification> findAll()
Notificationpublic List<Notification> findByFilter(NotificationFilter nFilter)
nFilter - the filter
Notification
public List<Notification> findNotificationsByUserGuid(String strUserGuidReceiver,
int nIdFolder)
strUserGuidReceiver - the user guid receivernIdFolder - the id folder
Notification
public int getNumberNotifications(int nIdFolder,
String strUserGuidReceiver)
nIdFolder - the id folderstrUserGuidReceiver - the user guid receiver
public int getNumberUnreadNotifications(int nIdFolder,
String strUserGuidReceiver)
nIdFolder - the id folderstrUserGuidReceiver - the user guid receiver
public fr.paris.lutece.util.ReferenceList getUsers()
ReferenceList
public void notify(String strUserGuidReceiver,
String strObject,
String strMessage)
strUserGuidReceiver - the receiverstrObject - the Object of the messagestrMessage - the message
public void notify(String strSender,
String strUserGuidReceiver,
String strObject,
String strMessage)
strSender - the senderstrUserGuidReceiver - the receiverstrObject - the Object of the messagestrMessage - the message
public void notifyAll(String strUserGuidSender,
String strObject,
String strMessage)
strUserGuidSender - the senderstrObject - the objectstrMessage - the message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||