2022-03-15 15:29:38 +01:00
|
|
|
@startuml Manger View
|
2022-03-15 20:39:05 +01:00
|
|
|
title Manager View
|
2022-04-27 11:24:19 +02:00
|
|
|
skinparam actorStyle awesome
|
|
|
|
|
2022-03-15 20:39:05 +01:00
|
|
|
Actor Manager #lime
|
2022-03-15 15:29:38 +01:00
|
|
|
participant Website
|
|
|
|
database Server #brown
|
2022-03-15 20:39:05 +01:00
|
|
|
|
|
|
|
note left of Manager #white
|
|
|
|
**Managers can do**
|
|
|
|
**everything an admin can,**
|
|
|
|
**these are additions**
|
|
|
|
end note
|
|
|
|
|
|
|
|
alt View Admins
|
2022-04-27 11:24:19 +02:00
|
|
|
Manager->Website: viewAdmins()
|
2022-03-15 20:39:05 +01:00
|
|
|
activate Manager
|
|
|
|
activate Website
|
|
|
|
activate Server
|
|
|
|
Website->Server: requestList(Admins)
|
|
|
|
Website<--Server: sendList(Admins)
|
|
|
|
deactivate Server
|
|
|
|
Manager<--Website: displayAdmins()
|
2022-04-27 11:24:19 +02:00
|
|
|
deactivate Manager
|
|
|
|
deactivate Website
|
2022-03-15 20:39:05 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
alt Add Admins
|
2022-04-27 11:24:19 +02:00
|
|
|
Manager->Website: createAdmin(email)
|
|
|
|
activate Manager
|
|
|
|
activate Website
|
2022-03-15 20:39:05 +01:00
|
|
|
activate Server
|
2022-04-27 11:24:19 +02:00
|
|
|
Website->Server: createAdmin(email)
|
2022-03-15 20:39:05 +01:00
|
|
|
Website<--Server: {status: success | failure}
|
|
|
|
deactivate Server
|
|
|
|
opt status = success
|
|
|
|
Manager<--Website: displayInfo(Success)
|
|
|
|
activate Server
|
|
|
|
Website->Server: requestList(Admins)
|
|
|
|
Website<--Server: sendList(Admins)
|
|
|
|
deactivate Server
|
|
|
|
Manager<--Website: displayAdmins()
|
|
|
|
|
|
|
|
else status = failure
|
|
|
|
Manager<--Website: displayError(error)
|
|
|
|
end
|
2022-04-27 11:24:19 +02:00
|
|
|
deactivate Manager
|
|
|
|
deactivate Website
|
2022-03-15 20:39:05 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
alt Remove Admins
|
|
|
|
Manager->Website: removeAdmin(name)
|
2022-04-27 11:24:19 +02:00
|
|
|
activate Manager
|
|
|
|
activate Website
|
2022-03-15 20:39:05 +01:00
|
|
|
activate Server
|
2022-04-27 11:24:19 +02:00
|
|
|
Website->Server: removeAdmin(id)
|
2022-03-15 20:39:05 +01:00
|
|
|
Website<--Server: {status: success | failure}
|
|
|
|
deactivate Server
|
|
|
|
opt status = success
|
|
|
|
Manager<--Website: displayInfo(Success)
|
|
|
|
activate Server
|
|
|
|
Website->Server: requestList(Admins)
|
|
|
|
Website<--Server: sendList(Admins)
|
|
|
|
deactivate Server
|
|
|
|
Manager<--Website: displayAdmins()
|
|
|
|
|
|
|
|
else status = failure
|
|
|
|
Manager<--Website: displayError(error)
|
|
|
|
end
|
|
|
|
deactivate Manager
|
|
|
|
deactivate Website
|
|
|
|
end
|
|
|
|
|
2022-03-15 15:29:38 +01:00
|
|
|
@enduml
|