Package de.frankmuenster.mahoe.assistant
Class AbstractCreateAccountAssistant<I extends CreateInfo,K extends AbstractCreateAccountDialog<I>>
java.lang.Object
de.frankmuenster.mahoe.assistant.AbstractCreateAccountAssistant<I,K>
- Type Parameters:
I
- the bank specificCreateInfo
classK
- the bank specificAbstractCreateAccountDialog
class
- All Implemented Interfaces:
CreateAccountAssistant
- Direct Known Subclasses:
AktienCreateAccountAssistent
,BosCreateAccountAssistent
,BshCreateAccountAssistent
,SantanderCreateAccountAssistent
,TargoBankCreateAccountAssistent
public abstract class AbstractCreateAccountAssistant<I extends CreateInfo,K extends AbstractCreateAccountDialog<I>>
extends Object
implements CreateAccountAssistant
Abstract class to create an account. Show the dialog, creates a new account and set default/basic values. Then calls the specific setup routine, which must be implemented by all sub classes.
The abstract class handles the following properties form the
CreateInfo
class object:
- Account type
- Comment
- Description
- Owner
- Save account sheets
- Save folder
- Author:
- Frank Münster
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.willuhn.jameica.hbci.rmi.Konto
Erstellt ein neues Konto.abstract K
protected abstract void
setBankSpecificAccountParameter
(de.willuhn.jameica.hbci.rmi.Konto konto, I info) Set the bank specific account parameters.protected abstract void
setBankSpecificMetaData
(I info, de.willuhn.jameica.hbci.rmi.Konto konto) Set the bank specific parameters.
-
Constructor Details
-
AbstractCreateAccountAssistant
protected AbstractCreateAccountAssistant()Standardkonstruktor
-
-
Method Details
-
createAccount
public de.willuhn.jameica.hbci.rmi.Konto createAccount() throws CreateAccountException, de.willuhn.jameica.system.OperationCanceledExceptionDescription copied from interface:CreateAccountAssistant
Erstellt ein neues Konto.- Specified by:
createAccount
in interfaceCreateAccountAssistant
- Returns:
- das neue Konto
- Throws:
CreateAccountException
de.willuhn.jameica.system.OperationCanceledException
- See Also:
-
getDialog
- Returns:
- the account specific dialog
- Throws:
CreateAccountException
-
setBankSpecificAccountParameter
protected abstract void setBankSpecificAccountParameter(de.willuhn.jameica.hbci.rmi.Konto konto, I info) throws RemoteException Set the bank specific account parameters. At leastkto
,blz
andkundenkennung
.- Parameters:
konto
- the account to add KTO and BLZinfo
- the account information for the new account- Throws:
RemoteException
-
setBankSpecificMetaData
protected abstract void setBankSpecificMetaData(I info, de.willuhn.jameica.hbci.rmi.Konto konto) throws RemoteException, de.willuhn.util.ApplicationException Set the bank specific parameters. The subclass implementation needs to take care about storing added/updated values.- Parameters:
info
- the info object from the dialogkonto
- the account created- Throws:
RemoteException
de.willuhn.util.ApplicationException
-