Class AppointmentFormResourceTypeDAO
java.lang.Object
fr.paris.lutece.plugins.appointment.modules.resource.business.AppointmentFormResourceTypeDAO
- All Implemented Interfaces:
IAppointmentFormResourceTypeDAO
@ApplicationScoped
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 -
Method Summary
Modifier and TypeMethodDescriptionfindByPrimaryKey(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find an appointment form resource type from its primary keyfindResourceTypesListFromIdForm(int nIdAppointmentForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the list of resource types associated with a given formvoidinsert(AppointmentFormResourceType formResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Create an association between an appointment form and a resource typevoidremove(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove an association between an appointment form and a resource typevoidremoveFromIdAppointmentForm(int nIdAppointmentForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove every associations between an appointment form and resource typesvoidresetAppAdminUser(int nIdAppointmentForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Reset the form resource type that was declared as containing the admin user of appointmentsvoidresetLocalization(int nIdAppointmentForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Reset the form resource type that was declared as containing the localization of appointmentsvoidupdate(AppointmentFormResourceType formResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update an existing appointment form resource type
-
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:
insertin interfaceIAppointmentFormResourceTypeDAO- Parameters:
formResourceType- The appointment form resource typeplugin- 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:
updatein interfaceIAppointmentFormResourceTypeDAO- Parameters:
formResourceType- the form resource typeplugin- 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:
removein interfaceIAppointmentFormResourceTypeDAO- Parameters:
nId- The id of the appointment form resource type to removeplugin- 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:
removeFromIdAppointmentFormin interfaceIAppointmentFormResourceTypeDAO- Parameters:
nIdAppointmentForm- The id of the appointment formplugin- 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:
findByPrimaryKeyin interfaceIAppointmentFormResourceTypeDAO- Parameters:
nId- the id of the appointment form resource type to getplugin- 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:
findResourceTypesListFromIdFormin interfaceIAppointmentFormResourceTypeDAO- Parameters:
nIdAppointmentForm- The id of the formplugin- 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:
resetAppAdminUserin interfaceIAppointmentFormResourceTypeDAO- Parameters:
nIdAppointmentForm- The id of the appointment formplugin- 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:
resetLocalizationin interfaceIAppointmentFormResourceTypeDAO- Parameters:
nIdAppointmentForm- The id of the appointment formplugin- The plugin
-