Class ScheduleController

java.lang.Object
es.kukenan.smartfi.microservice.smartficore.controller.ScheduleController

@RestController public class ScheduleController extends Object
Controller to reply Core Schedule endpoints definition.
  • Field Details

    • scheduleService

      @Autowired private ScheduleService scheduleService
      Schedule service.
    • API_BACKOFFICE_AUTHORITIES

      public static final String API_BACKOFFICE_AUTHORITIES
      Authority (role) required in order to be able to invoke change application status.
      See Also:
  • Constructor Details

    • ScheduleController

      public ScheduleController()
  • Method Details

    • getExecutionOnDemand

      @PreAuthorize("(hasRole(\'ROLE_ACCESS_ADMIN\') and hasRole(\'ROLE_LEVEL_BACKOFFICE_ADMIN\')) or (hasRole(\'ROLE_ACCESS_MODERATOR\') and hasRole(\'ROLE_LEVEL_USER_MODERATOR\'))") @GetMapping(path="/api-schedule/execute") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.dto.ResponseDTO<Object>> getExecutionOnDemand()
      Excute Schedule on demand.
      Returns:
      execution flag.