Class NotificationContentHome
- java.lang.Object
-
- fr.paris.lutece.plugins.notificationstore.business.NotificationContentHome
-
public final class NotificationContentHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for NotificationContent objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.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 java.util.List<NotificationContent>getNotificationContentsByIdAndTypeNotification(int nIdNotification, java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.EnumNotificationType> listNotificationType)Load the data by id notification and notification typestatic java.util.List<NotificationContent>getNotificationContentsByIdNotification(int nIdNotification)Load the data by id notification and returns them in form of a liststatic java.util.List<NotificationContent>getNotificationContentsList()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 Detail
-
create
public static NotificationContent create(NotificationContent notificationContent)
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 java.util.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
public static NotificationContent update(NotificationContent notificationContent)
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
public static NotificationContent findByPrimaryKey(int nKey)
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
public static java.util.List<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 java.util.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 java.util.List<NotificationContent> getNotificationContentsByIdAndTypeNotification(int nIdNotification, java.util.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
-
-