промежуточный. часть большого рефакторинга, касательно проходов связанных с сервером. Обновлена публикация групп.

This commit is contained in:
2023-11-16 16:20:20 +03:00
parent 3f00d0f300
commit 4545cf2d26
80 changed files with 346 additions and 254 deletions

View File

@@ -0,0 +1,29 @@
package Visual_DVM_2021.Passes.Server;
import Common.Current;
import Common.Database.riDBObject;
import Repository.RepositoryServer;
public class PublishServerObject<S extends RepositoryServer, D extends riDBObject> extends ServerObjectPass<S, D> {
public PublishServerObject(S server_in, Class<D> d_in) {
super(server_in, d_in);
}
@Override
public String getIconPath() {
return "/icons/RedAdd.png";
}
//--
@Override
protected boolean canStart(Object... args) throws Exception {
if (Current.getAccount().CheckRegistered(Log)) {
target = d.newInstance();
target.sender_name = Current.getAccount().name;
target.sender_address = Current.getAccount().email;
return fillObjectFields();
}
return false;
}
//--
@Override
protected void ServerAction() throws Exception {
PublishObject(target);
}
}