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
,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
FieldsModifier and TypeFieldDescriptionprotected final MahoeSynchronizeBackend
The back end defined as a resource -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Default constructor -
Method Summary
Modifier and TypeMethodDescriptiongetJobs()
Returns the list of synchronise jobs to that can be executed.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
-
backend
The back end defined as a resource
-
-
Constructor Details
-
AbstractMahoeSynchronizeJobProvider
protected AbstractMahoeSynchronizeJobProvider()Default constructor
-
-
Method Details
-
getJobTypes
- Specified by:
getJobTypes
in interfacede.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 interfacede.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
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 jobaccount
- to check- Returns:
true
in case the BLZ or BIC is supported,false
else.- Throws:
RemoteException
-