Skip to content
alex dean edited this page Jul 28, 2017 · 7 revisions

UML

Relations among Human Users

  • All non-anonymous users could follow listener, musician and critic. They can view and play music in their playlist. Critic and musicians` popularity can be determined by their followers.
  • General users can give comments and rates to musicians and critic.
  • General users can like a song or a playlist.
  • Critic can leave highlighted comments and rate to musician.
  • Publisher could buy songs from musician, publisher will give musician an offer and musicians will have a certain time to response.
  • Musician could sell songs to publisher.
  • Administrator could block any kind of users for a certain time, in this period, users cannot login.
  • Administrator could delete any kind of use' account except administrators' account
  • Administrator could check and cancel the transaction between musician and publisher.

Relations between Human Users and Domain Objects

  • General User could listen to a song.
  • General User could create/edit/like/delete a playlist.
  • Musician could upload/edit/delete a song.
  • Musician could accept or reject a transaction.
  • Publisher could launch a transaction.
  • Critic could make a highlighted comment and rating.
  • Administrator could edit/delete a song.
  • Administrator could block/delete an account.
  • Administrator could cancel a transaction.

Relations among Domain Objects

  • A song can be contained in 0 or several playlist.
  • A song can be contained in 1 or several genres.
  • A song could have 0 or many comments, ratings, and highlighted comments and ratings.
  • A playlist can contain 0 or lots of songs.
  • A playlist could have 0 or many comments, ratings, and highlighted comments and ratings.
  • A genre can contain lots of songs.
  • A song has a copyright.
  • A transaction can change the copyright of a song.
  • A song can be in a Transaction.
  • An account can have lots of playlist.
  • An account can have many followers, and follow many accounts.
  • A playlist can have many followers.

Clone this wiki locally