Class CalendarResource


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

      Constructors 
      Constructor Description
      CalendarResource​(ReleaseService releaseService, com.xebialabs.xlrelease.service.CalendarService calendarService, com.xebialabs.xlrelease.security.PermissionChecker permissions)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.xebialabs.xlrelease.domain.calendar.Blackout addBlackout​(com.xebialabs.xlrelease.domain.calendar.Blackout blackout)  
      void deleteBlackout​(java.lang.String blackoutId)  
      com.xebialabs.xlrelease.domain.calendar.Blackout getBlackout​(java.lang.String blackoutId)  
      java.util.List<com.xebialabs.xlrelease.domain.calendar.Blackout> getBlackouts​(java.util.Date from, java.util.Date to)  
      com.xebialabs.xlrelease.domain.calendar.SpecialDay getSpecialDay​(java.lang.String specialDayId)  
      java.util.List<com.xebialabs.xlrelease.domain.calendar.SpecialDay> getSpecialDays​(java.util.Date from, java.util.Date to)  
      com.xebialabs.xlrelease.domain.calendar.SpecialDay setSpecialDay​(java.lang.String specialDayId, com.xebialabs.xlrelease.domain.calendar.SpecialDay specialDay)  
      javax.ws.rs.core.Response subscribe​(java.lang.String calendarToken)  
      com.xebialabs.xlrelease.domain.calendar.Blackout updateBlackout​(java.lang.String blackoutId, com.xebialabs.xlrelease.domain.calendar.Blackout blackout)  
      boolean withinBlackout()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CalendarResource

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

      • subscribe

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

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

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

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

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

        @GET
        @Timed
        @Path("/blackouts/{blackoutId:.*/Blackout[^/]*}")
        public com.xebialabs.xlrelease.domain.calendar.Blackout getBlackout​(@PathParam("blackoutId")
                                                                            java.lang.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")
                                                                               java.lang.String blackoutId,
                                                                               com.xebialabs.xlrelease.domain.calendar.Blackout blackout)
      • deleteBlackout

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

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