-
Notifications
You must be signed in to change notification settings - Fork 1
Final Sequence Diagrams
Oğuz Kağnıcı edited this page May 18, 2024
·
1 revision
sequenceDiagram
actor User
participant PostController
participant PostService
participant PostRepository
participant Database
User->>PostController: create(PostCreateRequest)
PostController->>PostService: create(User, PostCreateRequest)
PostService->>PostRepository: save(Post)
PostRepository->>Database: Post
alt Success
PostService-->>PostController: <OK, Post>
PostController-->>User: Post
else Failure
PostService-->>PostController: <ERR_CODE>
PostController-->>User: <ERR_CODE, errorMessage>
end
sequenceDiagram
actor User
participant PostController
participant PostService
participant PostRepository
participant Database
User->>PostController: getPost()
PostController->>PostService: getPost(User)
PostService->>PostRepository: findPosts(User)
alt Success
Database-->>PostService: Posts
PostService-->>PostController: <OK, Posts>
PostController-->>User: Posts
else Failure
PostService-->>PostController: <ERR_CODE>
PostController-->>User: <ERR_CODE, errorMessage>
end
sequenceDiagram
actor User
participant PostController
participant PostService
participant PostRepository
participant ReactionRepository
participant Database
User->>PostController: reactPost(postId, ReactionRequest)
PostController->>PostService: reactToPost(User, postId, ReactionRequest)
PostService->>PostRepository: save(Post)
PostService->>ReactionRepository: save(Reaction)
ReactionRepository->>Database: Reaction
PostRepository->>Database: Post
alt Success
PostService-->>PostController: <OK, Reaction>
PostController-->>User: Reaction
else Failure
PostService-->>PostController: <ERR_CODE>
PostController-->>User: <ERR_CODE, errorMessage>
end
sequenceDiagram
actor User
participant PostController
participant CommentService
participant CommentRepository
participant PostRepository
participant Database
User->>PostController: createComment(CommentCreateRequest)
PostController->>CommentService: createComment(User, CommentCreateRequest)
CommentService->>PostRepository: save(Post)
CommentService->>CommentRepository: save(Comment)
CommentRepository->>Database: Comment
PostRepository->>Database: Post
alt Success
CommentService-->>PostController: <OK, Comment>
PostController-->>User: Reaction
else Failure
CommentService-->>PostController: <ERR_CODE>
PostController-->>User: <ERR_CODE, errorMessage>
end
sequenceDiagram
actor User
participant PostController
participant CommentService
participant CommentRepository
participant ReactionRepository
participant Database
User->>PostController: reactComment(commented, ReactionType)
PostController->>CommentService: reactToComment(User, commentId, ReactionType)
CommentService->>CommentRepository: save(Comment)
CommentService->>ReactionRepository: save(Reaction)
ReactionRepository->>Database: Reaction
CommentRepository->>Database: Comment
alt Success
CommentService-->>PostController: <OK, Reaction>
PostController-->>User: Reaction
else Failure
CommentService-->>PostController: <ERR_CODE>
PostController-->>User: <ERR_CODE, errorMessage>
end
sequenceDiagram
actor User
participant PostController
participant PostService
participant PostRepository
participant Database
User->>PostController: getFeed()
PostController->>PostService: getFeed(User)
PostService->>PostRepository: findPostsUser(User)
alt Success
Database-->>PostService: Posts
PostService-->>PostController: <OK, Posts>
PostController-->>User: Posts
else Failure
PostService-->>PostController: <ERR_CODE>
PostController-->>User: <ERR_CODE, errorMessage>
end
sequenceDiagram
actor User
participant PostController
participant PostService
participant PostRepository
participant Database
User->>PostController: getPostsOfCommunity(communityId)
PostController->>PostService: getPostsByCommunity(User, communityId)
PostService->>PostRepository: findPostsByCommunity(User, communityId)
alt Success
Database-->>PostService: Posts
PostService-->>PostController: <OK, Posts>
PostController-->>User: Posts
else Failure
PostService-->>PostController: <ERR_CODE>
PostController-->>User: <ERR_CODE, errorMessage>
end
sequenceDiagram
actor User
participant UserController
participant UserService
participant UserRepository
participant Database
User->>UserController: getUserById(userId)
UserController->>UserService: getUserById(userId)
UserService->>UserRepository: findUserById(userId)
alt Success
Database-->>UserService: User
UserService-->>UserController: <OK, User>
UserController-->>User: User
else Failure
UserService-->>UserController: <ERR_CODE>
UserController-->>User: <ERR_CODE, errorMessage>
end
sequenceDiagram
actor User
participant UserController
participant UserService
participant UserRepository
participant Database
User->>UserController: getUserById()
UserController->>UserService: getUserById(userId)
UserService->>UserRepository: findUserById(userId)
alt Success
Database-->>UserService: User
UserService-->>UserController: <OK, User>
UserController-->>User: User
else Failure
UserService-->>UserController: <ERR_CODE>
UserController-->>User: <ERR_CODE, errorMessage>
end
sequenceDiagram
actor User
participant UserController
participant UserService
participant UserRepository
participant Database
User->>UserController: updateField(UpdateRequest)
UserController->>UserService: updateField(User, UpdateRequest)
UserService->>UserRepository: save(User)
UserRepository-->>Database: User
alt Success
UserService-->>UserController: <OK, User>
UserController-->>User: User
else Failure
UserService-->>UserController: <ERR_CODE>
UserController-->>User: <ERR_CODE, errorMessage>
end
sequenceDiagram
actor User
participant PostController
participant PostService
participant WikidataService
participant PostRepository
participant Database
User->>PostController: search(param)
PostController->>PostService: searchPost(User, param)
PostService->>PostRepository: findByText(param)
PostService->>WikidataService: search(param)
alt Success
Database-->>PostService: Posts
WikidataService-->>PostService: Results
PostService-->>PostController: <OK, Posts, Results>
PostController-->>User: Posts, Results
else Failure
PostService-->>PostController: <ERR_CODE>
PostController-->>User: <ERR_CODE, errorMessage>
end
Prepared By Oğuz Kağnıcı
🏠Home
- Third Customer Milestone Report
- RAM
- Requirements
- Mockups
- Sequence Diagrams
- Use Case Diagram
- Class Diagrams
- Scenarios
- User Scenario
- User Manual
- System Manual
- Third Customer Milestone Report
- Second Customer Milestone Report
- First Customer Milestone Report
- RAM
- Requirements
- Mockups
- Sequence Diagrams
- Scenarios
- Use Case Diagram
- Class Diagrams
- Software Quality Plan
- Milestone1 Presentation Scenarios
- Post Creation Page
- User Scenario
- Meeting Notes 10 - Dec 10
- Meeting Notes 9 - Dec 3
- Meeting Notes 8 - Nov 17
- Meeting Notes 7 - Nov 12
- Meeting Notes 6 - Nov 5
- Optional Meeting Notes 1 ‐ Oct 21
- Meeting Notes 5 - Oct 15
- Meeting Notes 4 - Oct 8
- Meeting Notes 3 - Oct 3
- Meeting Notes 2 - Oct 1
- Meeting Notes 1 - Sep 24
- Deniz Ulaş Poyraz
- Eren Donmez
- Ersel Çanakçılı
- Oğuz Kağnıcı
- Onur Çerli
- Yekta Ercul
- Ali Alperen Sönmez
- Huseyin Turker Erdem
- Mehmet Tuluyhan Sozen
352 Material
- Final Milestone Report
- Milestone 2 Report
- RAM
- Use Case Diagram
- Sequence Diagrams
- Class Diagrams
- Requirements
- Elicitation Questions
- Mockups
- Scenarios
- Milestone 1 Report
- Our Favourite Repositories
- Linked Data and SPARQL
- Web Application Development
- API Development and Utilization
- Wikidata and Wikidata API
- Mobile Application Development
- Android Studio
- Git
- Meeting Notes 10 ‐ May 10th
- Meeting Notes 9 ‐ Apr 25th
- Meeting Notes 8 ‐ Apr 21st
- Meeting Notes 7 ‐ Apr 12th
- Meeting Notes 6 ‐ Mar 14th
- Meeting Notes 5 ‐ Mar 11th
- Meeting Notes 4 - Mar 7th
- Meeting Notes 3 - Mar 3rd
- Meeting Notes 2 - Feb 22nd
- Meeting Notes 1 - Feb 18th