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

@Path("/calendar/export") public class CalendarExportResource extends AbstractRestResource
  • Constructor Details

  • 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

      @Value("${calendarexport.exportUrlPath}") public void setPath(String path)