no message
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package _VisualDVM.TestingSystem.Common;
|
||||
import Common.CommonConstants;
|
||||
import Common.Database.Objects.DBObject;
|
||||
import Common.Database.Objects.riDBObject;
|
||||
import Common.Database.RepositoryRefuseException;
|
||||
import Common.Utils.TextLog;
|
||||
import Common.Utils.Utils_;
|
||||
@@ -103,6 +104,21 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
|
||||
}
|
||||
}
|
||||
@Override
|
||||
protected void afterCloneAction(riDBObject src, riDBObject dst) throws Exception{
|
||||
if (src instanceof SapforSettings){
|
||||
Vector<PassCode> codes = new Vector<>();
|
||||
for (SapforSettingsCommand command : db.sapforSettingsCommands.Data.values())
|
||||
if (command.sapforsettings_id == src.id) codes.add(command.passCode);
|
||||
//--
|
||||
for (PassCode code : codes) {
|
||||
SapforSettingsCommand command = new SapforSettingsCommand();
|
||||
command.sapforsettings_id = dst.id;
|
||||
command.passCode = code;
|
||||
db.Insert(command);
|
||||
}
|
||||
}
|
||||
}
|
||||
@Override
|
||||
protected void afterEditAction(DBObject object) throws Exception {
|
||||
if (object instanceof Group) {
|
||||
Group group = (Group) object;
|
||||
|
||||
Reference in New Issue
Block a user