Class AbstractBankMessages<C>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<MahoeMessage> messages
      Liste mit Bank-Nachrichten
      static java.lang.String NOT_IMPLEMENTED
      Logger information in case an method is not yet implemented
      protected C webclient
      Der WebClient
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractBankMessages​(C webClient)
      Konstruktor mit Angabe des initialisierten WebClient
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean existsMessage​(java.lang.String blz, java.util.Date date, java.lang.String subject)
      Überprüft, ob die Nachricht schon existiert.
      static de.willuhn.datasource.rmi.DBIterator<de.willuhn.jameica.hbci.rmi.Nachricht> getBankMessages​(java.lang.String blz)
      Liefert die Nachrichtenliste für eine Bank
      java.util.Date getLastMsgDate​(WebAccountInformation accountInfo)
      Returns the date of the latest message of the bank
      abstract void readMessages​(java.util.Date startDate)
      Liest alle Bank-Nachrichten ab startDate.
      int saveMessage()
      Speichert eine Bank-Nachricht.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NOT_IMPLEMENTED

        public static final java.lang.String NOT_IMPLEMENTED
        Logger information in case an method is not yet implemented
        See Also:
        Constant Field Values
      • messages

        protected java.util.List<MahoeMessage> messages
        Liste mit Bank-Nachrichten
      • webclient

        protected C webclient
        Der WebClient
    • Constructor Detail

      • AbstractBankMessages

        protected AbstractBankMessages​(C webClient)
        Konstruktor mit Angabe des initialisierten WebClient
        Parameters:
        webClient -
    • Method Detail

      • existsMessage

        public static boolean existsMessage​(java.lang.String blz,
                                            java.util.Date date,
                                            java.lang.String subject)
        Überprüft, ob die Nachricht schon existiert.
        Parameters:
        blz -
        date -
        subject -
        Returns:
        true, wenn die Nachricht bereits vorhanden ist, false sonst.
      • getBankMessages

        public static de.willuhn.datasource.rmi.DBIterator<de.willuhn.jameica.hbci.rmi.Nachricht> getBankMessages​(java.lang.String blz)
                                                                                                           throws java.rmi.RemoteException
        Liefert die Nachrichtenliste für eine Bank
        Parameters:
        blz - die Bankleitzahl
        Returns:
        die Liste mit den Nachrichten
        Throws:
        java.rmi.RemoteException
      • getLastMsgDate

        public java.util.Date getLastMsgDate​(WebAccountInformation accountInfo)
        Returns the date of the latest message of the bank
        Parameters:
        accountInfo - with the bank (BLZ) to check
        Returns:
        the date of the latest message or 01-01-2000
      • readMessages

        public abstract void readMessages​(java.util.Date startDate)
                                   throws WebSiteException,
                                          de.willuhn.util.ApplicationException
        Description copied from interface: InterfaceBankMessages
        Liest alle Bank-Nachrichten ab startDate. Ist startDate nicht gegeben, wird das letzte Jahr verwendet. Muss von der realen Klasse implementiert werden.
        Specified by:
        readMessages in interface InterfaceBankMessages
        Throws:
        WebSiteException
        de.willuhn.util.ApplicationException
      • saveMessage

        public int saveMessage()
                        throws de.willuhn.util.ApplicationException
        Description copied from interface: InterfaceBankMessages
        Speichert eine Bank-Nachricht. Allerdings nur wenn sie nicht schon vorhanden ist.
        Specified by:
        saveMessage in interface InterfaceBankMessages
        Returns:
        Anzahl an neuen Nachrichten
        Throws:
        de.willuhn.util.ApplicationException