I - the concrete implementation of WebAccountInformationpublic abstract class AbstractAccountStatementFinder<I extends WebAccountInformation>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected I |
accountInfo
The Santander account info
|
protected java.util.Date |
lastStatementDate
Date of last saved account statement
|
protected WebClient |
webClient
The webclient. needs to be initialised and logged in
|
| Constructor and Description |
|---|
AbstractAccountStatementFinder(WebClient webClient,
I accountInfo)
Constructs a new Finder for account statements.
|
| Modifier and Type | Method and 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 WebClient webClient
protected final java.util.Date lastStatementDate
public AbstractAccountStatementFinder(WebClient webClient,
I accountInfo)
webClient - accountInfo - 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