Class BosWebSite
- java.lang.Object
-
- de.frankmuenster.mahoe.web.AbstractWebSite<org.openqa.selenium.WebDriver,I,M>
-
- de.frankmuenster.mahoe.web.AbstractSeleniumWebSite<BosWebAccountInformation,BosBankMessages>
-
- de.frankmuenster.mahoe.banks.bos.web.BosWebSite
-
- All Implemented Interfaces:
WebSite<BosWebAccountInformation>
public final class BosWebSite extends AbstractSeleniumWebSite<BosWebAccountInformation,BosBankMessages>
- Author:
- Frank Münster
-
-
Field Summary
-
Fields inherited from class de.frankmuenster.mahoe.web.AbstractWebSite
accountInfo, NON_BREAK_SPACE, TABLE_TAG, webClient
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createSepaTransfer(de.willuhn.jameica.hbci.rmi.AuslandsUeberweisung aUeberweisung)
Erstellt eine Sepa-Überweisung bei der Bank.BosWebAccountInformation
getAccountInformation()
Liefert kontospezifische Informationen, die auf alle Fälle das Saldo und das letzte Umsatzdatum enthalten.java.util.List<MahoeKontoauszugPDF>
getAccountSheets(BosWebAccountInformation accountInfo)
Returns a list of new accounts sheets to save.java.util.List<de.willuhn.jameica.hbci.rmi.Umsatz>
getBookedTransactions()
Liefert eine Liste mit den gebuchten Umsätzen.static BosWebSite
getInstance(de.willuhn.jameica.hbci.rmi.Konto konto)
Returns the instance of the BosWebsite.java.util.List<de.willuhn.jameica.hbci.rmi.Umsatz>
getPreBookedTransactions()
Liefert eine Liste mit den vorgemerkten Umsätzen.protected java.util.Calendar
getStartdate()
Das Datum, ab dem Umsätze und Banknachrichten abgerufen werden sollen, falls noch keine Umsätze vorliegen.boolean
isStillLoggedIn()
Überprüft, ob das Webseite-Object immer noch an der Webseite angemeldet ist.void
login(char[] password, java.lang.String... loginParams)
An der Bank-Seite anmeldenvoid
logoff()
Abmelden von der Bank-Seite-
Methods inherited from class de.frankmuenster.mahoe.web.AbstractSeleniumWebSite
checkSeleniumDriverSet, elementExits, getAccountSheetAsByteArray, getDownloadsDirectory, getWebClient, saveCookies, shutDown
-
Methods inherited from class de.frankmuenster.mahoe.web.AbstractWebSite
getGenericClassParameter, getMessages, setAccountBasicInfo
-
-
-
-
Method Detail
-
getInstance
public static BosWebSite getInstance(de.willuhn.jameica.hbci.rmi.Konto konto) throws WebSiteException, de.willuhn.util.ApplicationException
Returns the instance of the BosWebsite. Creates a new one, if none exists or the users nam eis different.- Parameters:
konto
- the account to create the instance for- Returns:
- the instance of the BosWebsite for this account/user name
- Throws:
WebSiteException
de.willuhn.util.ApplicationException
-
createSepaTransfer
public void createSepaTransfer(de.willuhn.jameica.hbci.rmi.AuslandsUeberweisung aUeberweisung) throws WebSiteException, de.willuhn.util.ApplicationException
Description copied from interface:WebSite
Erstellt eine Sepa-Überweisung bei der Bank.- Parameters:
aUeberweisung
- die Sepa-Überweisung.- Throws:
WebSiteException
de.willuhn.util.ApplicationException
- See Also:
WebSite.createSepaTransfer(de.willuhn.jameica.hbci.rmi.AuslandsUeberweisung)
-
getAccountInformation
public BosWebAccountInformation getAccountInformation() throws WebSiteException, de.willuhn.util.ApplicationException
Description copied from interface:WebSite
Liefert kontospezifische Informationen, die auf alle Fälle das Saldo und das letzte Umsatzdatum enthalten.- Returns:
- die kontospezifische Informationen
- Throws:
WebSiteException
de.willuhn.util.ApplicationException
- See Also:
WebSite.getAccountInformation()
-
getAccountSheets
public java.util.List<MahoeKontoauszugPDF> getAccountSheets(BosWebAccountInformation accountInfo) throws WebSiteException
Description copied from interface:WebSite
Returns a list of new accounts sheets to save.- Parameters:
accountInfo
- the account information- Returns:
- a list with new account sheets
- Throws:
WebSiteException
- See Also:
WebSite.getAccountSheets(de.frankmuenster.mahoe.web.WebAccountInformation)
-
getBookedTransactions
public java.util.List<de.willuhn.jameica.hbci.rmi.Umsatz> getBookedTransactions() throws WebSiteException, de.willuhn.util.ApplicationException
Description copied from interface:WebSite
Liefert eine Liste mit den gebuchten Umsätzen.- Returns:
- Liste mit den gefunden Umsätzen, eine leere Liste sonst.
- Throws:
WebSiteException
de.willuhn.util.ApplicationException
- See Also:
WebSite.getBookedTransactions()
-
getPreBookedTransactions
public java.util.List<de.willuhn.jameica.hbci.rmi.Umsatz> getPreBookedTransactions() throws WebSiteException, de.willuhn.util.ApplicationException
Description copied from interface:WebSite
Liefert eine Liste mit den vorgemerkten Umsätzen.- Returns:
- Liste mit den gefunden Umsätzen, eine leere Liste sonst.
- Throws:
WebSiteException
de.willuhn.util.ApplicationException
- See Also:
WebSite.getPreBookedTransactions()
-
isStillLoggedIn
public boolean isStillLoggedIn() throws WebSiteException
Description copied from interface:WebSite
Überprüft, ob das Webseite-Object immer noch an der Webseite angemeldet ist.- Returns:
- true wenn die Session noch aktiv ist, false sonst
- Throws:
WebSiteException
- See Also:
WebSite.isStillLoggedIn()
-
login
public void login(char[] password, java.lang.String... loginParams) throws WebSiteException
Description copied from interface:WebSite
An der Bank-Seite anmelden- Parameters:
password
- das PasswortloginParams
- Login-Parameter als Array, das verschiedene Banken verschiedene Anforderungen haben können- Throws:
WebSiteException
- See Also:
WebSite.login(char[], java.lang.String[])
-
logoff
public void logoff() throws WebSiteException
Description copied from interface:WebSite
Abmelden von der Bank-Seite- Throws:
WebSiteException
- See Also:
WebSite.logoff()
-
getStartdate
protected java.util.Calendar getStartdate()
Description copied from class:AbstractWebSite
Das Datum, ab dem Umsätze und Banknachrichten abgerufen werden sollen, falls noch keine Umsätze vorliegen.- Specified by:
getStartdate
in classAbstractWebSite<org.openqa.selenium.WebDriver,BosWebAccountInformation,BosBankMessages>
- Returns:
- das StartDatum
- See Also:
AbstractWebSite.getStartdate()
-
-