Class AppointmentJspBean
java.lang.Object
fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
fr.paris.lutece.plugins.appointment.web.AppointmentJspBean
- All Implemented Interfaces:
Serializable
@SessionScoped
@Named
@Controller(controllerJsp="ManageAppointments.jsp",
controllerPath="jsp/admin/plugins/appointment/",
right="APPOINTMENT_FORM_MANAGEMENT")
public class AppointmentJspBean
extends fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
This class provides the user interface to manage Appointment features ( manage, create, modify, remove )
- Author:
- Laurent Payen
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondisplayRecapAppointment(jakarta.servlet.http.HttpServletRequest request) Display the recap before validating an appointmentdoChangeAppointmentStatus(jakarta.servlet.http.HttpServletRequest request) Do change the status of an appointmentdoExportAppointments(jakarta.servlet.http.HttpServletRequest request) Do download a file from an appointment responsedoMakeAppointment(jakarta.servlet.http.HttpServletRequest request) Do save an appointment into the database if it is validdoProcessWorkflowAction(jakarta.servlet.http.HttpServletRequest request) Do process a workflow action over an appointmentdoRemoveAppointment(jakarta.servlet.http.HttpServletRequest request) Handles the removal form of a appointmentdoRemoveMassAppointment(jakarta.servlet.http.HttpServletRequest request) Handles the removal form of a appointmentdoValidateForm(jakarta.servlet.http.HttpServletRequest request) Do validate data entered by a user to fill a formgetConfirmRemoveAppointment(jakarta.servlet.http.HttpServletRequest request) Manages the removal form of a appointment whose identifier is in the HTTP requestgetConfirmRemoveMassAppointment(jakarta.servlet.http.HttpServletRequest request, int nIdForm) Manages the removal form of a appointment whose identifier is in the HTTP requestgetDownloadFile(jakarta.servlet.http.HttpServletRequest request) Do download a file from an appointment responsegetDownloadFileFromSession(jakarta.servlet.http.HttpServletRequest request) Do download a file from an appointment response stored in session and not yet on server fsgetManageAppointments(jakarta.servlet.http.HttpServletRequest request) Get the page to manage appointmentsstatic StringgetUrlExecuteWorkflowAction(jakarta.servlet.http.HttpServletRequest request, String strIdAppointment, String strIdAction) Get the URL to display the form of a workflow action.getViewAppointment(jakarta.servlet.http.HttpServletRequest request) View details of an appointmentgetViewCalendarManageAppointments(jakarta.servlet.http.HttpServletRequest request) Get the page to manage appointments.getViewChangeDateAppointment(jakarta.servlet.http.HttpServletRequest request) Return to the display recap view with the new date selected on the calendargetViewCreateAppointment(jakarta.servlet.http.HttpServletRequest request) Returns the form to create an appointmentgetWorkflowActionForm(jakarta.servlet.http.HttpServletRequest request) Get the workflow action form before processing the action.Methods inherited from class fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
processControllerMethods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
getPlugin, initMethods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getSecurityTokenService, getUser, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate
-
Field Details
-
ACTIVATEWORKFLOW
-
PREVIOUS_FORM
- See Also:
-
-
Constructor Details
-
AppointmentJspBean
public AppointmentJspBean()
-
-
Method Details
-
getViewCalendarManageAppointments
@View(value="viewCalendarManageAppointment", defaultView=true) public String getViewCalendarManageAppointments(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException Get the page to manage appointments. Appointments are displayed in a calendar.- Parameters:
request- The request- Returns:
- The HTML code to display
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException
-
getManageAppointments
@View("manageAppointments") public String getManageAppointments(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException Get the page to manage appointments- Parameters:
request- The request- Returns:
- The HTML code to display
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException
-
getConfirmRemoveAppointment
@Action("confirmRemoveAppointment") public String getConfirmRemoveAppointment(jakarta.servlet.http.HttpServletRequest request) Manages the removal form of a appointment whose identifier is in the HTTP request- Parameters:
request- The HTTP request- Returns:
- the HTML code to confirm
-
doRemoveAppointment
@Action("removeAppointment") public String doRemoveAppointment(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException Handles the removal form of a appointment- Parameters:
request- The HTTP request- Returns:
- the JSP URL to display the form to manage appointments
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- If the user is not authorized to access this feature
-
getConfirmRemoveMassAppointment
@Action("confirmRemoveMassAppointment") public String getConfirmRemoveMassAppointment(jakarta.servlet.http.HttpServletRequest request, int nIdForm) Manages the removal form of a appointment whose identifier is in the HTTP request- Parameters:
request- The HTTP request- Returns:
- the HTML code to confirm
-
doRemoveMassAppointment
@Action("removeMassAppointment") public String doRemoveMassAppointment(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException Handles the removal form of a appointment- Parameters:
request- The HTTP request- Returns:
- the JSP URL to display the form to manage appointments
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- If the user is not authorized to access this feature
-
getViewAppointment
@View("viewAppointment") public String getViewAppointment(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException View details of an appointment- Parameters:
request- The request- Returns:
- The HTML content to display
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- If the user is not authorized to access this featureFileServiceException- If there is an error with the file service
-
doExportAppointments
@Action("doExportAppointments") public String doExportAppointments(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException Do download a file from an appointment response- Parameters:
request- The requestresponse- The response- Returns:
- nothing.
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- If the user is not authorized to access this feature
-
getViewCreateAppointment
@View("createAppointment") public String getViewCreateAppointment(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException Returns the form to create an appointment- Parameters:
request- The HTTP request- Returns:
- the HTML code of the appointment form
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- If the user is not authorized to access this feature
-
doValidateForm
@Action("doValidateForm") public String doValidateForm(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException Do validate data entered by a user to fill a form- Parameters:
request- The request- Returns:
- The next URL to redirect to
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- If the user is not authorized to access this feature
-
getViewChangeDateAppointment
@View("viewChangeDateAppointment") public String getViewChangeDateAppointment(jakarta.servlet.http.HttpServletRequest request) Return to the display recap view with the new date selected on the calendar- Parameters:
request- the request- Returns:
- to the display recap view
- Throws:
FileServiceException- If there is an error with the file service
-
displayRecapAppointment
@View("displayRecapAppointment") public String displayRecapAppointment(jakarta.servlet.http.HttpServletRequest request) Display the recap before validating an appointment- Parameters:
request- The request- Returns:
- The HTML content to display or the next URL to redirect to
-
doMakeAppointment
@Action("doMakeAppointment") public String doMakeAppointment(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException Do save an appointment into the database if it is valid- Parameters:
request- The request- Returns:
- The XPage to display
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- If the user is not authorized to access this feature
-
getDownloadFileFromSession
@View("downloadFileFromSession") public String getDownloadFileFromSession(jakarta.servlet.http.HttpServletRequest request) Do download a file from an appointment response stored in session and not yet on server fs- Parameters:
request- The request- Returns:
- null once the download is sent, or the URL of the forms list when the file is not found
-
getDownloadFile
@View("downloadFile") public String getDownloadFile(jakarta.servlet.http.HttpServletRequest request) Do download a file from an appointment response- Parameters:
request- The request- Returns:
- null once the download is sent, or the URL of the forms list when the file is not found
-
getUrlExecuteWorkflowAction
public static String getUrlExecuteWorkflowAction(jakarta.servlet.http.HttpServletRequest request, String strIdAppointment, String strIdAction) Get the URL to display the form of a workflow action. If the action has no form, then the user is redirected to the page to execute the workflow action- Parameters:
request- The requeststrIdAppointment- The id of the appointmentstrIdAction- The id of the workflow action- Returns:
- The URL
-
getWorkflowActionForm
@View("viewWorkflowActionForm") public String getWorkflowActionForm(jakarta.servlet.http.HttpServletRequest request) Get the workflow action form before processing the action. An action without form is not processed here: the request asks for a confirmation whose form posts the processing action.- Parameters:
request- The request- Returns:
- The HTML content to display, or the next URL to redirect the user to
-
doProcessWorkflowAction
@Action("doProcessWorkflowAction") public String doProcessWorkflowAction(jakarta.servlet.http.HttpServletRequest request) Do process a workflow action over an appointment- Parameters:
request- The request- Returns:
- The next URL to redirect to
-
doChangeAppointmentStatus
@Action("doChangeAppointmentStatus") public String doChangeAppointmentStatus(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException Do change the status of an appointment- Parameters:
request- The request- Returns:
- The next URL to redirect to
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- If the user is not authorized to access this feature
-