Package com.storedobject.core
Class JSONTransact
java.lang.Object
com.storedobject.core.JSONTransact
- All Implemented Interfaces:
JSONService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Fault
commit
(Device device, JournalVoucher jv, JSON json, JSONMap result) protected Account
createAccount
(Device device, String account) protected void
entryCreated
(Device device, JournalVoucher jv, JSON json) void
This method should be implemented to serve the connector API call.protected boolean
validateWorkingDate
(Device device, JournalVoucher jv, Date date)
-
Constructor Details
-
JSONTransact
public JSONTransact()
-
-
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)
.
-
entryCreated
-
validateWorkingDate
-
commit
-
createAccount
-