Package org.silverpeas.core.web.calendar
Class AbstractCalendarWebController<C extends AbstractCalendarWebRequestContext>
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.core.web.mvc.webcomponent.WebComponentController<C>
-
- org.silverpeas.core.web.calendar.AbstractCalendarWebController<C>
-
- Type Parameters:
C
-
- All Implemented Interfaces:
Serializable
,ComponentSessionController
,SessionCloseable
- Direct Known Subclasses:
UserCalendarWebController
public abstract class AbstractCalendarWebController<C extends AbstractCalendarWebRequestContext> extends WebComponentController<C>
Common behaviors about WEB component controllers which handle the rendering of a calendar.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context
-
-
Constructor Summary
Constructors Constructor Description AbstractCalendarWebController(MainSessionController controller, ComponentContext context, String multilangFileName, String iconFileName, String settingsFileName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected SelectionUsersGroups
getAttendeeSelectionParams()
Gets the selection parameters about attendees.
This method must be overrated in case of additional settings to apply.protected abstract <T extends CalendarTimeWindowViewContext>
TgetCalendarTimeWindowContext()
protected SelectionUsersGroups
getUserParticipationSelectionParams()
Gets the selection parameters about the view of user participation.
This method must be overrated in case of additional settings to apply.void
modifyAttendees(C context)
protected void
processNewEvent(AbstractCalendarWebRequestContext context)
protected void
processViewOccurrence(AbstractCalendarWebRequestContext context, String navigationStepId)
void
searchResult(AbstractCalendarWebRequestContext context)
Handles the incoming from a search result URL.<T extends CalendarTimeWindowViewContext>
Tview(C context)
Handles the time window context.void
viewParticipationOfUsers(C context)
-
Methods inherited from class org.silverpeas.core.web.mvc.webcomponent.WebComponentController
beforeRequestProcessing, onInstantiation
-
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
-
AbstractCalendarWebController
public AbstractCalendarWebController(MainSessionController controller, ComponentContext context, String multilangFileName, String iconFileName, String settingsFileName)
-
-
Method Detail
-
getCalendarTimeWindowContext
protected abstract <T extends CalendarTimeWindowViewContext> T getCalendarTimeWindowContext()
-
view
@POST @Path("calendars/context") @Produces("application/json") public <T extends CalendarTimeWindowViewContext> T view(C context)
Handles the time window context.- Parameters:
context
- the context of the incoming request.
-
viewParticipationOfUsers
@POST @Path("calendars/events/users/participation") @RedirectTo("{userPanelUri}") @LowestRoleAccess(WRITER) public void viewParticipationOfUsers(C context)
-
getUserParticipationSelectionParams
protected SelectionUsersGroups getUserParticipationSelectionParams()
Gets the selection parameters about the view of user participation.
This method must be overrated in case of additional settings to apply.- Returns:
- the selection parameters.
-
modifyAttendees
@POST @Path("calendars/events/attendees/select") @RedirectTo("{userPanelUri}") @LowestRoleAccess(WRITER) public void modifyAttendees(C context)
-
getAttendeeSelectionParams
protected SelectionUsersGroups getAttendeeSelectionParams()
Gets the selection parameters about attendees.
This method must be overrated in case of additional settings to apply.- Returns:
- the selection parameters.
-
processNewEvent
protected void processNewEvent(AbstractCalendarWebRequestContext context)
-
processViewOccurrence
protected void processViewOccurrence(AbstractCalendarWebRequestContext context, String navigationStepId)
-
searchResult
@GET @Path("searchResult") @RedirectToInternal("calendars/occurrences/{occurrenceId}") public void searchResult(AbstractCalendarWebRequestContext context)
Handles the incoming from a search result URL.- Parameters:
context
- the context of the incoming request.
-
-