Class ScheduleController
java.lang.Object
es.kukenan.smartfi.microservice.smartficore.controller.ScheduleController
Controller to reply Core Schedule endpoints definition.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAuthority (role) required in order to be able to invoke change application status.private ScheduleServiceSchedule service. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<es.kukenan.smartfi.dto.ResponseDTO<Object>>Excute Schedule on demand.
-
Field Details
-
scheduleService
Schedule service. -
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.
-