Class CalendarResource

java.lang.Object
com.xebialabs.xlrelease.api.internal.CalendarResource

@Path("/calendar") @Consumes("application/json") @Produces("application/json") @Controller public class CalendarResource extends Object
The release calendar.
  • Constructor Details

    • CalendarResource

      @Autowired public CalendarResource(ReleaseService releaseService, com.xebialabs.xlrelease.service.CalendarService calendarService, com.xebialabs.xlrelease.security.PermissionChecker permissions)
  • Method Details

    • subscribe

      @GET @Timed @Path("/subscribe/{calendarToken}") public jakarta.ws.rs.core.Response subscribe(@PathParam("calendarToken") String calendarToken)
    • getSpecialDay

      @GET @Timed @Path("/specialDays/{specialDayId:.*/Calendar/[0-9^/]{8}}") public com.xebialabs.xlrelease.domain.calendar.SpecialDay getSpecialDay(@PathParam("specialDayId") String specialDayId)
    • setSpecialDay

      @PUT @Timed @Path("/specialDays/{specialDayId:.*/Calendar/[0-9^/]{8}}") public com.xebialabs.xlrelease.domain.calendar.SpecialDay setSpecialDay(@PathParam("specialDayId") String specialDayId, com.xebialabs.xlrelease.domain.calendar.SpecialDay specialDay)
    • getSpecialDays

      @GET @Timed @Path("/specialDays") public List<com.xebialabs.xlrelease.domain.calendar.SpecialDay> getSpecialDays(@QueryParam("from") Date from, @QueryParam("to") Date to)
    • getBlackouts

      @GET @Timed @Path("/blackouts") public List<com.xebialabs.xlrelease.domain.calendar.Blackout> getBlackouts(@QueryParam("from") Date from, @QueryParam("to") Date to)
    • getBlackout

      @GET @Timed @Path("/blackouts/{blackoutId:.*/Blackout[^/]*}") public com.xebialabs.xlrelease.domain.calendar.Blackout getBlackout(@PathParam("blackoutId") String blackoutId)
    • addBlackout

      @POST @Timed @Path("/blackouts") public com.xebialabs.xlrelease.domain.calendar.Blackout addBlackout(com.xebialabs.xlrelease.domain.calendar.Blackout blackout)
    • updateBlackout

      @PUT @Timed @Path("/blackouts/{blackoutId:.*/Blackout[^/]*}") public com.xebialabs.xlrelease.domain.calendar.Blackout updateBlackout(@PathParam("blackoutId") String blackoutId, com.xebialabs.xlrelease.domain.calendar.Blackout blackout)
    • deleteBlackout

      @DELETE @Timed @Path("/blackouts/{blackoutId:.*/Blackout[^/]*}") public void deleteBlackout(@PathParam("blackoutId") String blackoutId)
    • withinBlackout

      @GET @Timed @Path("/blackouts/withinBlackout") public boolean withinBlackout()