no message

This commit is contained in:
2025-03-16 15:28:04 +03:00
parent 933638afb8
commit 21a41987b4
14 changed files with 193 additions and 105 deletions

View File

@@ -7,6 +7,7 @@ import _VisualDVM.ComponentsServer.BugReport.Json.BugReportAdditionJson;
import _VisualDVM.ComponentsServer.Component.ComponentType;
import _VisualDVM.ComponentsServer.Component.Json.ComponentPublicationInfoJson;
import _VisualDVM.ComponentsServer.Component.Json.ComponentVersionsInfoJson;
import _VisualDVM.ComponentsServer.SubscriberWorkspace.SubscriberWorkspace;
import _VisualDVM.ComponentsServer.UserAccount.AccountRole;
import _VisualDVM.ComponentsServer.UserAccount.UserAccount;
import _VisualDVM.Constants;
@@ -294,11 +295,24 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
void EditUserAccount() throws Exception {
UserAccount new_object = (UserAccount) request.object;
credentials_db.UpdateWithCheck(new_object);
afterEditAction(new_object);
}
void DeleteUserAccount() throws Exception {
Pair<Class, Object> to_delete = (Pair<Class, Object>) request.object;
afterDeleteAction(credentials_db.DeleteByPK(to_delete.getKey(), to_delete.getValue()));
}
void PublishSubscriberWorkspace() throws Exception {
DBObject dbObject = (DBObject) request.object;
response.object = (Serializable) credentials_db.InsertS(dbObject).getPK();
}
void EditSubcriberWorkpace() throws Exception {
SubscriberWorkspace new_object = (SubscriberWorkspace) request.object;
credentials_db.UpdateWithCheck(new_object);
}
void DeleteSubscriberWorkspace() throws Exception {
Pair<Class, Object> to_delete = (Pair<Class, Object>) request.object;
afterDeleteAction(credentials_db.DeleteByPK(to_delete.getKey(), to_delete.getValue()));
}
//--
@Override
protected void UnsafeSession() throws Exception {
@@ -338,6 +352,15 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
case EditUserAccount:
EditUserAccount();
break;
case PublishSubscriberWorkspace:
PublishSubscriberWorkspace();
break;
case EditSubcriberWorkpace:
EditSubcriberWorkpace();
break;
case DeleteSubscriberWorkspace:
DeleteSubscriberWorkspace();
break;
case ReceiveCredentialsDatabase:
ReceiveCredentialsDatabase();
break;