Package com.storedobject.core
Class JSONLedger
java.lang.Object
com.storedobject.core.JSONLedger
- All Implemented Interfaces:
JSONService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addEntryDetails
(Map<String, Object> details, LedgerEntry ledgerEntry) void
This method should be implemented to serve the connector API call.protected Account
getAccount
(String account) protected Ledger
getLedger
(Account account, DatePeriod period) protected DatePeriod
protected void
-
Constructor Details
-
JSONLedger
public JSONLedger()
-
-
Method Details
-
execute
Description copied from interface:JSONService
This method should be implemented to serve the connector API call. It carries out the execution logic of the call.- Specified by:
execute
in interfaceJSONService
- Parameters:
device
- Device on which the call is made.json
- JSON request object received from the device.result
- A JSONMap where response data is inserted. To highlight an error, respond withJSONMap.error(String)
.
-
getAccount
-
getPeriod
-
getLedger
- Throws:
Exception
-
log
-
addEntryDetails
-