Class AppointmentFormResourceTypeHome

java.lang.Object
fr.paris.lutece.plugins.appointment.modules.resource.business.AppointmentFormResourceTypeHome

public final class AppointmentFormResourceTypeHome extends Object
Home for appointment form resources
  • Method Details

    • insert

      public static void insert(AppointmentFormResourceType formResourceType)
      Create an association between an appointment form and a resource type
      Parameters:
      formResourceType - The appointment form resource type
    • update

      public static void update(AppointmentFormResourceType formResourceType)
      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

      public static AppointmentFormResourceType findByPrimaryKey(int nId)
      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

      public static List<AppointmentFormResourceType> findResourceTypesListFromIdForm(int nIdForm)
      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