public final class NotificationService extends Object
| Modifier and Type | Method and Description |
|---|---|
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
|
public static NotificationService getService()
NotificationServiceNotificationServicepublic Notification findByPrimaryKey(int nIdNotification)
nIdNotification - the id notificationNotificationpublic int create(Notification notification)
notification - the notificationpublic 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 filterNotificationpublic List<Notification> findNotificationsByUserGuid(String strUserGuidReceiver, int nIdFolder)
strUserGuidReceiver - the user guid receivernIdFolder - the id folderNotificationpublic int getNumberNotifications(int nIdFolder,
String strUserGuidReceiver)
nIdFolder - the id folderstrUserGuidReceiver - the user guid receiverpublic int getNumberUnreadNotifications(int nIdFolder,
String strUserGuidReceiver)
nIdFolder - the id folderstrUserGuidReceiver - the user guid receiverpublic fr.paris.lutece.util.ReferenceList getUsers()
ReferenceListpublic void notify(String strUserGuidReceiver, String strObject, String strMessage)
strUserGuidReceiver - the receiverstrObject - the Object of the messagestrMessage - the messagepublic void notify(String strSender, String strUserGuidReceiver, String strObject, String strMessage)
strSender - the senderstrUserGuidReceiver - the receiverstrObject - the Object of the messagestrMessage - the messageCopyright © 2017 City of Paris. All rights reserved.