Class AppointmentResourceJspBean

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.modules.resource.web.AppointmentResourceJspBean
All Implemented Interfaces:
Serializable

@RequestScoped @Named @Controller(controllerJsp="ManageAppointmentResources.jsp", controllerPath="jsp/admin/plugins/appointment/modules/resource/", right="APPOINTMENT_FORM_MANAGEMENT", securityTokenEnabled=true) public class AppointmentResourceJspBean extends fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
Appointment resource JSP Bean
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The name of the JSP of the controller
    static final String
    The path of the JSP of the controller
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getResourceCalendar(jakarta.servlet.http.HttpServletRequest request)
    Get the calendar of a resource
    static String
    getUrlResourceCalendar(String strIdResource, String strResourceType)
    Get the URL of the calendar of a resource
    getViewUserCalendar(jakarta.servlet.http.HttpServletRequest request)
    Get the page to view the calendar of a user
    static String
    getWeekResourceCalendar(fr.paris.lutece.plugins.resource.business.IResource resource, int nOffsetWeek, Locale locale)
    Get the resource calendar for a week

    Methods inherited from class fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean

    processController

    Methods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean

    getPlugin, init

    Methods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean

    getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getSecurityTokenService, getUser, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • AppointmentResourceJspBean

      public AppointmentResourceJspBean()
  • Method Details

    • getViewUserCalendar

      @View(value="viewUserCalendar", defaultView=true) public String getViewUserCalendar(jakarta.servlet.http.HttpServletRequest request)
      Get the page to view the calendar of a user
      Parameters:
      request - the request
      Returns:
      The HTML code to display
    • getResourceCalendar

      @View("viewResourceCalendar") public String getResourceCalendar(jakarta.servlet.http.HttpServletRequest request)
      Get the calendar of a resource
      Parameters:
      request - The request
      Returns:
      The HTML content to display
    • getWeekResourceCalendar

      public static String getWeekResourceCalendar(fr.paris.lutece.plugins.resource.business.IResource resource, int nOffsetWeek, Locale locale)
      Get the resource calendar for a week
      Parameters:
      resource - The resource to display in the calendar
      nOffsetWeek - The week to display in the calendar ( -1 == previous, 0 == current, 1 == next, etc. )
      locale - Locale for localization
      Returns:
      an HTML template to display the calendar
    • getUrlResourceCalendar

      public static String getUrlResourceCalendar(String strIdResource, String strResourceType)
      Get the URL of the calendar of a resource
      Parameters:
      strIdResource - The id of the resource
      strResourceType - the resource type
      Returns:
      The URL of the calendar of the resource. Note that the base URL is not prefixed to the URL.