Class AbstractMahoeSynchronizeJobProvider

java.lang.Object
de.frankmuenster.mahoe.jobs.AbstractMahoeSynchronizeJobProvider
All Implemented Interfaces:
MahoeSynchronizeJobProvider, de.willuhn.jameica.hbci.synchronize.SynchronizeJobProvider, Comparable
Direct Known Subclasses:
AbstractMahoeSynchronizeJobProviderKontoauszug, AbstractMahoeSynchronizeJobProviderKontoauszugPDF

public abstract class AbstractMahoeSynchronizeJobProvider extends Object implements MahoeSynchronizeJobProvider
SynchronizeJobProvider-Abstract class for a Mahoe job
Author:
Frank Münster
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final MahoeSynchronizeBackend
    The back end defined as a resource
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract List<Class<? extends de.willuhn.jameica.hbci.synchronize.jobs.SynchronizeJob>>
    Returns the list of synchronise jobs to that can be executed.
    List<Class<? extends de.willuhn.jameica.hbci.synchronize.jobs.SynchronizeJob>>
     
    protected abstract Set<de.willuhn.jameica.hbci.rmi.KontoType>
    Returns the list of supported an account type.
    protected abstract boolean
    isBankSupported(de.willuhn.jameica.hbci.rmi.Konto account)
    Checks if the bank of a given account is supported in terms of BLZ or BIC.
    protected abstract boolean
    isJobTypeSupported(Class<? extends de.willuhn.jameica.hbci.synchronize.jobs.SynchronizeJob> type, de.willuhn.jameica.hbci.rmi.Konto account)
    Checks if the jobType is supported by the given account.
    boolean
    supports(Class<? extends de.willuhn.jameica.hbci.synchronize.jobs.SynchronizeJob> type, de.willuhn.jameica.hbci.rmi.Konto konto)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface de.willuhn.jameica.hbci.synchronize.SynchronizeJobProvider

    getSynchronizeJobs
  • Field Details

  • Constructor Details

    • AbstractMahoeSynchronizeJobProvider

      protected AbstractMahoeSynchronizeJobProvider()
      Default constructor
  • Method Details

    • getJobTypes

      public List<Class<? extends de.willuhn.jameica.hbci.synchronize.jobs.SynchronizeJob>> getJobTypes()
      Specified by:
      getJobTypes in interface de.willuhn.jameica.hbci.synchronize.SynchronizeJobProvider
      See Also:
      • SynchronizeJobProvider.getJobTypes()
    • supports

      public boolean supports(Class<? extends de.willuhn.jameica.hbci.synchronize.jobs.SynchronizeJob> type, de.willuhn.jameica.hbci.rmi.Konto konto)
      Specified by:
      supports in interface de.willuhn.jameica.hbci.synchronize.SynchronizeJobProvider
      See Also:
      • SynchronizeJobProvider.supports(Class, Konto)
    • getJobs

      protected abstract List<Class<? extends de.willuhn.jameica.hbci.synchronize.jobs.SynchronizeJob>> getJobs()
      Returns the list of synchronise jobs to that can be executed.
      Returns:
      the list of synchronise jobs to that can be executed
    • getSupportedAccountTypes

      protected abstract Set<de.willuhn.jameica.hbci.rmi.KontoType> getSupportedAccountTypes()
      Returns the list of supported an account type.
      Returns:
      the list of supported an account type
    • isBankSupported

      protected abstract boolean isBankSupported(de.willuhn.jameica.hbci.rmi.Konto account) throws RemoteException
      Checks if the bank of a given account is supported in terms of BLZ or BIC.
      Parameters:
      account - to check
      Returns:
      true in case the BLZ or BIC is supported, false else.
      Throws:
      RemoteException
    • isJobTypeSupported

      protected abstract boolean isJobTypeSupported(Class<? extends de.willuhn.jameica.hbci.synchronize.jobs.SynchronizeJob> type, de.willuhn.jameica.hbci.rmi.Konto account) throws RemoteException
      Checks if the jobType is supported by the given account.
      Parameters:
      type - of the job
      account - to check
      Returns:
      true in case the BLZ or BIC is supported, false else.
      Throws:
      RemoteException