C - the web client either WebClient from HTMLUnit or WebDriver from
SeleniumI - the concrete implementation of WebAccountInformationBosAccountStatementFinder, SantanderAccountStatementFinder, TargoBankAccountStatementFinderpublic abstract class AbstractAccountStatementFinder<C,I extends WebAccountInformation>
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected I |
accountInfo |
The Santander account info
|
protected java.util.Date |
lastStatementDate |
Date of last saved account statement
|
protected C |
webClient |
The webclient. needs to be initialised and logged in
|
| Constructor | Description |
|---|---|
AbstractAccountStatementFinder(C webClient,
I accountInfo) |
Constructs a new Finder for account statements.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addStatement(MahoeAccountStatement statementInfo,
byte[] data) |
Creates a new
Kontoauszug and then a new
MahoeKontoauszugPDF with the given information. |
void |
findStatements() |
Start looking for new sheets based on the
MetaKey.KONTOAUSZUG_INTERVAL_LAST |
java.util.List<MahoeKontoauszugPDF> |
getSheets() |
Return the found sheets or an empty list in case search was not yet
started or nothing was found.
|
boolean |
isSearchExecuted() |
|
protected abstract void |
startSearch() |
Starts the search of new account statements
|
protected final I extends WebAccountInformation accountInfo
protected final C webClient
protected final java.util.Date lastStatementDate
public void findStatements()
throws WebSiteException
MetaKey.KONTOAUSZUG_INTERVAL_LASTWebSiteExceptionpublic java.util.List<MahoeKontoauszugPDF> getSheets()
MahoeKontoauszugPDFpublic boolean isSearchExecuted()
protected void addStatement(MahoeAccountStatement statementInfo, byte[] data) throws java.rmi.RemoteException
Kontoauszug and then a new
MahoeKontoauszugPDF with the given information. Finally it is
added to the internal account statement list.statementInfo - the basic information about the statementdata - the PDF as byte[]java.rmi.RemoteException - in case the Kontoauszug could not be created.protected abstract void startSearch()
throws WebSiteException
WebSiteException