no message
This commit is contained in:
23
.idea/workspace.xml
generated
23
.idea/workspace.xml
generated
@@ -7,14 +7,27 @@
|
|||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
|
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
|
||||||
<change afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/AdministrationForm.form" afterDir="false" />
|
<change afterPath="$PROJECT_DIR$/src/_VisualDVM/ComponentsServer/UserAccount/UI/UserAccountsForm.java" afterDir="false" />
|
||||||
<change afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/AdministrationForm.java" afterDir="false" />
|
<change afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/SynchronizeCredentials.java" afterDir="false" />
|
||||||
<change afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/AdministrationWindow.java" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CheckAccount.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CheckAccount.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/Common/Database/Database.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Database/Database.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ComponentsServer/BugReportsDatabase.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ComponentsServer/BugReportsDatabase.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ComponentsServer/ComponentsServer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ComponentsServer/ComponentsServer.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ComponentsServer/CredentialsDatabase.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ComponentsServer/CredentialsDatabase.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ComponentsServer/UserAccount/UserAccount.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ComponentsServer/UserAccount/UserAccount.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ComponentsServer/UserAccount/UserAccountsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ComponentsServer/UserAccount/UserAccountsDBTable.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Global.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Global.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/PassCode.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/PassCode.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Repository/Server/ServerCode.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Repository/Server/ServerCode.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/Common/TestsDatabase.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/Common/TestsDatabase.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/MainUI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/MainUI.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/AdministrationForm.form" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/AdministrationForm.form" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/AdministrationForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/AdministrationForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/AdministrationWindow.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Interface/AdministrationWindow.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/CallbackForm.form" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/CallbackForm.form" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/CallbackForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/CallbackForm.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/CallbackForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/CallbackForm.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/MainForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/MainForm.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/MainForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/MainForm.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/MainWindow.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/MainWindow.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/MainWindow.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Interface/MainWindow.java" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
|||||||
@@ -310,4 +310,10 @@ public abstract class Database {
|
|||||||
prepareTablesStatements();
|
prepareTablesStatements();
|
||||||
Synchronize();
|
Synchronize();
|
||||||
}
|
}
|
||||||
|
public void DropUI(){
|
||||||
|
SaveLastSelections();
|
||||||
|
}
|
||||||
|
public void ResetUI(){
|
||||||
|
RestoreLastSelections();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,14 +34,16 @@ public class BugReportsDatabase extends SQLiteDatabase {
|
|||||||
for (BugReport draft : drafts)
|
for (BugReport draft : drafts)
|
||||||
Delete(draft);
|
Delete(draft);
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
public void DropUI() {
|
public void DropUI() {
|
||||||
SaveLastSelections();
|
super.DropUI();
|
||||||
bugReports.ClearUI();
|
bugReports.ClearUI();
|
||||||
subscribers.ClearUI();
|
subscribers.ClearUI();
|
||||||
workspaces.ClearUI();
|
workspaces.ClearUI();
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
public void ResetUI() {
|
public void ResetUI() {
|
||||||
bugReports.ShowUI();
|
bugReports.ShowUI();
|
||||||
RestoreLastSelections();
|
super.ResetUI();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,7 +141,10 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
|
|||||||
Email(message, address);
|
Email(message, address);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//--
|
}
|
||||||
|
@Override
|
||||||
|
public void ActivateDB() {
|
||||||
|
super.ActivateDB();
|
||||||
try {
|
try {
|
||||||
credentials_db = new CredentialsDatabase();
|
credentials_db = new CredentialsDatabase();
|
||||||
credentials_db.Activate();
|
credentials_db.Activate();
|
||||||
@@ -339,6 +342,9 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
|
|||||||
}
|
}
|
||||||
response.object = account;
|
response.object = account;
|
||||||
}
|
}
|
||||||
|
void ReceiveCredentialsDatabase() throws Exception{
|
||||||
|
response.object = Utils_.fileToBytes(credentials_db.getFile());
|
||||||
|
}
|
||||||
//--
|
//--
|
||||||
@Override
|
@Override
|
||||||
protected void UnsafeSession() throws Exception {
|
protected void UnsafeSession() throws Exception {
|
||||||
@@ -375,6 +381,9 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
|
|||||||
@Override
|
@Override
|
||||||
protected void Session() throws Exception {
|
protected void Session() throws Exception {
|
||||||
switch (code) {
|
switch (code) {
|
||||||
|
case ReceiveCredentialsDatabase:
|
||||||
|
ReceiveCredentialsDatabase();
|
||||||
|
break;
|
||||||
case ReceiveAllArchives:
|
case ReceiveAllArchives:
|
||||||
ReceiveAllArchives();
|
ReceiveAllArchives();
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -17,4 +17,14 @@ public class CredentialsDatabase extends SQLiteDatabase {
|
|||||||
public PassCode_ getSynchronizePassCode() {
|
public PassCode_ getSynchronizePassCode() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public void DropUI() {
|
||||||
|
super.DropUI();
|
||||||
|
userAccounts.ClearUI();
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void ResetUI() {
|
||||||
|
userAccounts.ShowUI();
|
||||||
|
super.ResetUI();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,54 @@
|
|||||||
|
package _VisualDVM.ComponentsServer.UserAccount.UI;
|
||||||
|
import Common.Database.Tables.DataSet;
|
||||||
|
import Common.Visual.DataSetControlForm;
|
||||||
|
import Common.Visual.Menus.DataMenuBar;
|
||||||
|
import Common.Visual.Tables.ColumnInfo;
|
||||||
|
import _VisualDVM.ComponentsServer.Subscribes.Subscriber;
|
||||||
|
import _VisualDVM.ComponentsServer.UserAccount.AccountRole;
|
||||||
|
import _VisualDVM.ComponentsServer.UserAccount.UserAccount;
|
||||||
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.Passes.PassCode;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
|
public class UserAccountsForm extends DataSetControlForm<UserAccount> {
|
||||||
|
public UserAccountsForm(DataSet<?, UserAccount> dataSource_in, JPanel mountPanel_in) {
|
||||||
|
super(dataSource_in, mountPanel_in);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
protected void createColumns() {
|
||||||
|
AddColumns(
|
||||||
|
new ColumnInfo<UserAccount>("Имя") {
|
||||||
|
@Override
|
||||||
|
public Object getFieldAt(UserAccount object) {
|
||||||
|
return object.name;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
new ColumnInfo<UserAccount>("Почта") {
|
||||||
|
@Override
|
||||||
|
public Object getFieldAt(UserAccount object) {
|
||||||
|
return object.email;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
new ColumnInfo<UserAccount>("Роль") {
|
||||||
|
@Override
|
||||||
|
public Object getFieldAt(UserAccount object) {
|
||||||
|
return object.role.getDescription();
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public boolean isVisible() {
|
||||||
|
return Global.mainModule.getAccount().role.equals(AccountRole.Admin);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
new ColumnInfo<UserAccount>("Рассылка") {
|
||||||
|
@Override
|
||||||
|
public Object getFieldAt(UserAccount object) {
|
||||||
|
return (object.subscribe_active == 0) ? "выключена" : "включена";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
protected DataMenuBar createMenuBar() {
|
||||||
|
return new DataMenuBar(dataSource.getPluralDescription(), PassCode.SynchronizeCredentials);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -8,6 +8,8 @@ import com.sun.org.glassfish.gmbal.Description;
|
|||||||
public class UserAccount extends iDBObject {
|
public class UserAccount extends iDBObject {
|
||||||
public String name = "";
|
public String name = "";
|
||||||
public String email = "";
|
public String email = "";
|
||||||
|
@Description("DEFAULT ''")
|
||||||
|
public String telegram_name="";
|
||||||
@Description("DEFAULT 1")
|
@Description("DEFAULT 1")
|
||||||
public int subscribe_active = 1;
|
public int subscribe_active = 1;
|
||||||
public String security_key = "";
|
public String security_key = "";
|
||||||
@@ -25,6 +27,7 @@ public class UserAccount extends iDBObject {
|
|||||||
UserAccount src_ = (UserAccount) src;
|
UserAccount src_ = (UserAccount) src;
|
||||||
name = src_.name;
|
name = src_.name;
|
||||||
email = src_.email;
|
email = src_.email;
|
||||||
|
telegram_name=src_.telegram_name;
|
||||||
subscribe_active=src_.subscribe_active;
|
subscribe_active=src_.subscribe_active;
|
||||||
security_key = src_.security_key;
|
security_key = src_.security_key;
|
||||||
role = src_.role;
|
role = src_.role;
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
package _VisualDVM.ComponentsServer.UserAccount;
|
package _VisualDVM.ComponentsServer.UserAccount;
|
||||||
import Common.Database.Tables.iDBTable;
|
import Common.Database.Tables.iDBTable;
|
||||||
|
import Common.Visual.DataSetControlForm;
|
||||||
|
import _VisualDVM.ComponentsServer.UserAccount.UI.UserAccountsForm;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
public class UserAccountsDBTable extends iDBTable<UserAccount> {
|
public class UserAccountsDBTable extends iDBTable<UserAccount> {
|
||||||
public UserAccountsDBTable() {
|
public UserAccountsDBTable() {
|
||||||
super(UserAccount.class);
|
super(UserAccount.class);
|
||||||
@@ -18,4 +22,16 @@ public class UserAccountsDBTable extends iDBTable<UserAccount> {
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
|
return new UserAccountsForm(this, mountPanel);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "учётная запись";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "учётные записи";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -130,6 +130,8 @@ public class Global {
|
|||||||
mainModule.DeactivateDB();
|
mainModule.DeactivateDB();
|
||||||
if (componentsServer.db != null)
|
if (componentsServer.db != null)
|
||||||
componentsServer.db.Disconnect();
|
componentsServer.db.Disconnect();
|
||||||
|
if (componentsServer.credentials_db!=null)
|
||||||
|
componentsServer.credentials_db.Disconnect();
|
||||||
if (testingServer.db != null)
|
if (testingServer.db != null)
|
||||||
testingServer.db.Disconnect();
|
testingServer.db.Disconnect();
|
||||||
if (visualizer_2 != null)
|
if (visualizer_2 != null)
|
||||||
@@ -196,15 +198,6 @@ public class Global {
|
|||||||
//light_editor.xml-------->>
|
//light_editor.xml-------->>
|
||||||
mainModule.ActivateDB();
|
mainModule.ActivateDB();
|
||||||
// https://habr.com/ru/articles/446888/ сертификат?
|
// https://habr.com/ru/articles/446888/ сертификат?
|
||||||
/*
|
|
||||||
mainModule.set(Current.Account, new Account() {
|
|
||||||
{
|
|
||||||
name = "M";
|
|
||||||
email = "vmk-post@yandex.ru";
|
|
||||||
role = AccountRole.Admin;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
*/
|
|
||||||
mainModule.getPass(PassCode.CheckAccount).Do();
|
mainModule.getPass(PassCode.CheckAccount).Do();
|
||||||
//---------------
|
//---------------
|
||||||
componentsServer.ActivateDB();
|
componentsServer.ActivateDB();
|
||||||
|
|||||||
35
src/_VisualDVM/Passes/All/SynchronizeCredentials.java
Normal file
35
src/_VisualDVM/Passes/All/SynchronizeCredentials.java
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
package _VisualDVM.Passes.All;
|
||||||
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.Passes.Server.ComponentsServerPass;
|
||||||
|
import _VisualDVM.Repository.Server.ServerCode;
|
||||||
|
import _VisualDVM.Utils;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
public class SynchronizeCredentials extends ComponentsServerPass<Object> {
|
||||||
|
File new_db_file;
|
||||||
|
@Override
|
||||||
|
public String getIconPath() {
|
||||||
|
return "/icons/ComponentsActual.png";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
|
return Global.mainModule.getAccount().CheckAdmin(Log) && SendRequest(ServerCode.ReceiveCredentialsDatabase);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
protected void showPreparation() throws Exception {
|
||||||
|
getServer().credentials_db.DropUI();
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
protected void body() throws Exception {
|
||||||
|
request.server_response.Unpack(new_db_file = Utils.getTempFileName("сdb"));
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
protected void performDone() throws Exception {
|
||||||
|
getServer().credentials_db.ReplaceFileAndReconnect(new_db_file);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
protected void showDone() throws Exception {
|
||||||
|
if (Global.mainModule.getUI().hasMainWindow())
|
||||||
|
getServer().credentials_db.ResetUI();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -354,12 +354,15 @@ public enum PassCode implements PassCode_ {
|
|||||||
JoinSapforTestingVersionsToGroup,
|
JoinSapforTestingVersionsToGroup,
|
||||||
RefreshDVMPackageResults,
|
RefreshDVMPackageResults,
|
||||||
DetectSelectedTestsMinMaDim,
|
DetectSelectedTestsMinMaDim,
|
||||||
ConfirmEmail
|
ConfirmEmail,
|
||||||
|
SynchronizeCredentials,
|
||||||
;
|
;
|
||||||
//--
|
//--
|
||||||
@Override
|
@Override
|
||||||
public String getDescription() {
|
public String getDescription() {
|
||||||
switch (this) {
|
switch (this) {
|
||||||
|
case SynchronizeCredentials:
|
||||||
|
return "Синхронизация учётных записей";
|
||||||
case ConfirmEmail:
|
case ConfirmEmail:
|
||||||
return "Подтверждение почты";
|
return "Подтверждение почты";
|
||||||
case DetectSelectedTestsMinMaDim:
|
case DetectSelectedTestsMinMaDim:
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ public enum ServerCode {
|
|||||||
//--
|
//--
|
||||||
ReceiveBugReportsDatabase,
|
ReceiveBugReportsDatabase,
|
||||||
ReceiveTestsDatabase,
|
ReceiveTestsDatabase,
|
||||||
|
ReceiveCredentialsDatabase,
|
||||||
UpdateComponent,
|
UpdateComponent,
|
||||||
ReceiveComponent,
|
ReceiveComponent,
|
||||||
ReceiveBugReport,
|
ReceiveBugReport,
|
||||||
@@ -63,10 +64,11 @@ public enum ServerCode {
|
|||||||
ReplaceDVMPackageResults,
|
ReplaceDVMPackageResults,
|
||||||
DetectTestsMinMaxDim,
|
DetectTestsMinMaxDim,
|
||||||
GetUserAccountByKey,
|
GetUserAccountByKey,
|
||||||
GetUserAccountByEmail,
|
GetUserAccountByEmail;
|
||||||
;
|
|
||||||
public String getDescription(){
|
public String getDescription(){
|
||||||
switch (this){
|
switch (this){
|
||||||
|
case ReceiveCredentialsDatabase:
|
||||||
|
return "Скачивание базы учётных записей с сервера";
|
||||||
case GetUserAccountByEmail:
|
case GetUserAccountByEmail:
|
||||||
return "Получение информации об аккаунте по адресу почты";
|
return "Получение информации об аккаунте по адресу почты";
|
||||||
case GetUserAccountByKey:
|
case GetUserAccountByKey:
|
||||||
|
|||||||
@@ -319,20 +319,11 @@ public class TestsDatabase extends SQLiteDatabase {
|
|||||||
tests.getUI().SelectAll(false);
|
tests.getUI().SelectAll(false);
|
||||||
dvmConfigurations.getUI().SelectAll(false);
|
dvmConfigurations.getUI().SelectAll(false);
|
||||||
}
|
}
|
||||||
public void CheckTestsPackagesDependencies(Vector<Integer> testsIds, TextLog Log) {
|
|
||||||
//определить есть ли активные пакеты в которые входят упомянутые тесты
|
|
||||||
//если есть выписать группа/тест причина - находится в активном пакете
|
|
||||||
}
|
|
||||||
public void RefreshTestNameInConfigurations(Integer testId) {
|
|
||||||
//обновить имя теста во всех конфигурация
|
|
||||||
}
|
|
||||||
public void DeleteTestFromConfigurations(Integer testId) {
|
|
||||||
//обновить имя теста во всех конфигурация
|
|
||||||
}
|
|
||||||
//todo возможно рассмотреть вариант с синхроннизацией тестов для пакетов через команду серверу а не в нити
|
//todo возможно рассмотреть вариант с синхроннизацией тестов для пакетов через команду серверу а не в нити
|
||||||
//во избежание конфликта доступа,или удалением тестов во время копирования(?)
|
//во избежание конфликта доступа,или удалением тестов во время копирования(?)
|
||||||
|
@Override
|
||||||
public void DropUI(){
|
public void DropUI(){
|
||||||
SaveLastSelections();
|
super.DropUI();
|
||||||
dvmConfigurations.ClearUI();
|
dvmConfigurations.ClearUI();
|
||||||
groups.ClearUI();
|
groups.ClearUI();
|
||||||
sapforConfigurations.ClearUI();
|
sapforConfigurations.ClearUI();
|
||||||
@@ -342,6 +333,7 @@ public class TestsDatabase extends SQLiteDatabase {
|
|||||||
sapforSettings.ClearUI();
|
sapforSettings.ClearUI();
|
||||||
dvmSettings.ClearUI();
|
dvmSettings.ClearUI();
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
public void ResetUI(){
|
public void ResetUI(){
|
||||||
VisualCaches.ClearDataForClass(DVMConfiguration.class);
|
VisualCaches.ClearDataForClass(DVMConfiguration.class);
|
||||||
VisualCaches.ClearDataForClass(SapforConfiguration.class);
|
VisualCaches.ClearDataForClass(SapforConfiguration.class);
|
||||||
@@ -356,6 +348,6 @@ public class TestsDatabase extends SQLiteDatabase {
|
|||||||
sapforPackages.ShowUI();
|
sapforPackages.ShowUI();
|
||||||
sapforSettings.ShowUI();
|
sapforSettings.ShowUI();
|
||||||
dvmSettings.ShowUI();
|
dvmSettings.ShowUI();
|
||||||
RestoreLastSelections();
|
super.ResetUI();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package _VisualDVM.Visual.Windows;
|
package _VisualDVM.Visual.Interface;
|
||||||
import Common.Visual.VisualizerForm;
|
import Common.Visual.VisualizerForm;
|
||||||
public interface AdministrationWindow extends VisualizerForm {
|
public interface AdministrationWindow extends VisualizerForm {
|
||||||
void ShowAll();
|
void ShowAll();
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
package _VisualDVM.Visual.Windows;
|
package _VisualDVM.Visual.Interface;
|
||||||
import _VisualDVM.Visual.Interface.*;
|
|
||||||
public interface MainWindow {
|
public interface MainWindow {
|
||||||
void Show();
|
void Show();
|
||||||
void ShowProject();
|
void ShowProject();
|
||||||
@@ -5,6 +5,7 @@ import _VisualDVM.GlobalData.RemoteFile.UI.RemoteFileChooser;
|
|||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.TestingSystem.Common.TestingMenuBar;
|
import _VisualDVM.TestingSystem.Common.TestingMenuBar;
|
||||||
import _VisualDVM.Visual.Interface.DebugWindow;
|
import _VisualDVM.Visual.Interface.DebugWindow;
|
||||||
|
import _VisualDVM.Visual.Interface.MainWindow;
|
||||||
import _VisualDVM.Visual.Interface.VersionsWindow;
|
import _VisualDVM.Visual.Interface.VersionsWindow;
|
||||||
import _VisualDVM.Visual.Menus.MainMenuBar.MainMenuBar;
|
import _VisualDVM.Visual.Menus.MainMenuBar.MainMenuBar;
|
||||||
import _VisualDVM.Visual.Menus.VersionsMenuBar.VersionsMenuBar;
|
import _VisualDVM.Visual.Menus.VersionsMenuBar.VersionsMenuBar;
|
||||||
|
|||||||
@@ -6,6 +6,33 @@
|
|||||||
</constraints>
|
</constraints>
|
||||||
<properties/>
|
<properties/>
|
||||||
<border type="none"/>
|
<border type="none"/>
|
||||||
<children/>
|
<children>
|
||||||
|
<splitpane id="8b024" binding="SC67">
|
||||||
|
<constraints border-constraint="Center"/>
|
||||||
|
<properties>
|
||||||
|
<dividerLocation value="400"/>
|
||||||
|
<dividerSize value="3"/>
|
||||||
|
</properties>
|
||||||
|
<border type="none"/>
|
||||||
|
<children>
|
||||||
|
<grid id="7a8ba" binding="userAccountsPanel" layout-manager="BorderLayout" hgap="0" vgap="0">
|
||||||
|
<constraints>
|
||||||
|
<splitpane position="left"/>
|
||||||
|
</constraints>
|
||||||
|
<properties/>
|
||||||
|
<border type="none"/>
|
||||||
|
<children/>
|
||||||
|
</grid>
|
||||||
|
<grid id="7d3b" binding="workspacesPanel" layout-manager="BorderLayout" hgap="0" vgap="0">
|
||||||
|
<constraints>
|
||||||
|
<splitpane position="right"/>
|
||||||
|
</constraints>
|
||||||
|
<properties/>
|
||||||
|
<border type="none"/>
|
||||||
|
<children/>
|
||||||
|
</grid>
|
||||||
|
</children>
|
||||||
|
</splitpane>
|
||||||
|
</children>
|
||||||
</grid>
|
</grid>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -1,14 +1,23 @@
|
|||||||
package _VisualDVM.Visual.Windows;
|
package _VisualDVM.Visual.Windows;
|
||||||
import Common.Visual.FormWithSplitters;
|
import Common.Visual.FormWithSplitters;
|
||||||
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.Visual.Interface.AdministrationWindow;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
public class AdministrationForm implements FormWithSplitters,AdministrationWindow {
|
public class AdministrationForm implements FormWithSplitters, AdministrationWindow {
|
||||||
private JPanel content;
|
private JPanel content;
|
||||||
|
public JSplitPane SC67;
|
||||||
|
private JPanel userAccountsPanel;
|
||||||
|
private JPanel workspacesPanel;
|
||||||
@Override
|
@Override
|
||||||
public JPanel getContent() {
|
public JPanel getContent() {
|
||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
|
public AdministrationForm(){
|
||||||
|
Global.componentsServer.credentials_db.userAccounts.mountUI(userAccountsPanel);
|
||||||
|
}
|
||||||
@Override
|
@Override
|
||||||
public void ShowAll() {
|
public void ShowAll() {
|
||||||
|
Global.componentsServer.credentials_db.userAccounts.ShowUI();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -418,32 +418,12 @@
|
|||||||
</properties>
|
</properties>
|
||||||
<border type="none"/>
|
<border type="none"/>
|
||||||
<children>
|
<children>
|
||||||
<splitpane id="14cc5" binding="SC67">
|
<grid id="bd1dc" binding="subscribersPanel" layout-manager="BorderLayout" hgap="0" vgap="0">
|
||||||
<constraints border-constraint="Center"/>
|
<constraints border-constraint="Center"/>
|
||||||
<properties>
|
<properties/>
|
||||||
<dividerLocation value="400"/>
|
|
||||||
<dividerSize value="3"/>
|
|
||||||
</properties>
|
|
||||||
<border type="none"/>
|
<border type="none"/>
|
||||||
<children>
|
<children/>
|
||||||
<grid id="d6557" binding="subscribersPanel" layout-manager="BorderLayout" hgap="0" vgap="0">
|
</grid>
|
||||||
<constraints>
|
|
||||||
<splitpane position="left"/>
|
|
||||||
</constraints>
|
|
||||||
<properties/>
|
|
||||||
<border type="none"/>
|
|
||||||
<children/>
|
|
||||||
</grid>
|
|
||||||
<grid id="73357" binding="workspacesPanel" layout-manager="BorderLayout" hgap="0" vgap="0">
|
|
||||||
<constraints>
|
|
||||||
<splitpane position="right"/>
|
|
||||||
</constraints>
|
|
||||||
<properties/>
|
|
||||||
<border type="none"/>
|
|
||||||
<children/>
|
|
||||||
</grid>
|
|
||||||
</children>
|
|
||||||
</splitpane>
|
|
||||||
</children>
|
</children>
|
||||||
</grid>
|
</grid>
|
||||||
</children>
|
</children>
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ public class CallbackForm implements FormWithSplitters, CallbackWindow {
|
|||||||
public DescriptionInterface descriptionInterface;
|
public DescriptionInterface descriptionInterface;
|
||||||
public CommentInterface commentInterface;
|
public CommentInterface commentInterface;
|
||||||
public JSplitPane SC6;
|
public JSplitPane SC6;
|
||||||
public JSplitPane SC67;
|
|
||||||
DocumentListener descriptionAdditionListener = new DocumentListener() {
|
DocumentListener descriptionAdditionListener = new DocumentListener() {
|
||||||
@Override
|
@Override
|
||||||
public void removeUpdate(DocumentEvent e) {
|
public void removeUpdate(DocumentEvent e) {
|
||||||
@@ -155,7 +154,7 @@ public class CallbackForm implements FormWithSplitters, CallbackWindow {
|
|||||||
//-
|
//-
|
||||||
Global.componentsServer.db.bugReports.mountUI(bugReportsPanel);
|
Global.componentsServer.db.bugReports.mountUI(bugReportsPanel);
|
||||||
Global.componentsServer.db.subscribers.mountUI(subscribersPanel);
|
Global.componentsServer.db.subscribers.mountUI(subscribersPanel);
|
||||||
Global.componentsServer.db.workspaces.mountUI(workspacesPanel);
|
// Global.componentsServer.db.workspaces.mountUI(workspacesPanel);
|
||||||
//-
|
//-
|
||||||
if (!Global.mainModule.getPass(PassCode.CheckAccount).isDone()) {
|
if (!Global.mainModule.getPass(PassCode.CheckAccount).isDone()) {
|
||||||
accountTools.add(Global.mainModule.getPass(PassCode.CheckAccount).createButton());
|
accountTools.add(Global.mainModule.getPass(PassCode.CheckAccount).createButton());
|
||||||
|
|||||||
@@ -243,6 +243,8 @@ public class MainForm extends Form implements MainWindow {
|
|||||||
getCredentialsWindow().ShowAll();
|
getCredentialsWindow().ShowAll();
|
||||||
if (getTestingWindow() != null)
|
if (getTestingWindow() != null)
|
||||||
getTestingWindow().ShowAll();
|
getTestingWindow().ShowAll();
|
||||||
|
if (Global.mainModule.getAccount().isAdmin())
|
||||||
|
getAdministrationWindow().ShowAll();
|
||||||
MainModule_.instance.getUI().windowsStack.push(this);
|
MainModule_.instance.getUI().windowsStack.push(this);
|
||||||
super.Show();
|
super.Show();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user