Class NotificationContentHome
java.lang.Object
fr.paris.lutece.plugins.notificationstore.business.NotificationContentHome
This class provides instances management methods (create, find, ...) for NotificationContent objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<NotificationContent>create(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification) Create an instance of the notificationContent classstatic NotificationContentcreate(NotificationContent notificationContent) Create an instance of the notificationContent classstatic NotificationContentfindByPrimaryKey(int nKey) Returns an instance of a notificationContent whose identifier is specified in parameterstatic List<NotificationContent>getNotificationContentsByIdAndTypeNotification(int nIdNotification, List<fr.paris.lutece.plugins.grubusiness.business.notification.EnumNotificationType> listNotificationType) Load the data by id notification and notification typestatic List<NotificationContent>getNotificationContentsByIdNotification(int nIdNotification) Load the data by id notification and returns them in form of a liststatic List<NotificationContent>Load the data of all the notificationContent objects and returns them in form of a liststatic voidremove(int nNotificationContentId) Remove the notificationContent whose identifier is specified in parameterstatic NotificationContentupdate(NotificationContent notificationContent) Update of the notificationContent which is specified in parameterstatic voidupdateStatusId(int nNewStatusId, int nTemporaryStatusId) Update the record in the table
-
Method Details
-
create
Create an instance of the notificationContent class- Parameters:
notificationContent- The instance of the NotificationContent which contains the informations to storeplugin- the Plugin- Returns:
- The instance of notificationContent which has been created with its primary key.
-
create
public static List<NotificationContent> create(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification) Create an instance of the notificationContent class- Parameters:
notificationContent- The instance of the NotificationContent which contains the informations to storeplugin- the Plugin- Returns:
- The instance of notificationContent which has been created with its primary key.
-
update
Update of the notificationContent which is specified in parameter- Parameters:
notificationContent- The instance of the NotificationContent which contains the data to storeplugin- the Plugin- Returns:
- The instance of the notificationContent which has been updated
-
updateStatusId
public static void updateStatusId(int nNewStatusId, int nTemporaryStatusId) Update the record in the table- Parameters:
nNewStatusId- the new status idnTemporaryStatusId- This nTemporaryStatusId is allows to filter on the notifications to be updated
-
remove
public static void remove(int nNotificationContentId) Remove the notificationContent whose identifier is specified in parameter- Parameters:
nNotificationContentId- The notificationContent Idplugin- the Plugin
-
findByPrimaryKey
Returns an instance of a notificationContent whose identifier is specified in parameter- Parameters:
nKey- The notificationContent primary keyplugin- the Plugin- Returns:
- an instance of NotificationContent
-
getNotificationContentsList
Load the data of all the notificationContent objects and returns them in form of a list- Returns:
- the list which contains the data of all the notificationContent objects
-
getNotificationContentsByIdNotification
public static List<NotificationContent> getNotificationContentsByIdNotification(int nIdNotification) Load the data by id notification and returns them in form of a list- Parameters:
nIdNotification- the id notification- Returns:
- the list which contains the data by id notification
-
getNotificationContentsByIdAndTypeNotification
public static List<NotificationContent> getNotificationContentsByIdAndTypeNotification(int nIdNotification, List<fr.paris.lutece.plugins.grubusiness.business.notification.EnumNotificationType> listNotificationType) Load the data by id notification and notification type- Parameters:
nIdNotification- the id notification- Returns:
- the list which contains the data by id notification
-