Class BlackoutApiImpl

java.lang.Object
com.xebialabs.xlrelease.api.v1.impl.BlackoutApiImpl
All Implemented Interfaces:
com.xebialabs.xlrelease.api.ApiService, com.xebialabs.xlrelease.api.v1.BlackoutApi

@Controller public class BlackoutApiImpl extends Object implements com.xebialabs.xlrelease.api.v1.BlackoutApi
  • Field Summary

    Fields inherited from interface com.xebialabs.xlrelease.api.ApiService

    DEFAULT_RESULTS_PER_PAGE, DEFAULT_RESULTS_PER_PAGE_STRING, DEPTH, ORDER_BY, PAGE, PAGE_IS_OFFSET, RESULTS_PER_PAGE, ROLE_IDS_DATA

    Fields inherited from interface com.xebialabs.xlrelease.api.v1.BlackoutApi

    SERVICE_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlackoutApiImpl(com.xebialabs.xlrelease.service.CalendarService calendarService, com.xebialabs.xlrelease.security.PermissionChecker permissions)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.xebialabs.xlrelease.domain.calendar.Blackout
    addBlackout(com.xebialabs.xlrelease.domain.calendar.Blackout blackout)
     
    com.xebialabs.xlrelease.domain.calendar.Blackout
    addBlackout(com.xebialabs.xlrelease.domain.calendar.BlackoutForm form)
     
    void
    deleteBlackout(String blackoutId)
     
    com.xebialabs.xlrelease.domain.calendar.Blackout
    getBlackout(String blackoutId)
     
    List<com.xebialabs.xlrelease.domain.calendar.Blackout>
     
    List<com.xebialabs.xlrelease.domain.calendar.Blackout>
    getBlackouts(Date from, Date to)
     
    com.xebialabs.xlrelease.domain.calendar.Blackout
    newBlackout(String label, Date startDate, Date endDate)
     
    com.xebialabs.xlrelease.domain.calendar.Blackout
    updateBlackout(com.xebialabs.xlrelease.domain.calendar.Blackout blackout)
     
    com.xebialabs.xlrelease.domain.calendar.Blackout
    updateBlackout(String blackoutId, com.xebialabs.xlrelease.domain.calendar.BlackoutForm form)
     
    boolean
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.xebialabs.xlrelease.api.v1.BlackoutApi

    serviceName
  • Constructor Details

    • BlackoutApiImpl

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

    • getBlackouts

      public List<com.xebialabs.xlrelease.domain.calendar.Blackout> getBlackouts(Date from, Date to)
      Specified by:
      getBlackouts in interface com.xebialabs.xlrelease.api.v1.BlackoutApi
    • getBlackouts

      public List<com.xebialabs.xlrelease.domain.calendar.Blackout> getBlackouts()
      Specified by:
      getBlackouts in interface com.xebialabs.xlrelease.api.v1.BlackoutApi
    • getBlackout

      public com.xebialabs.xlrelease.domain.calendar.Blackout getBlackout(String blackoutId)
      Specified by:
      getBlackout in interface com.xebialabs.xlrelease.api.v1.BlackoutApi
    • addBlackout

      public com.xebialabs.xlrelease.domain.calendar.Blackout addBlackout(com.xebialabs.xlrelease.domain.calendar.Blackout blackout)
      Specified by:
      addBlackout in interface com.xebialabs.xlrelease.api.v1.BlackoutApi
    • addBlackout

      public com.xebialabs.xlrelease.domain.calendar.Blackout addBlackout(com.xebialabs.xlrelease.domain.calendar.BlackoutForm form)
      Specified by:
      addBlackout in interface com.xebialabs.xlrelease.api.v1.BlackoutApi
    • updateBlackout

      public com.xebialabs.xlrelease.domain.calendar.Blackout updateBlackout(com.xebialabs.xlrelease.domain.calendar.Blackout blackout)
      Specified by:
      updateBlackout in interface com.xebialabs.xlrelease.api.v1.BlackoutApi
    • updateBlackout

      public com.xebialabs.xlrelease.domain.calendar.Blackout updateBlackout(String blackoutId, com.xebialabs.xlrelease.domain.calendar.BlackoutForm form)
      Specified by:
      updateBlackout in interface com.xebialabs.xlrelease.api.v1.BlackoutApi
    • deleteBlackout

      public void deleteBlackout(String blackoutId)
      Specified by:
      deleteBlackout in interface com.xebialabs.xlrelease.api.v1.BlackoutApi
    • withinBlackout

      public boolean withinBlackout()
      Specified by:
      withinBlackout in interface com.xebialabs.xlrelease.api.v1.BlackoutApi
    • newBlackout

      public com.xebialabs.xlrelease.domain.calendar.Blackout newBlackout(String label, Date startDate, Date endDate)
      Specified by:
      newBlackout in interface com.xebialabs.xlrelease.api.v1.BlackoutApi