Add some work schemes
This commit is contained in:
parent
a2deb7b44a
commit
d48e33e771
5 changed files with 78 additions and 3 deletions
12
drawings/cisco asa/urls.puml
Normal file
12
drawings/cisco asa/urls.puml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
@startuml
|
||||||
|
' map "URL без имени устройства" as no_man {
|
||||||
|
' usergate => manufacturer
|
||||||
|
' {pk} => Primary key of model instance in database
|
||||||
|
' }
|
||||||
|
|
||||||
|
map "URL с конкретизацией имени устройства" as man {
|
||||||
|
cisco => manufacturer
|
||||||
|
asa => "Device name"
|
||||||
|
{pk} => Primary key of model instance in database
|
||||||
|
}
|
||||||
|
@enduml
|
|
@ -14,8 +14,8 @@ start
|
||||||
- SN
|
- SN
|
||||||
- DN
|
- DN
|
||||||
- ACTION;
|
- ACTION;
|
||||||
if (ACTION == либо "Allow" либо "Fast-path") then (Да)
|
if ((ACTION == "Allow") ∨ (ACTION =="Fast-path") = 1?) then (Да)
|
||||||
if (SN пустое ∧ DN пустое = 1?) then (Да)
|
if ((SN пустое) ∧ (DN пустое) = 1?) then (Да)
|
||||||
:Значит у SN и DN
|
:Значит у SN и DN
|
||||||
стоят значение any;
|
стоят значение any;
|
||||||
VALID
|
VALID
|
||||||
|
@ -59,7 +59,7 @@ if (ACTION == либо "Allow" либо "Fast-path") then (Да)
|
||||||
stop
|
stop
|
||||||
endif
|
endif
|
||||||
endfork
|
endfork
|
||||||
if (SN any ∧ DN any = 1?) then (Да)
|
if ((SN any) ∧ (DN any) = 1?) then (Да)
|
||||||
VALID
|
VALID
|
||||||
end
|
end
|
||||||
else (Нет)
|
else (Нет)
|
||||||
|
|
21
drawings/smc/notifications/frontend_flow.puml
Normal file
21
drawings/smc/notifications/frontend_flow.puml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
@startuml
|
||||||
|
Title Получение данных о SMTP серверах
|
||||||
|
actor Client
|
||||||
|
actor Frontend
|
||||||
|
participant Backend
|
||||||
|
|
||||||
|
Client -> Frontend : Нажимаю на кнопку "SMTP сервера"
|
||||||
|
Frontend -> Backend : GET: /api/smtp/local
|
||||||
|
Backend -> Frontend : local SMTP server details
|
||||||
|
Frontend -> Backend : GET: /api/smtp/corporate
|
||||||
|
Backend -> Frontend : corporate SMTP server details
|
||||||
|
alt #palegreen LocalServer.is_active = False\n∧\nCorpServer.is_active = False
|
||||||
|
Frontend -> Client : Отобразить форму CorpServer
|
||||||
|
else #palegreen LocalServer.is_active = True\n∧\nCorpServer.is_active = False
|
||||||
|
Frontend -> Client : Отобразить форму LocalServer
|
||||||
|
else #palegreen LocalServer.is_active = False\n∧\nCorpServer.is_active = True
|
||||||
|
Frontend -> Client : Отобразить форму CorpServer
|
||||||
|
else #pink LocalServer.is_active = True\n∧\nCorpServer.is_active = True
|
||||||
|
Frontend -> Client : Отобразить ошибку настройки сервера
|
||||||
|
end
|
||||||
|
@enduml
|
9
drawings/smc/notifications/init_flow.puml
Normal file
9
drawings/smc/notifications/init_flow.puml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
@startuml
|
||||||
|
participant "Установочный пакет" as setup
|
||||||
|
participant Backend
|
||||||
|
database "SMC database" as SMC_db
|
||||||
|
|
||||||
|
setup -> Backend : Инициировать запуск системы
|
||||||
|
Backend -> SMC_db : Создай экземпляр SmtpLocalServer\nis_active = False
|
||||||
|
Backend -> SMC_db : Создай экземпляр SmtpCorporateServer\nis_active = False
|
||||||
|
@enduml
|
33
drawings/smc/notifications/models.puml
Normal file
33
drawings/smc/notifications/models.puml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
@startuml
|
||||||
|
|
||||||
|
abstract SmtpServerModelABC {
|
||||||
|
host : CharField
|
||||||
|
host_user : CharField
|
||||||
|
is_active : BooleanField
|
||||||
|
is_auth_required : BooleanField
|
||||||
|
outbound_email : EmailField
|
||||||
|
password : CharField
|
||||||
|
port : IntegerField
|
||||||
|
security_protocol : CharField
|
||||||
|
ssl_cert_file : FileField
|
||||||
|
ssl_key_file : FileField
|
||||||
|
updated_at : DateTimeField
|
||||||
|
use_certificate : BooleanField
|
||||||
|
}
|
||||||
|
|
||||||
|
abstract SingletonModel {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
class SmtpLocalServer {
|
||||||
|
|
||||||
|
}
|
||||||
|
SmtpServerModelABC <|-- SmtpLocalServer
|
||||||
|
SingletonModel <|-- SmtpLocalServer
|
||||||
|
|
||||||
|
class SmtpCorporateServer {
|
||||||
|
|
||||||
|
}
|
||||||
|
SmtpServerModelABC <|-- SmtpCorporateServer
|
||||||
|
SingletonModel <|-- SmtpCorporateServer
|
||||||
|
@enduml
|
Loading…
Reference in a new issue