Class TaskNotifyReminderConfigHome
- java.lang.Object
-
- fr.paris.lutece.plugins.genericalert.business.TaskNotifyReminderConfigHome
-
public final class TaskNotifyReminderConfigHome extends Object
This class provides instances management methods (create, find, ...) for TaskReminderConfig objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TaskNotifyReminderConfigcreate(TaskNotifyReminderConfig taskReminderConfig)Create an instance of the taskReminderConfig classstatic TaskNotifyReminderConfigfindByIdForm(int nKey, int idForm)static TaskNotifyReminderConfigfindByPrimaryKey(int nKey)Returns an instance of a taskReminderConfig whose identifier is specified in parameterstatic Collection<Integer>getIdTaskReminderConfigsList()Load the id of all the taskReminderConfig objects and returns them in form of a collectionstatic Collection<TaskNotifyReminderConfig>getTaskReminderConfigsList()Load the data of all the taskReminderConfig objects and returns them in form of a collectionstatic TaskNotifyReminderConfigloadConfigByIdForm(int idForm)static List<ReminderAppointment>loadListReminderAppointment(int idTask, int nAppointmentFormId)static List<TaskNotifyReminderConfig>loadListTaskNotifyConfig(int idTask)static voidremove(int nKey)Remove the taskReminderConfig whose identifier is specified in parameterstatic voidremoveAppointmentReminder(int idTask, int nAppointmentFormId, int rank, boolean bool)Remove a Appointment Reminderstatic TaskNotifyReminderConfigupdate(TaskNotifyReminderConfig taskReminderConfig)Update of the taskReminderConfig which is specified in parameter
-
-
-
Method Detail
-
create
public static TaskNotifyReminderConfig create(TaskNotifyReminderConfig taskReminderConfig)
Create an instance of the taskReminderConfig class- Parameters:
taskReminderConfig- The instance of the TaskReminderConfig which contains the informations to store- Returns:
- The instance of taskReminderConfig which has been created with its primary key.
-
update
public static TaskNotifyReminderConfig update(TaskNotifyReminderConfig taskReminderConfig)
Update of the taskReminderConfig which is specified in parameter- Parameters:
taskReminderConfig- The instance of the TaskReminderConfig which contains the data to store- Returns:
- The instance of the taskReminderConfig which has been updated
-
remove
public static void remove(int nKey)
Remove the taskReminderConfig whose identifier is specified in parameter- Parameters:
nKey- The taskReminderConfig Id
-
findByPrimaryKey
public static TaskNotifyReminderConfig findByPrimaryKey(int nKey)
Returns an instance of a taskReminderConfig whose identifier is specified in parameter- Parameters:
nKey- The taskReminderConfig primary key- Returns:
- an instance of TaskReminderConfig
-
getTaskReminderConfigsList
public static Collection<TaskNotifyReminderConfig> getTaskReminderConfigsList()
Load the data of all the taskReminderConfig objects and returns them in form of a collection- Returns:
- the collection which contains the data of all the taskReminderConfig objects
-
getIdTaskReminderConfigsList
public static Collection<Integer> getIdTaskReminderConfigsList()
Load the id of all the taskReminderConfig objects and returns them in form of a collection- Returns:
- the collection which contains the id of all the taskReminderConfig objects
-
removeAppointmentReminder
public static void removeAppointmentReminder(int idTask, int nAppointmentFormId, int rank, boolean bool)Remove a Appointment Reminder- Parameters:
idTask- the id tasknAppointmentFormId- id form appointmentrank- the rankbool- to delete all reminders
-
loadListReminderAppointment
public static List<ReminderAppointment> loadListReminderAppointment(int idTask, int nAppointmentFormId)
- Parameters:
idTask- the id tasknAppointmentFormId- id form- Returns:
- list ReminderAppointment
-
findByIdForm
public static TaskNotifyReminderConfig findByIdForm(int nKey, int idForm)
- Parameters:
nKey- id taskidForm- id form- Returns:
- TaskNotifyReminderConfig the config
-
loadListTaskNotifyConfig
public static List<TaskNotifyReminderConfig> loadListTaskNotifyConfig(int idTask)
- Parameters:
idTask- the id task- Returns:
- list TaskNotifyReminderConfig
-
loadConfigByIdForm
public static TaskNotifyReminderConfig loadConfigByIdForm(int idForm)
- Parameters:
idForm- the id form- Returns:
- TaskNotifyReminderConfig the config
-
-