Class AppointmentFormResourceTypeHome
java.lang.Object
fr.paris.lutece.plugins.appointment.modules.resource.business.AppointmentFormResourceTypeHome
Home for appointment form resources
-
Method Summary
Modifier and TypeMethodDescriptionstatic AppointmentFormResourceTypefindByPrimaryKey(int nId) Find an appointment form resource type from its primary keystatic List<AppointmentFormResourceType>findResourceTypesListFromIdForm(int nIdForm) Get the list of resource types associated with a given formstatic voidinsert(AppointmentFormResourceType formResourceType) Create an association between an appointment form and a resource typestatic voidremove(int nId) Remove an association between an appointment form and a resource typestatic voidremoveFromIdAppointmentForm(int nIdAppointmentForm) Remove every associations between an appointment form and resource typesstatic voidresetAppAdminUser(int nIdAppointmentForm) Reset the form resource type that was declared as containing the admin user of appointmentsstatic voidresetLocalization(int nIdAppointmentForm) Reset the form resource type that was declared as containing the localization of appointmentsstatic voidupdate(AppointmentFormResourceType formResourceType) Update an association between an appointment form and a resource type
-
Method Details
-
insert
Create an association between an appointment form and a resource type- Parameters:
formResourceType- The appointment form resource type
-
update
Update an association between an appointment form and a resource type- Parameters:
formResourceType- The appointment form resource type
-
remove
public static void remove(int nId) Remove an association between an appointment form and a resource type- Parameters:
nId- The id of the appointment form resource type to remove
-
removeFromIdAppointmentForm
public static void removeFromIdAppointmentForm(int nIdAppointmentForm) Remove every associations between an appointment form and resource types- Parameters:
nIdAppointmentForm- The id of the appointment form
-
findByPrimaryKey
Find an appointment form resource type from its primary key- Parameters:
nId- the id of the appointment form resource type to get- Returns:
- The appointment form resource type, or null if no appointment form with the given id was found
-
findResourceTypesListFromIdForm
Get the list of resource types associated with a given form- Parameters:
nIdForm- The id of the form- Returns:
- The list of appointment form resource types associated with the given form, or an empty list if no resource is associated with this form
-
resetAppAdminUser
public static void resetAppAdminUser(int nIdAppointmentForm) Reset the form resource type that was declared as containing the admin user of appointments- Parameters:
nIdAppointmentForm- The id of the appointment form
-
resetLocalization
public static void resetLocalization(int nIdAppointmentForm) Reset the form resource type that was declared as containing the localization of appointments- Parameters:
nIdAppointmentForm- The id of the appointment form
-