2024-10-14 12:14:01 +03:00
|
|
|
package _VisualDVM.Passes.All;
|
2024-10-07 00:58:29 +03:00
|
|
|
import Common.Database.Objects.DBObject;
|
2024-10-14 15:19:13 +03:00
|
|
|
import _VisualDVM.Current;
|
2024-10-07 00:58:29 +03:00
|
|
|
import _VisualDVM.Global;
|
2024-10-14 15:19:13 +03:00
|
|
|
import _VisualDVM.Passes.PassCode;
|
|
|
|
|
import _VisualDVM.Passes.Server.CloneServerObject;
|
2024-10-09 22:21:57 +03:00
|
|
|
import _VisualDVM.Repository.Server.ServerCode;
|
|
|
|
|
import _VisualDVM.Repository.Server.ServerExchangeUnit_2021;
|
|
|
|
|
import _VisualDVM.TestingSystem.Common.TestingServer;
|
|
|
|
|
import _VisualDVM.TestingSystem.SAPFOR.SapforSettings.SapforSettings;
|
|
|
|
|
import _VisualDVM.TestingSystem.SAPFOR.SapforSettingsCommand.SapforSettingsCommand;
|
2024-10-14 15:19:13 +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();
|
2024-10-09 23:37:58 +03:00
|
|
|
Vector<PassCode> codes = src.getCodes();
|
2024-10-03 14:36:45 +03:00
|
|
|
Vector<DBObject> new_commands = new Vector<>();
|
2024-10-09 23:37:58 +03:00
|
|
|
for (PassCode code : codes) {
|
2024-10-03 14:36:45 +03:00
|
|
|
SapforSettingsCommand command = new SapforSettingsCommand();
|
|
|
|
|
command.sapforsettings_id = (int) pk;
|
|
|
|
|
command.passCode = code;
|
|
|
|
|
new_commands.add(command);
|
|
|
|
|
}
|
2024-10-14 15:19:13 +03:00
|
|
|
Command(new ServerExchangeUnit_2021(ServerCode.PublishObjects, null, new_commands));
|
2024-10-03 14:36:45 +03:00
|
|
|
}
|
|
|
|
|
}
|