Package org.silverpeas.core.web.calendar
Class AbstractCalendarWebRequestContext<T extends AbstractCalendarWebController>
- java.lang.Object
-
- org.silverpeas.core.web.mvc.webcomponent.WebComponentRequestContext<T>
-
- org.silverpeas.core.web.calendar.AbstractCalendarWebRequestContext<T>
-
- Direct Known Subclasses:
UserCalendarWebRequestContext
public abstract class AbstractCalendarWebRequestContext<T extends AbstractCalendarWebController> extends WebComponentRequestContext<T>
- Author:
- Yohann Chastagnier
-
-
Constructor Summary
Constructors Constructor Description AbstractCalendarWebRequestContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beforeRequestProcessing()
This methods permits to perform initializations before the HTTP method (and associated method invocation) aimed is performed.CalendarEventOccurrence
getCalendarEventOccurrenceById()
Gets the event occurrence corresponding to the identifier contained into request asoccurrenceId
parameter name.protected ComponentInstanceCalendars
getComponentInstanceCalendars()
Gets the calendars.Calendar
getMainCalendar()
Gets the main calendar.Temporal
getOccurrenceStartDate()
Gets the calendar corresponding to the identifier contained into request ascalendarId
parameter name.protected void
setComponentInstanceCalendars(ComponentInstanceCalendars componentInstanceCalendars)
CalendarResourceURIs
uri()
Gets the calendar URI producer.-
Methods inherited from class org.silverpeas.core.web.mvc.webcomponent.WebComponentRequestContext
addRedirectVariable, getComponentInstanceId, getComponentInstanceLabel, getComponentName, getComponentUriBase, getHighestUserRole, getHttpMethodClass, getInstanceParameterValue, getMessager, getMultilang, getNavigationContext, getPathVariables, getRequest, getResponse, getSpaceId, getSpaceLabel, getUser, getUserRoles, getZoneId, isComingFromRedirect, redirectToHtmlEditor, redirectToHtmlEditor, redirectToHtmlEditor, redirectToHtmlEditor
-
-
-
-
Method Detail
-
beforeRequestProcessing
public void beforeRequestProcessing()
Description copied from class:WebComponentRequestContext
This methods permits to perform initializations before the HTTP method (and associated method invocation) aimed is performed.- Overrides:
beforeRequestProcessing
in classWebComponentRequestContext<T extends AbstractCalendarWebController>
-
getComponentInstanceCalendars
protected ComponentInstanceCalendars getComponentInstanceCalendars()
Gets the calendars.- Returns:
- list of calendars.
-
setComponentInstanceCalendars
protected void setComponentInstanceCalendars(ComponentInstanceCalendars componentInstanceCalendars)
-
uri
public CalendarResourceURIs uri()
Gets the calendar URI producer.- Returns:
- the calendar URI producer.
-
getMainCalendar
public Calendar getMainCalendar()
Gets the main calendar.- Returns:
- the main calendar linked to the instance.
- Throws:
javax.ws.rs.WebApplicationException
- withResponse.Status.NOT_FOUND
code if no calendars exist for component instance.
-
getOccurrenceStartDate
public Temporal getOccurrenceStartDate()
Gets the calendar corresponding to the identifier contained into request ascalendarId
parameter name.- Returns:
- a calendar.
-
getCalendarEventOccurrenceById
public CalendarEventOccurrence getCalendarEventOccurrenceById()
Gets the event occurrence corresponding to the identifier contained into request asoccurrenceId
parameter name.- Returns:
- an event.
-
-