Skip to content

Sequence Diagrams

Mücahit Erdoğan Ünlü edited this page Apr 17, 2024 · 26 revisions

Block User

sequenceDiagram
    actor Registered User
    Registered User->>+User: blockUser(user)
    User->>+ Database: insert user into blocked list
    alt insertion is successful
        Database-->>User: success
        User-->>Registered User: success
    else 
        Database-->>-User: failure
        User-->>-Registered User: failure
    end

Loading

Search User

sequenceDiagram
    actor R as Registered User
    R->>+SearchEngine: query(keyword)
    SearchEngine->>+ Database: search keyword in the database
    Database-->>-SearchEngine: return query result
    SearchEngine-->>-R: SearchResult

Loading

Bookmark Post

sequenceDiagram
    actor R as Registered User
    R->>+Post: bookmarkPost(user)
    Post->>+ Database: save bookmark action into database
    alt saving is successful
        Database-->>Post: success
        Post-->>R: success
    else 
        Database-->>-Post: failure
        Post-->>-R: failure
    end
Loading

Comment on Content

sequenceDiagram
    actor R as Registered User
    R->>+Content: addComment(comment)
    Content->>+ Database: save comment into database
    alt saving is successful
        Database-->>Content: success
        Content-->>R: success
    else 
        Database-->>-Content: failure
        Content-->>-R: failure
    end
Loading

Like Post

sequenceDiagram
    actor R as Registered User
    R->>+Post: likePost(user)
    Post->>+ Database: save like action into database
    alt saving is successful
        Database-->>Post: success
        Post-->>R: success
    else 
        Database-->>-Post: failure
        Post-->>-R: failure
    end
Loading

Follow User

sequenceDiagram
    actor R as Registered User
    R->>+ Profile: followUser(user)
    Profile->>+ Database: following_list_insertion(user)
    alt insertion is successful
        Database-->>Profile: success
        Profile->>+ Database: follower_list_insertion(registered_user)
        alt insertion is successful
            Database-->> Profile: success
            Profile-->>R: success
        else
            Database-->> Profile: failure
            Profile-->>R: failure
        end
    else 
        Database-->>-Profile: failure
        Profile-->>-R: failure
    end
Loading

Create Post

sequenceDiagram
    actor R as Registered User
    R->>+Contents: create(text: String, author: RegisteredUser, title: String, image: Image)
    Contents->>+ Database: save create action into database
    alt saving is successful
        Database-->>Contents: success
        Contents-->>R: success
    else 
        Database-->>-Contents: failure
        Contents-->>-R: failure
    end
Loading

BOUNSWE2024 - G11

Logo Turquiz App

⏳ Status

DONE

🧑🏼‍💻 Team

📝 Diagrams

📆 Lab Reports

📆 Meeting Notes

📍 Milestones

📎 Planning

📚 User Scenarios / Stories

📚 Resources

🔎 Research

🗂️ Templates

Clone this wiki locally