Class AppointmentHome
java.lang.Object
fr.paris.lutece.plugins.appointment.business.appointment.AppointmentHome
This class provides instances management methods for Appointment objects
- Author:
- Laurent Payen
-
Method Summary
Modifier and TypeMethodDescriptionstatic Appointmentcreate(Appointment appointment) Create an instance of the Appointment classstatic voiddelete(int nKey) Delete the Appointment whose identifier is specified in parameterstatic List<Appointment>findByFilter(AppointmentFilterDTO appointmentFilter) Returns a list of appointment matching the filterstatic List<Appointment>findByGuidUser(String strGuidUser) Return the appointments of a user by Guidstatic List<Appointment>findByIdForm(int nIdForm) Return a list of appointment of a formstatic List<Appointment>findByIdSlot(int nIdSlot) Return the appointments of a slotstatic List<Appointment>findByIdUser(int nIdUser) Return the appointments of a userstatic List<Appointment>findByListIdSlot(List<Integer> listIdSlot) Returns the list of appointments of a slotstatic List<Appointment>findByMailAndCategory(int nIdCategory, String mail) Find a list of appointments by id category and mailstatic AppointmentfindByPrimaryKey(int nKey) Return an instance of the Appointment whose identifier is specified in parameterstatic AppointmentfindByReference(String strReference) Return an instance of the Appointment whose reference is specified in parameterfindIdsByFilter(AppointmentFilterDTO appointmentFilter) returns a list of all appointment ids.static Appointmentupdate(Appointment appointment) Update of the Appointment which is specified in parameterstatic voidupdateAppointmentDate(Appointment appointment) Update date appointment, update AppointmentSlot
-
Method Details
-
create
Create an instance of the Appointment class- Parameters:
appointment- The instance of the Appointment which contains the informations to store- Returns:
- The instance of the Appointment which has been created with its primary key.
-
update
Update of the Appointment which is specified in parameter- Parameters:
appointment- The instance of the Appointment which contains the data to store- Returns:
- The instance of the Appointment which has been updated
-
updateAppointmentDate
Update date appointment, update AppointmentSlot- Parameters:
appointment- the appointmentplugin- the plugin
-
delete
public static void delete(int nKey) Delete the Appointment whose identifier is specified in parameter- Parameters:
nKey- The appointment Id
-
findByPrimaryKey
Return an instance of the Appointment whose identifier is specified in parameter- Parameters:
nKey- The Appointment primary key- Returns:
- an instance of the Appointment
-
findByReference
Return an instance of the Appointment whose reference is specified in parameter- Parameters:
strReference- The Appointment reference- Returns:
- an instance of the Appointment
-
findByIdUser
Return the appointments of a user- Parameters:
nIdUser- the User Id- Returns:
- a list of the user appointments
-
findByGuidUser
Return the appointments of a user by Guid- Parameters:
nIdUser- the User Guid- Returns:
- a list of the user appointments
-
findByIdSlot
Return the appointments of a slot- Parameters:
nIdSlot-- Returns:
- a list of the appointments of the slot
-
findByListIdSlot
Returns the list of appointments of a slot- Parameters:
listIdSlot- the list Slot Idplugin- the plugin- Returns:
- a list of the appointments
-
findByIdForm
Return a list of appointment of a form- Parameters:
nIdForm- the form id- Returns:
- the list of the appointments
-
findByFilter
Returns a list of appointment matching the filter- Parameters:
appointmentFilter- the filter- Returns:
- a list of appointments
-
findIdsByFilter
-
findByMailAndCategory
Find a list of appointments by id category and mail- Parameters:
nIdCategory- the id categorymail- the mail- Returns:
- list of appointments
-
selectAllAppointmentId
returns a list of all appointment ids.- Parameters:
plugin-- Returns:
-