Constructor
# abstract new OrderManager(participantManager, callbackopt)
Order Manager Class
Abstract class.
Order Manager Class
Abstract class. Use only concrete subclasses IssuedOrderManager or ReceivedOrderManager.
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 |
|---|---|---|---|
participantManager |
ParticipantManager
|
||
callback |
function
|
<optional> |
optional callback for when the assurance that the table has already been indexed is required. |
Extends
- Manager