Package de.frankmuenster.mahoe.jobs
Class AbstractMahoeSynchronizeJobProvider
- java.lang.Object
-
- de.frankmuenster.mahoe.jobs.AbstractMahoeSynchronizeJobProvider
-
- All Implemented Interfaces:
MahoeSynchronizeJobProvider
,de.willuhn.jameica.hbci.synchronize.SynchronizeJobProvider
,java.lang.Comparable
- Direct Known Subclasses:
AbstractMahoeSynchronizeJobProviderKontoauszug
,AbstractMahoeSynchronizeJobProviderKontoauszugPDF
public abstract class AbstractMahoeSynchronizeJobProvider extends java.lang.Object implements MahoeSynchronizeJobProvider
SynchronizeJobProvider-Abstract class for a Mahoe job- Author:
- Frank Münster
-
-
Field Summary
Fields Modifier and Type Field Description protected MahoeSynchronizeBackend
backend
The back end defined as a resource
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractMahoeSynchronizeJobProvider()
Default constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.util.List<java.lang.Class<? extends de.willuhn.jameica.hbci.synchronize.jobs.SynchronizeJob>>
getJobs()
Returns the list of synchronise jobs to that can be executed.java.util.List<java.lang.Class<? extends de.willuhn.jameica.hbci.synchronize.jobs.SynchronizeJob>>
getJobTypes()
protected abstract java.util.Set<de.willuhn.jameica.hbci.rmi.KontoType>
getSupportedAccountTypes()
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(java.lang.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(java.lang.Class<? extends de.willuhn.jameica.hbci.synchronize.jobs.SynchronizeJob> type, de.willuhn.jameica.hbci.rmi.Konto konto)
-
-
-
Field Detail
-
backend
protected final MahoeSynchronizeBackend backend
The back end defined as a resource
-
-
Method Detail
-
getJobTypes
public java.util.List<java.lang.Class<? extends de.willuhn.jameica.hbci.synchronize.jobs.SynchronizeJob>> getJobTypes()
- Specified by:
getJobTypes
in interfacede.willuhn.jameica.hbci.synchronize.SynchronizeJobProvider
- See Also:
SynchronizeJobProvider.getJobTypes()
-
supports
public boolean supports(java.lang.Class<? extends de.willuhn.jameica.hbci.synchronize.jobs.SynchronizeJob> type, de.willuhn.jameica.hbci.rmi.Konto konto)
- Specified by:
supports
in interfacede.willuhn.jameica.hbci.synchronize.SynchronizeJobProvider
- See Also:
SynchronizeJobProvider.supports(Class, Konto)
-
getJobs
protected abstract java.util.List<java.lang.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 java.util.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 java.rmi.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:
java.rmi.RemoteException
-
isJobTypeSupported
protected abstract boolean isJobTypeSupported(java.lang.Class<? extends de.willuhn.jameica.hbci.synchronize.jobs.SynchronizeJob> type, de.willuhn.jameica.hbci.rmi.Konto account) throws java.rmi.RemoteException
Checks if the jobType is supported by the given account.- Parameters:
type
- of the jobaccount
- to check- Returns:
true
in case the BLZ or BIC is supported,false
else.- Throws:
java.rmi.RemoteException
-
-