Changeset View
Changeset View
Standalone View
Standalone View
docs/images/deposit-delete-chart.uml
- This file was added.
@startuml | |||||
participant CLIENT as "SWORD client\n(eg. HAL)" | |||||
participant DEPOSIT as "swh-deposit" | |||||
participant DEPOSIT_STORAGE as "deposit storage" | |||||
activate CLIENT | |||||
activate DEPOSIT | |||||
activate DEPOSIT_STORAGE | |||||
CLIENT ->> DEPOSIT: POST /1/<collection-name>/\nHEADER In-Progress: true | |||||
DEPOSIT ->> DEPOSIT_STORAGE: check authentication | |||||
DEPOSIT_STORAGE -->> DEPOSIT: return ok (if client exists and credentials ok) | |||||
DEPOSIT -->> CLIENT: return 201, <deposit receipt> | |||||
loop while status is 'partial' | |||||
CLIENT -> DEPOSIT: DELETE /1/<collection-name>/<deposit-id>/media/\nDELETE /1/<collection-name>/<deposit-id>/metadata/ | |||||
DEPOSIT ->> DEPOSIT_STORAGE: check authentication | |||||
DEPOSIT_STORAGE -->> DEPOSIT: return ok | |||||
DEPOSIT ->> DEPOSIT_STORAGE: check inputs() | |||||
alt status is not 'partial' | |||||
DEPOSIT_STORAGE -->> DEPOSIT: return ko | |||||
DEPOSIT -->> CLIENT: return 403 | |||||
else status is 'partial' | |||||
DEPOSIT ->> DEPOSIT_STORAGE: delete-deposit-or-deposit-archives() | |||||
DEPOSIT_STORAGE -->> DEPOSIT: return ko | |||||
DEPOSIT -->> CLIENT: return 204 | |||||
end | |||||
end | |||||
@enduml | |||||