2024-10-03 14:36:45 +03:00
|
|
|
package Visual_DVM_2021.Passes.All;
|
2024-10-09 22:01:19 +03:00
|
|
|
import _VisualDVM.Current;
|
2024-10-07 00:58:29 +03:00
|
|
|
import Common.Database.Objects.DBObject;
|
|
|
|
|
import _VisualDVM.Global;
|
2024-10-03 14:36:45 +03:00
|
|
|
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;
|
2024-10-03 16:21:11 +03:00
|
|
|
//автоматической
|
2024-10-03 14:36:45 +03:00
|
|
|
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));
|
|
|
|
|
}
|
|
|
|
|
}
|