Changeset View
Changeset View
Standalone View
Standalone View
docs/images/deposit-delete-chart.uml
| Show All 17 Lines | loop while status is 'partial' | ||||
| CLIENT -> DEPOSIT: DELETE /1/<collection-name>/<deposit-id>/media/\nDELETE /1/<collection-name>/<deposit-id>/metadata/ | CLIENT -> DEPOSIT: DELETE /1/<collection-name>/<deposit-id>/media/\nDELETE /1/<collection-name>/<deposit-id>/metadata/ | ||||
| DEPOSIT ->> DEPOSIT_STORAGE: check authentication | DEPOSIT ->> DEPOSIT_STORAGE: check authentication | ||||
| DEPOSIT_STORAGE -->> DEPOSIT: return ok | DEPOSIT_STORAGE -->> DEPOSIT: return ok | ||||
| DEPOSIT ->> DEPOSIT_STORAGE: check inputs() | DEPOSIT ->> DEPOSIT_STORAGE: check inputs() | ||||
| alt status is not 'partial' | alt status is 'partial' | ||||
| DEPOSIT_STORAGE -->> DEPOSIT: return ko | |||||
| DEPOSIT -->> CLIENT: return 400 | |||||
| else status is 'partial' | |||||
| DEPOSIT_STORAGE -->> DEPOSIT: return ok | DEPOSIT_STORAGE -->> DEPOSIT: return ok | ||||
| DEPOSIT ->> DEPOSIT_STORAGE: delete-deposit-or-deposit-archives() | DEPOSIT ->> DEPOSIT_STORAGE: delete-deposit-or-deposit-archives() | ||||
| DEPOSIT_STORAGE -->> DEPOSIT: return ok | DEPOSIT_STORAGE -->> DEPOSIT: return ok | ||||
| DEPOSIT -->> CLIENT: return 204 | DEPOSIT -->> CLIENT: return 204 | ||||
| else status is not 'partial' | |||||
| DEPOSIT_STORAGE -->> DEPOSIT: return ko | |||||
| DEPOSIT -->> CLIENT: return 400 | |||||
| end | end | ||||
| end | end | ||||
| @enduml | @enduml | ||||