|
|
|
@ -7,8 +7,71 @@
|
|
|
|
|
- [issue028 - Importation de fichiers .fit](DiagrammeDeClasses/README_issue028.md)
|
|
|
|
|
|
|
|
|
|
## Diagrammes de séquence
|
|
|
|
|
- [sequance]()
|
|
|
|
|
- Envoi de demande d'ami :
|
|
|
|
|
```plantuml
|
|
|
|
|
actor User as u
|
|
|
|
|
boundary View as v
|
|
|
|
|
control Controller as c
|
|
|
|
|
entity Model as m
|
|
|
|
|
|
|
|
|
|
u->v:/Friend
|
|
|
|
|
v->c:Get : /Friends
|
|
|
|
|
c->m:getFriends(userId)
|
|
|
|
|
m-->c::friends : User[]
|
|
|
|
|
c-->v:renderView(Friends)
|
|
|
|
|
v-->u:
|
|
|
|
|
u->v:input : name
|
|
|
|
|
v->c:Get : searchFriends? pseudo=name
|
|
|
|
|
c->m:searchUser(name:string)
|
|
|
|
|
m->m:notify(from : user, to : user, action : action)
|
|
|
|
|
m-->c:OK
|
|
|
|
|
c-->v:OK
|
|
|
|
|
v-->u:OK
|
|
|
|
|
```
|
|
|
|
|
- Accepter une demande d'ami :
|
|
|
|
|
```plantuml
|
|
|
|
|
actor User as u
|
|
|
|
|
boundary View as v
|
|
|
|
|
control Controller as c
|
|
|
|
|
entity Model as m
|
|
|
|
|
|
|
|
|
|
m->c:RecevoirDemandeAmi(idUser)
|
|
|
|
|
c->v:AfficherDemandeAmi(idUser)
|
|
|
|
|
v->u:PageDemandeAmi(idUser)
|
|
|
|
|
u-->v:RepondreDemandeAmi(idUser)
|
|
|
|
|
v-->c:EnregistrerReponse(idUser)
|
|
|
|
|
c-->m:EnvoyerReponse(idUser)
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
-Supprimer un ami :
|
|
|
|
|
```plantuml
|
|
|
|
|
actor User as u
|
|
|
|
|
boundary View as v
|
|
|
|
|
control Controller as c
|
|
|
|
|
entity Model as m
|
|
|
|
|
|
|
|
|
|
u->v: Request Friends Page
|
|
|
|
|
v->c: Get /Friends
|
|
|
|
|
c->m: getFriends(userId)
|
|
|
|
|
alt successful retrieval
|
|
|
|
|
m-->c: friendsList: User[]
|
|
|
|
|
else retrieval failed
|
|
|
|
|
m-->c: error
|
|
|
|
|
end
|
|
|
|
|
c-->v: renderView(friendsList)
|
|
|
|
|
v-->u: Display Friends
|
|
|
|
|
|
|
|
|
|
u->v: clickDeleteFriend(idUser)
|
|
|
|
|
v->c: Post: deleteFriend(idUser)
|
|
|
|
|
c->m: deleteFriend(idUser)
|
|
|
|
|
alt successful deletion
|
|
|
|
|
m-->c: updatedFriendsList: User[]
|
|
|
|
|
else deletion failed
|
|
|
|
|
m-->c: error
|
|
|
|
|
end
|
|
|
|
|
c-->v: renderView(updatedFriendsList)
|
|
|
|
|
v-->u: Display Updated Friends
|
|
|
|
|
```
|
|
|
|
|
## Diagrammes de cas d'utilisation
|
|
|
|
|
- [use case 1]()
|
|
|
|
|
|
|
|
|
|