Feature do not temp store uploaded files (#763)

* Upload artefacts directly without creating a temp file
* Remove redundant code that checks if user tries to update a directory
* Handle UI upload exceptions, use Spring thread pool
* Clean up code
* Fix review findings
* Fix Sonar findings

Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>
Signed-off-by: Stefan Behl <stefan.behl@bosch-si.com>
This commit is contained in:
Stefan Klotz
2018-11-12 08:57:10 +01:00
committed by Stefan Behl
parent 49d064df18
commit d4c1e82090
11 changed files with 266 additions and 137 deletions

View File

@@ -25,9 +25,7 @@ public class TargetWithActionType {
private String maintenanceWindowTimeZone;
public TargetWithActionType(final String controllerId) {
this.controllerId = controllerId;
this.actionType = ActionType.FORCED;
this.forceTime = 0;
this(controllerId, ActionType.FORCED, 0);
}
public TargetWithActionType(final String controllerId, final ActionType actionType, final long forceTime) {
@@ -115,4 +113,13 @@ public class TargetWithActionType {
public String getMaintenanceWindowTimeZone() {
return maintenanceWindowTimeZone;
}
@Override
public String toString() {
return "TargetWithActionType [controllerId=" + controllerId + ", actionType=" + getActionType() + ", forceTime="
+ getForceTime() + ", maintenanceSchedule=" + getMaintenanceSchedule() + ", maintenanceWindowDuration="
+ getMaintenanceWindowDuration() + ", maintenanceWindowTimeZone=" + getMaintenanceWindowTimeZone()
+ "]";
}
}