|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.crm.service.notification.NotificationService
public class NotificationService
NotificationService
Constructor Summary | |
---|---|
protected |
NotificationService()
Constructor |
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 |
int |
getNumberNotifications(int nIdDemand)
Get the number of notifications of a demand |
int |
getNumberUnreadNotifications(int nIdDemand)
Get the number of unread notifications of a demand |
static NotificationService |
getService()
Get the instance of NotificationService |
void |
remove(int nIdNotification)
Remove the notification |
void |
removeByIdDemand(int nIdDemand)
Remove the notifications from a given ID demand |
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 |
Constructor Detail |
---|
protected NotificationService()
Method Detail |
---|
public static NotificationService getService()
NotificationService
NotificationService
public Notification findByPrimaryKey(int nIdNotification)
nIdNotification
- the id notification
Notification
public int create(Notification notification)
notification
- the notification
public void update(Notification notification)
notification
- the notificationpublic void remove(int nIdNotification)
nIdNotification
- the id notificationpublic void removeByIdDemand(int nIdDemand)
nIdDemand
- the id demandpublic List<Notification> findAll()
Notification
public List<Notification> findByFilter(NotificationFilter nFilter)
nFilter
- the filter
Notification
public int getNumberUnreadNotifications(int nIdDemand)
nIdDemand
- the id demand
public int getNumberNotifications(int nIdDemand)
nIdDemand
- the id demand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |