Class BankingService
- java.lang.Object
-
- jadex.webservice.examples.rs.banking.BankingService
-
- All Implemented Interfaces:
IBankingService
public class BankingService extends java.lang.Object implements IBankingService
The Jadex implementation of the banking service.
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
component
The component.protected java.util.List<java.lang.String>
data
The account data.
-
Constructor Summary
Constructors Constructor Description BankingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>
addTransactionData(java.lang.String data)
Add an account statement.IFuture<AccountStatement>
getAccountStatement()
Get account statement.IFuture<AccountStatement>
getAccountStatement(Request request)
Get an account statement.IFuture<AccountStatement>
getAccountStatement(java.util.Date begin, java.util.Date end)
Get the account statement.IFuture<java.lang.Void>
removeTransactionData(java.lang.String data)
Remove an account statement.void
start()
Init with some data.IIntermediateFuture<AccountStatement>
subscribeForAccountStatements(long delay, int max)
Subscribe for account statements.
-
-
-
Field Detail
-
data
protected java.util.List<java.lang.String> data
The account data.
-
component
protected IInternalAccess component
The component.
-
-
Method Detail
-
start
public void start()
Init with some data.
-
getAccountStatement
public IFuture<AccountStatement> getAccountStatement(java.util.Date begin, java.util.Date end)
Get the account statement.- Specified by:
getAccountStatement
in interfaceIBankingService
- Parameters:
request
- The request.- Returns:
- The account statement.
-
getAccountStatement
public IFuture<AccountStatement> getAccountStatement()
Get account statement.- Specified by:
getAccountStatement
in interfaceIBankingService
- Returns:
- The account statement.
-
getAccountStatement
public IFuture<AccountStatement> getAccountStatement(Request request)
Get an account statement.- Specified by:
getAccountStatement
in interfaceIBankingService
- Parameters:
request
- The request.- Returns:
- The account statement.
-
subscribeForAccountStatements
public IIntermediateFuture<AccountStatement> subscribeForAccountStatements(long delay, int max)
Subscribe for account statements.- Specified by:
subscribeForAccountStatements
in interfaceIBankingService
- Returns:
- Account statements whenever available.
-
addTransactionData
public IFuture<java.lang.Void> addTransactionData(java.lang.String data)
Add an account statement.- Specified by:
addTransactionData
in interfaceIBankingService
- Parameters:
data
- The data.
-
removeTransactionData
public IFuture<java.lang.Void> removeTransactionData(java.lang.String data)
Remove an account statement.- Specified by:
removeTransactionData
in interfaceIBankingService
- Parameters:
data
- The data.
-
-