Class AppointmentFormResourceTypeDAO

java.lang.Object
fr.paris.lutece.plugins.appointment.modules.resource.business.AppointmentFormResourceTypeDAO
All Implemented Interfaces:
IAppointmentFormResourceTypeDAO

public class AppointmentFormResourceTypeDAO extends Object implements IAppointmentFormResourceTypeDAO
Appointment form resource type DAO
  • Field Summary

    Fields inherited from interface fr.paris.lutece.plugins.appointment.modules.resource.business.IAppointmentFormResourceTypeDAO

    BEAN_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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 nIdAppointmentForm, 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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AppointmentFormResourceTypeDAO

      public AppointmentFormResourceTypeDAO()
  • Method Details

    • insert

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

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

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

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

      public AppointmentFormResourceType findByPrimaryKey(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find an appointment form resource type from its primary key
      Specified by:
      findByPrimaryKey in interface IAppointmentFormResourceTypeDAO
      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

      public List<AppointmentFormResourceType> findResourceTypesListFromIdForm(int nIdAppointmentForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the list of resource types associated with a given form
      Specified by:
      findResourceTypesListFromIdForm in interface IAppointmentFormResourceTypeDAO
      Parameters:
      nIdAppointmentForm - 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

      public 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
      Specified by:
      resetAppAdminUser in interface IAppointmentFormResourceTypeDAO
      Parameters:
      nIdAppointmentForm - The id of the appointment form
      plugin - The plugin
    • resetLocalization

      public 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
      Specified by:
      resetLocalization in interface IAppointmentFormResourceTypeDAO
      Parameters:
      nIdAppointmentForm - The id of the appointment form
      plugin - The plugin