v0.2.51..v0.2.52 changeset DeleteMapResourcesCommand.java
Garret Voltz edited this page Jan 15, 2020
·
1 revision
diff --git a/hoot-services/src/main/java/hoot/services/controllers/osm/map/DeleteMapResourcesCommand.java b/hoot-services/src/main/java/hoot/services/controllers/osm/map/DeleteMapResourcesCommand.java
index c63a7dd..eb7de65 100644
--- a/hoot-services/src/main/java/hoot/services/controllers/osm/map/DeleteMapResourcesCommand.java
+++ b/hoot-services/src/main/java/hoot/services/controllers/osm/map/DeleteMapResourcesCommand.java
@@ -22,7 +22,7 @@
* This will properly maintain the copyright information. DigitalGlobe
* copyrights will be updated automatically.
*
- * @copyright Copyright (C) 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2016, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
*/
package hoot.services.controllers.osm.map;
@@ -33,7 +33,6 @@ import static hoot.services.utils.DbUtils.createQuery;
import static hoot.services.utils.DbUtils.deleteMapRelatedTablesByMapId;
import java.time.LocalDateTime;
-import java.util.UUID;
import hoot.services.command.CommandResult;
import hoot.services.command.InternalCommand;
@@ -43,10 +42,12 @@ import hoot.services.utils.DbUtils;
public class DeleteMapResourcesCommand implements InternalCommand {
private final String mapName;
+ private final String jobId;
private final Class<?> caller;
- DeleteMapResourcesCommand(String mapName, Class<?> caller) {
+ DeleteMapResourcesCommand(String mapName, String jobId, Class<?> caller) {
this.mapName = mapName;
+ this.jobId = jobId;
this.caller = caller;
}
@@ -66,7 +67,7 @@ public class DeleteMapResourcesCommand implements InternalCommand {
commandResult.setExitCode(CommandResult.SUCCESS);
commandResult.setFinish(LocalDateTime.now());
- commandResult.setJobId(UUID.randomUUID().toString());
+ commandResult.setJobId(jobId);
commandResult.setCaller(this.caller.getName());
return commandResult;