Class

ParticipantManager

Managers.ParticipantManager(DSUStorage, callbackopt)

Constructor

# new ParticipantManager(DSUStorage, callbackopt)

Participant Manager Class - Extension of Base Manager

Manager Classes in this context should do the bridge between the controllers and the services exposing only the necessary api to the controllers while encapsulating all business logic.

Participant Manager Class - Extension of Base Manager

Manager Classes in this context should do the bridge between the controllers and the services exposing only the necessary api to the controllers while encapsulating all business logic.

All Manager Classes should be singletons.

This complete separation of concerts is very beneficial for 2 reasons:

  • Allows for testing since there's no browser dependent code (i think) since the DSUStorage can be 'mocked'
  • Allows for different controllers access different business logic when necessary (while benefiting from the singleton behaviour)
Parameters:
Name Type Attributes Description
DSUStorage DSUStorage
callback function <optional>

optional callback for when the assurance that the table has already been indexed is required.

See:
  • BaseManager

View Source managers/ParticipantManager.js, line 4

Extends

  • BaseManager