-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f50715
commit d60ff2e
Showing
12 changed files
with
412 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
@startuml claims_class_diagram | ||
Class user { | ||
Int id | ||
String name | ||
String password | ||
String username | ||
String email | ||
Bool enabled | ||
String verification_code | ||
JSON Login() | ||
Bool Register() | ||
} | ||
|
||
Class role{ | ||
Int id | ||
String name | ||
} | ||
|
||
user .right.> role | ||
|
||
|
||
Class SuperAdmin{} | ||
Class Admin{} | ||
Class SavManager{} | ||
Class SavTechnicien{} | ||
Class ScooterOwner{} | ||
|
||
|
||
top to bottom direction | ||
user <|-- SuperAdmin | ||
user <|-- Admin | ||
user <|-- SavManager | ||
user <|-- SavTechnicien | ||
user <|-- ScooterOwner | ||
|
||
Class Claim { | ||
Int id | ||
String title | ||
String subject | ||
String message | ||
SavTechnicien[] technician_history | ||
Status [] status_history | ||
TimeStamp created | ||
TimeStamp updated | ||
|
||
GetAllClaims() : Claim[] | ||
GetMyClaims() : Claim[] | ||
GetClaimDetails(Int id) : Claim | ||
GetAllClaimsByStatus(Status status) : Claim[] | ||
CreateClaim(Claim claim) : Bool | ||
SetStatus(Status status) : Bool | ||
AffectTechnician(SavTechnician) : Bool | ||
Comment(Comment comment) : Bool | ||
|
||
} | ||
|
||
Class Comment{ | ||
Int id | ||
String message | ||
TimeStamp created | ||
|
||
CreateComment(Comment comment) : Bool | ||
|
||
} | ||
|
||
Class Status{ | ||
String name | ||
String color | ||
TimeStamp created | ||
|
||
GetAllStatus() : Status[] | ||
CreateStatus(Status status) : Bool | ||
UpdateStatus(Status status) : Bool | ||
DeleteStatus(Status status) : Bool | ||
|
||
} | ||
|
||
Claim "*"--"*" SavTechnicien : in charge of | ||
Claim "*"--"1" ScooterOwner : authors | ||
Comment "*"--*"1" Claim | ||
Comment "*"--*"1" user : Authors | ||
Status "*"--"*" Claim | ||
|
||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@startuml claims_consult_details_sequence_diagram | ||
|
||
actor "ScooterOwner\nSavManager\nSavTechnicien" as so | ||
boundary Claims as cl | ||
control ClaimsService as cs | ||
entity Claim as c | ||
|
||
activate so | ||
so -> cl : Comment(Comment) | ||
activate cl | ||
cl -> cs : Comment(Comment) | ||
activate cs | ||
cs -> c : Comment(Comment) | ||
activate c | ||
alt comment is added | ||
c --> cs : commentAdded | ||
deactivate c | ||
cs --> cl : commentAdded | ||
deactivate cs | ||
cl --> so : commentAdded | ||
deactivate cl | ||
else comment is not added | ||
c --> cs : commentNotAdded | ||
deactivate c | ||
cs --> cl : commentNotAdded | ||
deactivate cs | ||
cl --> so : commentNotAdded | ||
deactivate cl | ||
end | ||
deactivate cl | ||
deactivate so | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
@startuml claims_consult_details_sequence_diagram | ||
|
||
actor "ScooterOwner\nSavManager\nSavTechnicien" as so | ||
boundary Claims as cl | ||
control ClaimsService as cs | ||
entity Claim as c | ||
|
||
activate so | ||
so -> cl : getClaimDetail(Id) | ||
activate cl | ||
cl -> cs : getClaimDetail(Id) | ||
activate cs | ||
cs -> c : getClaimDetail(Id) | ||
activate c | ||
alt claim is found | ||
c --> cs : claimDetail | ||
deactivate c | ||
cs --> cl : claimDetail | ||
deactivate cs | ||
cl --> so : claimDetail | ||
deactivate cl | ||
else claim is not found | ||
c --> cs : claimNotFound | ||
deactivate c | ||
cs --> cl : claimNotFound | ||
deactivate cs | ||
cl --> so : claimNotFound | ||
deactivate cl | ||
end | ||
deactivate cl | ||
deactivate so | ||
|
||
activate so | ||
so -> cl : getClaimTechnicienHistory() | ||
activate cl | ||
cl -> cl : toggleTechnicienHistory() | ||
activate cl | ||
cl --> so : technicienHistory | ||
deactivate cl | ||
|
||
activate so | ||
so -> cl : getClaimStatusHistory() | ||
activate cl | ||
cl -> cl : toggleStatusHistory() | ||
activate cl | ||
cl --> so : statusHistory | ||
deactivate cl | ||
|
||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
@startuml claims_sav_manager_sequence_diagram | ||
actor SavManager as sm | ||
boundary Claims as cl | ||
control ClaimsService as cs | ||
entity Claim as c | ||
|
||
activate sm | ||
sm -> cl : getAllClaims() | ||
activate cl | ||
cl -> cs : getAllClaims() | ||
activate cs | ||
cs -> c : getAllClaims() | ||
activate c | ||
c --> cs : allClaims | ||
deactivate c | ||
cs --> cl : allClaims | ||
deactivate cs | ||
cl --> sm : allClaims | ||
deactivate cl | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
@startuml claims_sav_manager_sequence_diagram | ||
actor SavManager as sm | ||
boundary Claims as cl | ||
control ClaimsService as cs | ||
entity Claim as c | ||
|
||
activate sm | ||
sm -> cl : AffectTechnician(Technicien) | ||
activate cl | ||
cl -> cs : AffectTechnician(Technicien) | ||
activate cs | ||
cs -> c : AffectTechnician(Technicien) | ||
activate c | ||
alt technicien is affected | ||
c --> cs : technicienAffected | ||
deactivate c | ||
cs --> cl : technicienAffected | ||
deactivate cs | ||
cl --> sm : technicienAffected | ||
deactivate cl | ||
else technicien is not affected | ||
c --> cs : technicienNotAffected | ||
deactivate c | ||
cs --> cl : technicienNotAffected | ||
deactivate cs | ||
cl --> sm : technicienNotAffected | ||
deactivate cl | ||
end | ||
deactivate cl | ||
deactivate sm | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@startuml claims_my_claims_sequence_diagram | ||
actor SavTechnicien as st | ||
boundary Claims as cl | ||
control ClaimsService as cs | ||
entity Claim as c | ||
|
||
activate st | ||
st -> cl : getMyClaims() | ||
activate cl | ||
cl -> cs : getMyClaims() | ||
activate cs | ||
cs -> c : getMyClaims() | ||
activate c | ||
c --> cs : myClaims | ||
deactivate c | ||
cs --> cl : myClaims | ||
deactivate cs | ||
cl --> st : myClaims | ||
deactivate cl | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@startuml claims_my_claims_sequence_diagram | ||
actor SavTechnicien as st | ||
boundary Claims as cl | ||
control ClaimsService as cs | ||
entity Claim as c | ||
activate st | ||
st -> cl : SetStatus(Status) | ||
activate cl | ||
cl -> cs : SetStatus(Status) | ||
activate cs | ||
cs -> c : SetStatus(Status) | ||
activate c | ||
alt status is set | ||
c --> cs : statusSet | ||
deactivate c | ||
cs --> cl : statusSet | ||
deactivate cs | ||
cl --> st : statusSet | ||
deactivate cl | ||
else status is not set | ||
c --> cs : statusNotSet | ||
deactivate c | ||
cs --> cl : statusNotSet | ||
deactivate cs | ||
cl --> st : statusNotSet | ||
deactivate cl | ||
end | ||
deactivate cl | ||
deactivate st | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
@startuml claims_sequence_diagram | ||
|
||
actor ScooterOwner as so | ||
boundary Claims as cl | ||
control ClaimsService as cs | ||
entity Claim as c | ||
|
||
so -> cl : createClaim() | ||
activate so | ||
activate cl | ||
cl -> cl : validateClaim() | ||
activate cl | ||
|
||
alt claim is valid | ||
cl -> cs : createClaim() | ||
activate cs | ||
|
||
cs -> cs : validateClaim() | ||
activate cl | ||
alt claim is valid | ||
cs -> c : createClaim() | ||
activate c | ||
alt claim is created | ||
c --> cs : claimCreated | ||
deactivate c | ||
cs --> cl : claimCreated | ||
deactivate cs | ||
cl --> so : claimCreated | ||
deactivate cl | ||
else claim is not created | ||
c --> cs : claimNotCreated | ||
deactivate c | ||
cs --> cl : claimNotCreated | ||
deactivate cs | ||
cl --> so : claimNotCreated | ||
deactivate cl | ||
end | ||
|
||
else claim is invalid | ||
cl -> cl : notifyClaimInvalid() | ||
activate cl | ||
cl --> so : claimInvalid | ||
deactivate cl | ||
deactivate cl | ||
deactivate so | ||
|
||
end | ||
else claim is invalid | ||
activate cs | ||
cs -> cl : notifyClaimInvalid() | ||
activate cl | ||
cl --> so : claimInvalid | ||
deactivate cs | ||
deactivate cl | ||
end | ||
deactivate cl | ||
deactivate so | ||
|
||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@startuml claims_sequence_diagram | ||
|
||
actor ScooterOwner as so | ||
boundary Claims as cl | ||
control ClaimsService as cs | ||
entity Claim as c | ||
|
||
|
||
|
||
activate so | ||
so -> cl : getClaims() | ||
activate cl | ||
cl -> cs : getMyClaims() | ||
activate cs | ||
cs -> c : getMyClaims() | ||
activate c | ||
c --> cs : myClaims | ||
deactivate c | ||
cs --> cl : myClaims | ||
deactivate cs | ||
cl --> so : myClaims | ||
deactivate cl | ||
deactivate so | ||
|
||
@enduml |
Oops, something went wrong.