Class NotificationContentDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.notificationstore.business.NotificationContentDAO
-
- All Implemented Interfaces:
INotificationContentDAO
public final class NotificationContentDAO extends java.lang.Object implements INotificationContentDAO
This class provides Data Access methods for NotificationContent objects
-
-
Constructor Summary
Constructors Constructor Description NotificationContentDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nNotificationContentId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(NotificationContent notificationContent, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.NotificationContentload(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<NotificationContent>selectNotificationContentsByIdAndTypeNotification(int nIdNotification, java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.EnumNotificationType> listNotificationType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data by id notification and notification typejava.util.List<NotificationContent>selectNotificationContentsByIdNotification(int nIdNotification, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data by id notification and returns them as a Listjava.util.List<NotificationContent>selectNotificationContentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the notificationContent objects and returns them as a Listvoidstore(NotificationContent notificationContent, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the tablevoidupdateStatusId(int nNewStatusId, int nTemporaryStatusId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update nofications status
-
-
-
Method Detail
-
insert
public void insert(NotificationContent notificationContent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceINotificationContentDAO- Parameters:
notificationContent- instance of the NotificationContent object to inssertplugin- the Plugin
-
load
public NotificationContent load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceINotificationContentDAOplugin- the Plugin- Returns:
- The instance of the notificationContent
-
delete
public void delete(int nNotificationContentId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceINotificationContentDAO- Parameters:
nNotificationContentId- int identifier of the NotificationContent to deleteplugin- the Plugin
-
store
public void store(NotificationContent notificationContent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceINotificationContentDAO- Parameters:
notificationContent- the reference of the NotificationContentplugin- the Plugin
-
selectNotificationContentsList
public java.util.List<NotificationContent> selectNotificationContentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the notificationContent objects and returns them as a List- Specified by:
selectNotificationContentsListin interfaceINotificationContentDAO- Parameters:
plugin- the Plugin- Returns:
- The List which contains the data of all the notificationContent objects
-
selectNotificationContentsByIdNotification
public java.util.List<NotificationContent> selectNotificationContentsByIdNotification(int nIdNotification, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:INotificationContentDAOLoad the data by id notification and returns them as a List- Specified by:
selectNotificationContentsByIdNotificationin interfaceINotificationContentDAO- Parameters:
nIdNotification- the id notification- Returns:
- The List which contains the data of all the notificationContent objects
-
selectNotificationContentsByIdAndTypeNotification
public java.util.List<NotificationContent> selectNotificationContentsByIdAndTypeNotification(int nIdNotification, java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.EnumNotificationType> listNotificationType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:INotificationContentDAOLoad the data by id notification and notification type- Specified by:
selectNotificationContentsByIdAndTypeNotificationin interfaceINotificationContentDAO- Parameters:
nIdNotification- the id notificationlistNotificationType- the list of notification types- Returns:
- The List which contains the data of all the notificationContent objects
-
updateStatusId
public void updateStatusId(int nNewStatusId, int nTemporaryStatusId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:INotificationContentDAOUpdate nofications status- Specified by:
updateStatusIdin interfaceINotificationContentDAO- Parameters:
nNewStatusId- the new status idnTemporaryStatusId- This nTemporaryStatusId is allows to filter on the notifications to be updated
-
-