Class CalendarExportResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.optional.calendarexport.impl.rest.resources.CalendarExportResource
- All Implemented Interfaces:
RestResource
-
Nested Class Summary
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ConstructorDescriptionCalendarExportResource
(Context context, CalendarEventFactory calendarEventFactory, CalendarManager calendarManager, QueryBuilderFactory queryBuilderFactory, QueryCompiler queryCompiler, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptionLoads the Calendar_export_conf entity matching the UUID variable in the path and returns the CalendarEvents of all linked Calendars in the iCalendar formatvoid
Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
CalendarExportResource
public CalendarExportResource(Context context, CalendarEventFactory calendarEventFactory, CalendarManager calendarManager, QueryBuilderFactory queryBuilderFactory, QueryCompiler queryCompiler, SecurityManager securityManager)
-
-
Method Details
-
getICal
@GET @Produces("text/calendar") @Path("{uuid}") public String getICal(@PathParam("uuid") String uuid) Loads the Calendar_export_conf entity matching the UUID variable in the path and returns the CalendarEvents of all linked Calendars in the iCalendar format- Returns:
- Calendar as iCalendar
-
getBaseUrl
@GET @Produces("application/json") @Path("getBaseUrl") public CalendarExportResource.ExportUrlBean getBaseUrl() -
setPath
-