Class AbstractAccountStatementFinder<C,​I extends WebAccountInformation>

    • Field Summary

      Fields 
      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 Summary

      Constructors 
      Constructor Description
      AbstractAccountStatementFinder​(C webClient, I accountInfo)
      Constructs a new Finder for account statements.
    • Field Detail

      • webClient

        protected final C webClient
        The webclient. needs to be initialised and logged in
      • lastStatementDate

        protected final java.util.Date lastStatementDate
        Date of last saved account statement
    • Constructor Detail

      • AbstractAccountStatementFinder

        public AbstractAccountStatementFinder​(C webClient,
                                              I accountInfo)
        Constructs a new Finder for account statements. Must be called from real implementations.
        Parameters:
        webClient -
        accountInfo -
    • Method Detail

      • findStatements

        public void findStatements()
                            throws WebSiteException
        Start looking for new sheets based on the MetaKey.KONTOAUSZUG_INTERVAL_LAST
        Throws:
        WebSiteException
      • getSheets

        public java.util.List<MahoeKontoauszugPDF> getSheets()
        Return the found sheets or an empty list in case search was not yet started or nothing was found.
        Returns:
        the list with MahoeKontoauszugPDF
      • isSearchExecuted

        public boolean isSearchExecuted()
        Returns:
        the searchExecuted
      • addStatement

        protected void addStatement​(MahoeAccountStatement statementInfo,
                                    byte[] data)
                             throws java.rmi.RemoteException
        Creates a new Kontoauszug and then a new MahoeKontoauszugPDF with the given information. Finally it is added to the internal account statement list.
        Parameters:
        statementInfo - the basic information about the statement
        data - the PDF as byte[]
        Throws:
        java.rmi.RemoteException - in case the Kontoauszug could not be created.