Class AppointmentHome
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.business.appointment.AppointmentHome
-
public final class AppointmentHome extends java.lang.ObjectThis class provides instances management methods for Appointment objects- Author:
- Laurent Payen
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Appointmentcreate(Appointment appointment)Create an instance of the Appointment classstatic voiddelete(int nKey)Delete the Appointment whose identifier is specified in parameterstatic java.util.List<Appointment>findByFilter(AppointmentFilterDTO appointmentFilter)Returns a list of appointment matching the filterstatic java.util.List<Appointment>findByGuidUser(java.lang.String strGuidUser)Return the appointments of a user by Guidstatic java.util.List<Appointment>findByIdForm(int nIdForm)Return a list of appointment of a formstatic java.util.List<Appointment>findByIdSlot(int nIdSlot)Return the appointments of a slotstatic java.util.List<Appointment>findByIdUser(int nIdUser)Return the appointments of a userstatic java.util.List<Appointment>findByListIdSlot(java.util.List<java.lang.Integer> listIdSlot)Returns the list of appointments of a slotstatic java.util.List<Appointment>findByMailAndCategory(int nIdCategory, java.lang.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(java.lang.String strReference)Return an instance of the Appointment whose reference is specified in parameterstatic java.util.List<java.lang.Integer>findIdsByFilter(AppointmentFilterDTO appointmentFilter)static java.util.List<java.lang.Integer>selectAllAppointmentId()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 Detail
-
create
public static Appointment create(Appointment appointment)
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
public static Appointment update(Appointment appointment)
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
public static void updateAppointmentDate(Appointment appointment)
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
public static Appointment findByPrimaryKey(int nKey)
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
public static Appointment findByReference(java.lang.String strReference)
Return an instance of the Appointment whose reference is specified in parameter- Parameters:
strReference- The Appointment reference- Returns:
- an instance of the Appointment
-
findByIdUser
public static java.util.List<Appointment> findByIdUser(int nIdUser)
Return the appointments of a user- Parameters:
nIdUser- the User Id- Returns:
- a list of the user appointments
-
findByGuidUser
public static java.util.List<Appointment> findByGuidUser(java.lang.String strGuidUser)
Return the appointments of a user by Guid- Parameters:
nIdUser- the User Guid- Returns:
- a list of the user appointments
-
findByIdSlot
public static java.util.List<Appointment> findByIdSlot(int nIdSlot)
Return the appointments of a slot- Parameters:
nIdSlot-- Returns:
- a list of the appointments of the slot
-
findByListIdSlot
public static java.util.List<Appointment> findByListIdSlot(java.util.List<java.lang.Integer> listIdSlot)
Returns the list of appointments of a slot- Parameters:
listIdSlot- the list Slot Idplugin- the plugin- Returns:
- a list of the appointments
-
findByIdForm
public static java.util.List<Appointment> findByIdForm(int nIdForm)
Return a list of appointment of a form- Parameters:
nIdForm- the form id- Returns:
- the list of the appointments
-
findByFilter
public static java.util.List<Appointment> findByFilter(AppointmentFilterDTO appointmentFilter)
Returns a list of appointment matching the filter- Parameters:
appointmentFilter- the filter- Returns:
- a list of appointments
-
findIdsByFilter
public static java.util.List<java.lang.Integer> findIdsByFilter(AppointmentFilterDTO appointmentFilter)
-
findByMailAndCategory
public static java.util.List<Appointment> findByMailAndCategory(int nIdCategory, java.lang.String mail)
Find a list of appointments by id category and mail- Parameters:
nIdCategory- the id categorymail- the mail- Returns:
- list of appointments
-
selectAllAppointmentId
public static java.util.List<java.lang.Integer> selectAllAppointmentId()
returns a list of all appointment ids.- Parameters:
plugin-- Returns:
-
-