@Controller @Validated public class ChangeSettingsController extends LogViewerBaseController
Constructor and Description |
---|
ChangeSettingsController(UpdateSettingsService updateSettingsService)
Ctr for Change settings controller
|
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<SetExpiryCheckResponseDTO> |
checkIfLogsWillBeDeleted(@DecimalMin(value="0.00",inclusive=false,message="The expiry time must be bigger than 0!") double daysUntilExpiry)
Request to check whether changing setting to a given value would automatically prune any logs.
|
void |
setLogExpiryTime(@DecimalMin(value="0.00",inclusive=false,message="The expiry time must be bigger than 0!") double daysUntilExpiry)
Request to change the time period after which logs expire and are pruned.
|
constraintViolation, createErrorResponse, invalidContextException, invalidPackageFile, otherErrors, packageAlreadyExists, unableToCreateDumpException, unableToDeleteTemporaryFiles, unableToPruneWorkflowExecutionException, workflowDoesNotExistException
@Autowired public ChangeSettingsController(UpdateSettingsService updateSettingsService)
updateSettingsService
- Service that changes the settings and provides data about possible impact of those changes@PostMapping(value="/settings/set-log-expiry") @ResponseStatus(value=OK) public void setLogExpiryTime(@RequestParam @DecimalMin(value="0.00",inclusive=false,message="The expiry time must be bigger than 0!") @DecimalMin(value="0.00",inclusive=false,message="The expiry time must be bigger than 0!") double daysUntilExpiry)
daysUntilExpiry
- new amount of days until expiry@GetMapping(value="/settings/set-log-expiry-check") @ResponseBody public org.springframework.http.ResponseEntity<SetExpiryCheckResponseDTO> checkIfLogsWillBeDeleted(@RequestParam @DecimalMin(value="0.00",inclusive=false,message="The expiry time must be bigger than 0!") @DecimalMin(value="0.00",inclusive=false,message="The expiry time must be bigger than 0!") double daysUntilExpiry)
daysUntilExpiry
- potential new amount of days until expiryCopyright © 2020. All rights reserved.