клонирование параметров тестирования двм/сапфора
This commit is contained in:
15
src/Visual_DVM_2021/Passes/All/CloneDVMSettings.java
Normal file
15
src/Visual_DVM_2021/Passes/All/CloneDVMSettings.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current;
|
||||
import Common.Global;
|
||||
import TestingSystem.Common.TestingServer;
|
||||
import TestingSystem.DVM.DVMSettings.DVMSettings;
|
||||
import Visual_DVM_2021.Passes.Server.CloneServerObject;
|
||||
public class CloneDVMSettings extends CloneServerObject<TestingServer, DVMSettings> {
|
||||
public CloneDVMSettings() {
|
||||
super(Global.testingServer, DVMSettings.class);
|
||||
}
|
||||
@Override
|
||||
protected Current currentName() {
|
||||
return Current.DVMSettings;
|
||||
}
|
||||
}
|
||||
36
src/Visual_DVM_2021/Passes/All/CloneSapforSettings.java
Normal file
36
src/Visual_DVM_2021/Passes/All/CloneSapforSettings.java
Normal file
@@ -0,0 +1,36 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current;
|
||||
import Common.Database.DBObject;
|
||||
import Common.Global;
|
||||
import Common.Utils.Vector_;
|
||||
import Repository.Server.ServerCode;
|
||||
import Repository.Server.ServerExchangeUnit_2021;
|
||||
import TestingSystem.Common.TestingServer;
|
||||
import TestingSystem.SAPFOR.SapforSettings.SapforSettings;
|
||||
import TestingSystem.SAPFOR.SapforSettingsCommand.SapforSettingsCommand;
|
||||
import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
import Visual_DVM_2021.Passes.Server.CloneServerObject;
|
||||
|
||||
import java.util.Vector;
|
||||
public class CloneSapforSettings extends CloneServerObject<TestingServer, SapforSettings> {
|
||||
public CloneSapforSettings() {
|
||||
super(Global.testingServer, SapforSettings.class);
|
||||
}
|
||||
@Override
|
||||
protected Current currentName() {
|
||||
return Current.SapforSettings;
|
||||
}
|
||||
@Override
|
||||
protected void ServerAction() throws Exception {
|
||||
super.ServerAction();
|
||||
Vector<PassCode_2021> codes = src.getCodes();
|
||||
Vector<DBObject> new_commands = new Vector<>();
|
||||
for (PassCode_2021 code : codes) {
|
||||
SapforSettingsCommand command = new SapforSettingsCommand();
|
||||
command.sapforsettings_id = (int) pk;
|
||||
command.passCode = code;
|
||||
new_commands.add(command);
|
||||
}
|
||||
Command(new ServerExchangeUnit_2021(ServerCode.PublishObjects,null, new_commands));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user