de.willuhn.datasource.Service
, Addressbook
, AddressbookService
, java.io.Serializable
, java.rmi.Remote
public class AddressbookServiceImpl extends java.rmi.server.UnicastRemoteObject implements AddressbookService
Constructor | Description |
---|---|
AddressbookServiceImpl() |
ct.
|
Modifier and Type | Method | Description |
---|---|---|
Address |
contains(Address address) |
Die Funktion liefert die erste gefundene Adresse aus den Adressbuechern.
|
java.util.List |
findAddresses(java.lang.String text) |
Sucht nach Adressen und liefert die gefundenen zurueck.
|
Addressbook[] |
getAddressbooks() |
Liefert die Liste aller gefundenen Adressbuecher.
|
java.lang.String |
getName() |
Liefert einen sprechenden Namen fuer das Adressbuch.
|
boolean |
hasExternalAddressbooks() |
Liefert true, wenn neben dem Hibiscus-eigenen Adressbuch noch weitere gefunden wurden.
|
boolean |
isStartable() |
|
boolean |
isStarted() |
|
void |
start() |
|
void |
stop(boolean arg0) |
finalize, getClass, notify, notifyAll, wait, wait, wait
public AddressbookServiceImpl() throws java.rmi.RemoteException
java.rmi.RemoteException
public java.util.List findAddresses(java.lang.String text) throws java.rmi.RemoteException
Addressbook
findAddresses
in interface Addressbook
text
- der Suchtext.Address
sein.
Die Funktion darf auch null
zurueckliefern, wenn keine Adressen gefunden wurden.java.rmi.RemoteException
Addressbook.findAddresses(java.lang.String)
public Address contains(Address address) throws java.rmi.RemoteException
contains
in interface Addressbook
address
- die gesuchte Adresse.null
.java.rmi.RemoteException
Addressbook.contains(de.willuhn.jameica.hbci.rmi.Address)
public Addressbook[] getAddressbooks() throws java.rmi.RemoteException
AddressbookService
getAddressbooks
in interface AddressbookService
null
und auch
nie ein leeres Array. Denn da AddressbookService
selbst ebenfalls das Addressbook
-Interface
implementiert, wird mindestens dieses zurueckgeliefert.
Allerdings wuerde es in diesem Fall keine Adressen finden,
da ja keine tatsaechlichen "Backend"-Adressbuecher existieren.
Zumindest das Hibiscus-eigene Adressbuch sollte aber immer
enthalten sein.java.rmi.RemoteException
AddressbookService.getAddressbooks()
public boolean hasExternalAddressbooks() throws java.rmi.RemoteException
AddressbookService
hasExternalAddressbooks
in interface AddressbookService
java.rmi.RemoteException
AddressbookService.hasExternalAddressbooks()
public java.lang.String getName() throws java.rmi.RemoteException
Addressbook
getName
in interface Addressbook
getName
in interface de.willuhn.datasource.Service
java.rmi.RemoteException
Service.getName()
public boolean isStartable() throws java.rmi.RemoteException
isStartable
in interface de.willuhn.datasource.Service
java.rmi.RemoteException
Service.isStartable()
public boolean isStarted() throws java.rmi.RemoteException
isStarted
in interface de.willuhn.datasource.Service
java.rmi.RemoteException
Service.isStarted()
public void start() throws java.rmi.RemoteException
start
in interface de.willuhn.datasource.Service
java.rmi.RemoteException
Service.start()
public void stop(boolean arg0) throws java.rmi.RemoteException
stop
in interface de.willuhn.datasource.Service
java.rmi.RemoteException
Service.stop(boolean)