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
@Controller(controllerJsp="ManageAppointmentResources.jsp",
controllerPath="jsp/admin/plugins/appointment/modules/resource",
right="APPOINTMENT_FORM_MANAGEMENT")
public class AppointmentResourceJspBean
extends fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
Appointment resource JSP Bean
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResourceCalendar(javax.servlet.http.HttpServletRequest request) Get the calendar of a resourcestatic StringgetUrlResourceCalendar(String strIdResource, String strResourceType) Get the URL of the calendar of a resourcegetViewUserCalendar(javax.servlet.http.HttpServletRequest request) Get the page to view the calendar of a userstatic StringgetWeekResourceCalendar(fr.paris.lutece.plugins.resource.business.IResource resource, int nOffsetWeek, Locale locale) Get the resource calendar for a weekMethods 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, getUser, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate
-
Field Details
-
CONTROLLER_PATH
The path of the JSP of the controller- See Also:
-
CONTROLLER_JSP
The name of the JSP of the controller- See Also:
-
-
Constructor Details
-
AppointmentResourceJspBean
public AppointmentResourceJspBean()
-
-
Method Details
-
getViewUserCalendar
@View(value="VIEW_USER_CALENDAR", defaultView=true) public String getViewUserCalendar(javax.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(javax.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 calendarnOffsetWeek- 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
Get the URL of the calendar of a resource- Parameters:
strIdResource- The id of the resourcestrResourceType- the resource type- Returns:
- The URL of the calendar of the resource. Note that the base URL is not prefixed to the URL.
-