Class ICalendarResource

    • Constructor Detail

      • ICalendarResource

        public ICalendarResource()
    • Method Detail

      • getCalendarHead

        @HEAD
        @Path("public/{calendarId}")
        public javax.ws.rs.core.Response getCalendarHead​(@PathParam("calendarId")
                                                         String calendarId)
        Gets HEAD data of a calendar represented by the given identifier. If it doesn't exist, a 404 HTTP code is returned.
        Parameters:
        calendarId - the identifier of the aimed calendar
        Returns:
        the response to the HTTP GET request with the JSON representation of the asked calendar.
        See Also:
        RESTWebService.WebProcess.execute()
      • getCalendar

        @GET
        @Path("public/{calendarId}")
        public javax.ws.rs.core.Response getCalendar​(@PathParam("calendarId")
                                                     String calendarId)
        Gets the JSON representation of a calendar represented by the given identifier. If it doesn't exist, a 404 HTTP code is returned.
        Parameters:
        calendarId - the identifier of the aimed calendar
        Returns:
        the response to the HTTP GET request with the JSON representation of the asked calendar.
        See Also:
        RESTWebService.WebProcess.execute()
      • privateExportHead

        @HEAD
        @Path("private/{token}")
        public javax.ws.rs.core.Response privateExportHead​(@PathParam("token")
                                                           String token)
        Gets private HEAD data of a calendar represented by a given token. If it doesn't exist, a 404 HTTP code is returned.
        Returns:
        the response to the HTTP GET request with the JSON representation of the asked calendars.
        See Also:
        RESTWebService.WebProcess.execute()
      • privateExport

        @GET
        @Path("private/{token}")
        public javax.ws.rs.core.Response privateExport​(@PathParam("token")
                                                       String token)
        Gets the JSON representation of a calendar represented by a given token. If it doesn't exist, a 404 HTTP code is returned.
        Returns:
        the response to the HTTP GET request with the JSON representation of the asked calendars.
        See Also:
        RESTWebService.WebProcess.execute()
      • getComponentId

        public String getComponentId()
        Description copied from interface: SilverpeasWebResource
        Gets the identifier of the component instance to which the requested resource belongs to.
        Returns:
        the identifier of the Silverpeas component instance.