@Controller @RequestMapping(value="VIEW") public class ViewCalendarController extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.osivia.portal.api.internationalization.IBundleFactory |
bundleFactory
Bundle factory.
|
protected static String |
CALENDAR_DATA_ATTRIBUTE
Calendar data request attribute.
|
protected CalendarViewService |
calendarService
Calendar service.
|
protected org.osivia.portal.api.notifications.INotificationsService |
notificationsService
Notifications service.
|
protected javax.portlet.PortletContext |
portletContext
Portlet context.
|
| Constructor and Description |
|---|
ViewCalendarController()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
dataLoading(javax.portlet.ResourceResponse response,
org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
CalendarData calendarData)
Event's loading from calendarData's start date and end date
|
void |
dragndrop(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
javax.portlet.PortletSession session,
String startDate,
String endDate,
String docid,
String title,
String scrollViewDayWeek,
String scrollViewMonth,
String period,
String date)
Event'save after drag and drop
|
CalendarData |
getCalendarData(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response,
String periodTypeName)
Get calendar data.
|
String |
handleException(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response,
Exception exception)
Exception handler.
|
void |
initSchedulerData(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response,
CalendarData calendarData,
String periodTypeName,
Date selectedDate)
Ajax call to load scheduler events
|
void |
integration(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response,
String format)
Calendar integration resource mapping.
|
void |
isEventEditable(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response,
String id) |
void |
loadData(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response,
String start,
String end,
CalendarData calendarData)
Events loading between start date and end date parameters
|
void |
remove(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
javax.portlet.PortletSession session,
String docid,
String scrollViewDayWeek,
String scrollViewMonth,
String period,
String date)
Event's removal
|
protected void |
setResponseParameter(javax.portlet.ActionResponse response,
String date,
String period,
String scrollViewDayWeek,
String scrollViewMonth) |
void |
synchronize(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
javax.portlet.PortletSession session)
Synchronization
|
String |
view(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
String startDate,
String periodType,
String scrollViewDayWeek,
String scrollViewMonth,
CalendarData calendarData)
View calendar render mapping
|
void |
viewEvent(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
javax.portlet.PortletSession session,
String docid,
String scrollViewDayWeek,
String scrollViewMonth)
Action called to view event's details
|
protected static final String CALENDAR_DATA_ATTRIBUTE
@Autowired protected javax.portlet.PortletContext portletContext
@Autowired protected CalendarViewService calendarService
@Autowired protected org.osivia.portal.api.internationalization.IBundleFactory bundleFactory
@Autowired protected org.osivia.portal.api.notifications.INotificationsService notificationsService
@RenderMapping public String view(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, @RequestParam(value="date",required=false) String startDate, @RequestParam(value="period",required=false) String periodType, @RequestParam(value="scrollViewDayWeek",required=false) String scrollViewDayWeek, @RequestParam(value="scrollViewMonth",required=false) String scrollViewMonth, @ModelAttribute CalendarData calendarData) throws javax.portlet.PortletException
request - render requestresponse - render responseselectedDate - request parameter, may be nulljavax.portlet.PortletException@ResourceMapping(value="initSchedulerData")
public void initSchedulerData(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response,
@ModelAttribute(value="calendarData")
CalendarData calendarData,
@RequestParam(value="period",required=false)
String periodTypeName,
@RequestParam(value="date",required=false)
Date selectedDate)
throws javax.portlet.PortletException,
IOException
request - resource requestresponse - resource responsepath - parent path, may be null for root nodejavax.portlet.PortletExceptionIOException@ResourceMapping(value="loadData")
public void loadData(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response,
@RequestParam(name="start",required=false)
String start,
@RequestParam(name="end",required=false)
String end,
@ModelAttribute(value="calendarData")
CalendarData calendarData)
throws javax.portlet.PortletException,
IOException
request - resource requestresponse - resource responsestart - start date request parameterend - end date request parametercalendarData - calendar data model attributejavax.portlet.PortletExceptionIOException@ResourceMapping(value="isEventEditable")
public void isEventEditable(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response,
@RequestParam(value="id",required=true)
String id)
throws javax.portlet.PortletException,
IOException
javax.portlet.PortletExceptionIOException@ActionMapping(value="viewEvent")
public void viewEvent(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
javax.portlet.PortletSession session,
@RequestParam(value="doc_id")
String docid,
@RequestParam(value="scrollViewDayWeek",required=false)
String scrollViewDayWeek,
@RequestParam(value="scrollViewMonth",required=false)
String scrollViewMonth)
throws javax.portlet.PortletException,
IOException
request - resource requestresponse - resource responsepath - parent path, may be null for root nodejavax.portlet.PortletExceptionIOException@ActionMapping(value="dragndrop")
public void dragndrop(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
javax.portlet.PortletSession session,
@RequestParam(value="start")
String startDate,
@RequestParam(value="end")
String endDate,
@RequestParam(value="doc_id")
String docid,
@RequestParam(value="title")
String title,
@RequestParam(value="scrollViewDayWeek",required=false)
String scrollViewDayWeek,
@RequestParam(value="scrollViewMonth",required=false)
String scrollViewMonth,
@RequestParam(value="period")
String period,
@RequestParam(value="date")
String date)
throws javax.portlet.PortletException,
IOException
request - response - session - startDate - endDate - docid - title - scrollViewDayWeek - scrollViewMonth - period - date - javax.portlet.PortletExceptionIOException@ActionMapping(value="remove")
public void remove(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
javax.portlet.PortletSession session,
@RequestParam(value="doc_id")
String docid,
@RequestParam(value="scrollViewDayWeek",required=false)
String scrollViewDayWeek,
@RequestParam(value="scrollViewMonth",required=false)
String scrollViewMonth,
@RequestParam(value="period")
String period,
@RequestParam(value="date")
String date)
throws javax.portlet.PortletException,
IOException
request - response - session - docid - scrollViewDayWeek - scrollViewMonth - period - date - javax.portlet.PortletExceptionIOException@ActionMapping(value="synchronize")
public void synchronize(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
javax.portlet.PortletSession session)
throws javax.portlet.PortletException,
IOException
request - response - session - scrollViewDayWeek - scrollViewMonth - period - date - javax.portlet.PortletExceptionIOException@ResourceMapping(value="integration")
public void integration(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response,
@RequestParam(name="format",required=false)
String format)
throws javax.portlet.PortletException,
IOException
request - resource requestresponse - resource responseformat - calendar integration format request parameterjavax.portlet.PortletExceptionIOException@ModelAttribute(value="calendarData") public CalendarData getCalendarData(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response, @RequestParam(value="period",required=false) String periodTypeName) throws javax.portlet.PortletException
request - portlet requestresponse - portlet responseperiodTypeName - period type name request parameter, may be nulljavax.portlet.PortletException@ExceptionHandler(value=java.lang.Exception.class) public String handleException(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response, Exception exception)
request - portlet requestresponse - portlet responseexception - current exceptionprotected void dataLoading(javax.portlet.ResourceResponse response,
org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
CalendarData calendarData)
throws javax.portlet.PortletException,
IOException
response - portalControllerContext - calendarData - javax.portlet.PortletExceptionIOExceptionCopyright © 2020 OSIVIA. All rights reserved.