fr.paris.lutece.plugins.appointment.business
Class AppointmentFormHome

java.lang.Object
  extended by fr.paris.lutece.plugins.appointment.business.AppointmentFormHome

public final class AppointmentFormHome
extends Object

This class provides instances management methods (create, find, ...) for AppointmentForm objects


Method Summary
static void create(AppointmentForm appointmentForm, AppointmentFormMessages formMessage)
          Create an appointment form and its associated appointment form message
static AppointmentForm findByPrimaryKey(int nAppointmentFormId)
          Returns an instance of a appointmentForm whose identifier is specified in parameter
static List<AppointmentForm> getActiveAppointmentFormsList()
          Load the data of all the appointmentForm objects and returns them in form of a collection
static List<AppointmentForm> getAppointmentFormsList()
          Load the data of all the appointmentForm objects and returns them in form of a collection
static void remove(int nAppointmentFormId)
          Remove an appointment form by its primary key.
static void update(AppointmentForm appointmentForm)
          Update of the appointmentForm which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static void create(AppointmentForm appointmentForm,
                          AppointmentFormMessages formMessage)
Create an appointment form and its associated appointment form message

Parameters:
appointmentForm - The instance of the AppointmentForm which contains the informations to store
formMessage - The appointment form message associated with the form to create

update

public static void update(AppointmentForm appointmentForm)
Update of the appointmentForm which is specified in parameter

Parameters:
appointmentForm - The instance of the AppointmentForm which contains the data to store

remove

public static void remove(int nAppointmentFormId)
Remove an appointment form by its primary key. Also remove the associated appointment form message and every associated day and slot.
Warning, please check that there is no appointment associated with the form BEFORE removing it!

Parameters:
nAppointmentFormId - The appointmentForm Id

findByPrimaryKey

public static AppointmentForm findByPrimaryKey(int nAppointmentFormId)
Returns an instance of a appointmentForm whose identifier is specified in parameter

Parameters:
nAppointmentFormId - The appointmentForm primary key
Returns:
an instance of AppointmentForm

getAppointmentFormsList

public static List<AppointmentForm> getAppointmentFormsList()
Load the data of all the appointmentForm objects and returns them in form of a collection

Returns:
the list which contains the data of all the appointmentForm objects

getActiveAppointmentFormsList

public static List<AppointmentForm> getActiveAppointmentFormsList()
Load the data of all the appointmentForm objects and returns them in form of a collection

Returns:
the list which contains the data of all the appointmentForm objects


Copyright © 2014 Mairie de Paris. All Rights Reserved.