Package org.silverpeas.web.usercalendar
Class UserCalendarWebController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.core.web.mvc.webcomponent.WebComponentController<C>
-
- org.silverpeas.core.web.calendar.AbstractCalendarWebController<UserCalendarWebRequestContext>
-
- org.silverpeas.web.usercalendar.UserCalendarWebController
-
- All Implemented Interfaces:
Serializable
,ComponentSessionController
,SessionCloseable
@WebComponentController("userCalendar") public class UserCalendarWebController extends AbstractCalendarWebController<UserCalendarWebRequestContext>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context
-
-
Constructor Summary
Constructors Constructor Description UserCalendarWebController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
Standard Session Controller Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
beforeRequestProcessing(UserCalendarWebRequestContext context)
Permits to perform some common initializations.void
editOccurrence(UserCalendarWebRequestContext context)
Asks for purposing a new event.protected UserCalendarTimeWindowViewContext
getCalendarTimeWindowContext()
void
home(UserCalendarWebRequestContext context)
Prepares the rendering of the home page.void
newEvent(UserCalendarWebRequestContext context)
Asks for purposing a new event.protected void
onInstantiation(UserCalendarWebRequestContext context)
This method is called one times just after the web controller is instantiated and just before the call of the HTTP web controller method.void
viewOccurrence(UserCalendarWebRequestContext context)
Asks for purposing a new event.-
Methods inherited from class org.silverpeas.core.web.calendar.AbstractCalendarWebController
getAttendeeSelectionParams, getUserParticipationSelectionParams, modifyAttendees, processNewEvent, processViewOccurrence, searchResult, view, viewParticipationOfUsers
-
Methods inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getClipboardErrorMessage, getClipboardExceptionError, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getHighestSilverpeasUserRole, getIcon, getLanguage, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoles, getZoneId, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardSelectedElement, setComponentRootName, setSpaceModeMaintenance
-
-
-
-
Constructor Detail
-
UserCalendarWebController
public UserCalendarWebController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
Standard Session Controller Constructor- Parameters:
mainSessionCtrl
- The user's profilecomponentContext
- The component's profile
-
-
Method Detail
-
getCalendarTimeWindowContext
protected UserCalendarTimeWindowViewContext getCalendarTimeWindowContext()
- Specified by:
getCalendarTimeWindowContext
in classAbstractCalendarWebController<UserCalendarWebRequestContext>
-
onInstantiation
protected void onInstantiation(UserCalendarWebRequestContext context)
Description copied from class:WebComponentController
This method is called one times just after the web controller is instantiated and just before the call of the HTTP web controller method.- Specified by:
onInstantiation
in classWebComponentController<UserCalendarWebRequestContext>
- Parameters:
context
- the web request context.
-
beforeRequestProcessing
protected void beforeRequestProcessing(UserCalendarWebRequestContext context)
Description copied from class:WebComponentController
Permits to perform some common initializations. The method is called just before the method behing the identified path is invoked.- Overrides:
beforeRequestProcessing
in classWebComponentController<UserCalendarWebRequestContext>
- Parameters:
context
- the context of the request in relation with the web controller
-
home
@GET @Path("Main") @Homepage @RedirectToInternalJsp("userCalendar.jsp") public void home(UserCalendarWebRequestContext context)
Prepares the rendering of the home page.- Parameters:
context
- the context of the incoming request.
-
newEvent
@GET @Path("calendars/events/new") @RedirectToInternalJsp("occurrenceEdit.jsp") @LowestRoleAccess(ADMIN) public void newEvent(UserCalendarWebRequestContext context)
Asks for purposing a new event. It renders an HTML page to input the content of a new event.- Parameters:
context
- the context of the incoming request.
-
viewOccurrence
@GET @Path("calendars/occurrences/{occurrenceId}") @NavigationStep(identifier="eventViewNavStepIdentifier") @RedirectToInternalJsp("occurrenceView.jsp") public void viewOccurrence(UserCalendarWebRequestContext context)
Asks for purposing a new event. It renders an HTML page to input the content of a new event.- Parameters:
context
- the context of the incoming request.
-
editOccurrence
@GET @Path("calendars/occurrences/{occurrenceId}/edit") @RedirectToInternalJsp("occurrenceEdit.jsp") @LowestRoleAccess(ADMIN) public void editOccurrence(UserCalendarWebRequestContext context)
Asks for purposing a new event. It renders an HTML page to input the content of a new event.- Parameters:
context
- the context of the incoming request.
-
-