Interface IAppointmentFormResourceTypeDAO

All Known Implementing Classes:
AppointmentFormResourceTypeDAO

public interface IAppointmentFormResourceTypeDAO
Interface for appointment form resource type DAO
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Name of the bean of the implementation of the DAO
  • Method Summary

    Modifier and Type
    Method
    Description
    findByPrimaryKey(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find an appointment form resource type from its primary key
    findResourceTypesListFromIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get the list of resource types associated with a given form
    void
    insert(AppointmentFormResourceType formResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Create an association between an appointment form and a resource type
    void
    remove(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove an association between an appointment form and a resource type
    void
    removeFromIdAppointmentForm(int nIdAppointmentForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove every associations between an appointment form and resource types
    void
    resetAppAdminUser(int nIdAppointmentForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Reset the form resource type that was declared as containing the admin user of appointments
    void
    resetLocalization(int nIdAppointmentForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Reset the form resource type that was declared as containing the localization of appointments
    void
    update(AppointmentFormResourceType formResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update an existing appointment form resource type
  • Field Details

  • Method Details

    • insert

      void insert(AppointmentFormResourceType formResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Create an association between an appointment form and a resource type
      Parameters:
      formResourceType - The appointment form resource type
      plugin - the plugin
    • update

      void update(AppointmentFormResourceType formResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update an existing appointment form resource type
      Parameters:
      formResourceType - the form resource type
      plugin - the plugin
    • remove

      void remove(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove an association between an appointment form and a resource type
      Parameters:
      nId - The id of the appointment form resource type to remove
      plugin - the plugin
    • removeFromIdAppointmentForm

      void removeFromIdAppointmentForm(int nIdAppointmentForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove every associations between an appointment form and resource types
      Parameters:
      nIdAppointmentForm - The id of the appointment form
      plugin - The plugin
    • findByPrimaryKey

      AppointmentFormResourceType findByPrimaryKey(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find an appointment form resource type from its primary key
      Parameters:
      nId - the id of the appointment form resource type to get
      plugin - The plugin
      Returns:
      The appointment form resource type, or null if no appointment form with the given id was found
    • findResourceTypesListFromIdForm

      List<AppointmentFormResourceType> findResourceTypesListFromIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the list of resource types associated with a given form
      Parameters:
      nIdForm - The id of the form
      plugin - The plugin
      Returns:
      The list of resources associated with the given form, or an empty list if no resource is associated with this form
    • resetAppAdminUser

      void resetAppAdminUser(int nIdAppointmentForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Reset the form resource type that was declared as containing the admin user of appointments
      Parameters:
      nIdAppointmentForm - The id of the appointment form
      plugin - The plugin
    • resetLocalization

      void resetLocalization(int nIdAppointmentForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Reset the form resource type that was declared as containing the localization of appointments
      Parameters:
      nIdAppointmentForm - The id of the appointment form
      plugin - The plugin