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 Faultcommit(Device device, JournalVoucher jv, JSON json, JSONMap result) protected AccountcreateAccount(Device device, String account) protected voidentryCreated(Device device, JournalVoucher jv, JSON json) voidThis method should be implemented to serve the connector API call.protected booleanvalidateWorkingDate(Device device, JournalVoucher jv, Date date)
-
Constructor Details
-
JSONTransact
public JSONTransact()
-
-
Method Details
-
execute
Description copied from interface:JSONServiceThis method should be implemented to serve the connector API call. It carries out the execution logic of the call.- Specified by:
executein 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
-