Skip to content
Michael Le edited this page Nov 19, 2017 · 10 revisions

User Service

  • Methods encapsulating DAO logic: createUser, updateUser, removeUser, getAllUsers, getUserById, getUserByUsername
  • Business logic methods:
    • authenticate - checks if given username and password hash is valid
    • isAdmin - checks if given user is an administrator

Channel Service

  • Methods encapsulating DAO logic: createChannel, updateChannel, removeChannel, getAllChannels, getChannelById, getChannelByName, getChannelsByType

Transmission Service

This service covers both Transmission and Transmission Occurrences. The reason is Transmission Occurrence is an integral part of Transmission and cannot, in business logic, exist separately.

  • Methods encapsulating DAO logic: createTransmission, updateTransmission, removeTransmission, getTransmissionById, getTransmissionByName
  • Methods encapsulating DAO logic for Transmission Occurrences: addOccurrence, updateOccurrence, removeOccurrence
  • Business logic methods:
    • getOccurrences - gets all occurrences of the transmission, incl. occurrences in history
    • getUpcomingOccurrences - gets all upcoming occurrences of the transmission
    • getVotings - gets all votings for the transmission
    • getAverageVoting - gets average numeric voting for the transmission

User Profile Service

This service covers an user profile, i. e. user's interaction with channels and transmissions.

  • Business logic methods:
    • followChannel - add channel to user favorites
    • unfollowChannel - remove channel from user favorites
    • getFavoriteChannels - get all users favorite channels
    • followTransmission
    • unfollowTransmission
    • getFavoriteTransmissions
    • getUpcomingFavoriteTransmissions - get upcoming favorite transmissions (in some reasonable time span)
    • getVotings
    • addVoting
    • updateVoting
Clone this wiki locally