Loading atlas-commands/src/main/java/es/redmic/atlascommands/commands/layer/CreateLayerCommand.java +6 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,8 @@ package es.redmic.atlascommands.commands.layer; import java.util.UUID; import org.joda.time.DateTime; import es.redmic.atlaslib.dto.layer.LayerDTO; import es.redmic.atlaslib.utils.LayerUtil; import es.redmic.commandslib.commands.Command; Loading @@ -39,6 +41,10 @@ public class CreateLayerCommand extends Command { // Se crea un id único para Layer layer.setId(LayerUtil.generateId(UUID.randomUUID().toString())); } layer.setInserted(DateTime.now()); layer.setUpdated(DateTime.now()); this.setLayer(layer); } Loading atlas-commands/src/main/java/es/redmic/atlascommands/commands/layer/UpdateLayerCommand.java +5 −0 Original line number Diff line number Diff line package es.redmic.atlascommands.commands.layer; import org.joda.time.DateTime; import es.redmic.atlaslib.dto.layer.LayerDTO; import es.redmic.commandslib.commands.Command; Loading Loading @@ -31,6 +33,9 @@ public class UpdateLayerCommand extends Command { } public UpdateLayerCommand(LayerDTO layer) { layer.setUpdated(DateTime.now()); this.setLayer(layer); } Loading Loading
atlas-commands/src/main/java/es/redmic/atlascommands/commands/layer/CreateLayerCommand.java +6 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,8 @@ package es.redmic.atlascommands.commands.layer; import java.util.UUID; import org.joda.time.DateTime; import es.redmic.atlaslib.dto.layer.LayerDTO; import es.redmic.atlaslib.utils.LayerUtil; import es.redmic.commandslib.commands.Command; Loading @@ -39,6 +41,10 @@ public class CreateLayerCommand extends Command { // Se crea un id único para Layer layer.setId(LayerUtil.generateId(UUID.randomUUID().toString())); } layer.setInserted(DateTime.now()); layer.setUpdated(DateTime.now()); this.setLayer(layer); } Loading
atlas-commands/src/main/java/es/redmic/atlascommands/commands/layer/UpdateLayerCommand.java +5 −0 Original line number Diff line number Diff line package es.redmic.atlascommands.commands.layer; import org.joda.time.DateTime; import es.redmic.atlaslib.dto.layer.LayerDTO; import es.redmic.commandslib.commands.Command; Loading Loading @@ -31,6 +33,9 @@ public class UpdateLayerCommand extends Command { } public UpdateLayerCommand(LayerDTO layer) { layer.setUpdated(DateTime.now()); this.setLayer(layer); } Loading