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 java.lang.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 Modifier Constructor Description protected
AbstractCreateAccountAssistant()
Standardkonstruktor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description de.willuhn.jameica.hbci.rmi.Konto
createAccount()
Erstellt ein neues Konto.abstract K
getDialog()
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.
-
-
-
Method Detail
-
createAccount
public de.willuhn.jameica.hbci.rmi.Konto createAccount() throws CreateAccountException, de.willuhn.jameica.system.OperationCanceledException
Description 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:
CreateAccountAssistant.createAccount()
-
getDialog
public abstract K getDialog() throws CreateAccountException
- Returns:
- the account specific dialog
- Throws:
CreateAccountException
-
setBankSpecificAccountParameter
protected abstract void setBankSpecificAccountParameter(de.willuhn.jameica.hbci.rmi.Konto konto, I info) throws java.rmi.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:
java.rmi.RemoteException
-
setBankSpecificMetaData
protected abstract void setBankSpecificMetaData(I info, de.willuhn.jameica.hbci.rmi.Konto konto) throws java.rmi.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:
java.rmi.RemoteException
de.willuhn.util.ApplicationException
-
-