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 MahoeSynchronizeBackendThe back end defined as a resource -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault 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 booleanisBankSupported(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 booleanisJobTypeSupported(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.booleansupports(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, waitMethods inherited from interface java.lang.Comparable
compareToMethods 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:
getJobTypesin 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:
supportsin 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:
truein case the BLZ or BIC is supported,falseelse.- 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:
truein case the BLZ or BIC is supported,falseelse.- Throws:
RemoteException
-