Package de.willuhn.jameica.services

Examples of de.willuhn.jameica.services.BeanService


   * @see de.willuhn.jameica.gui.input.SelectInput#format(java.lang.Object)
   */
  @Override
  protected String format(Object bean)
  {
    BeanService service = Application.getBootLoader().getBootable(BeanService.class);
    SynchronizeBackend primary = service.get(SynchronizeEngine.class).getPrimary();
   
    String name = super.format(bean);
    if (bean != null && bean.equals(primary))
      name += " (" + i18n.tr("Standard") + ")";
   
View Full Code Here


  {
    // Wir checken, fuer welche Datentypen wir einen CSV-Treiber haben
    List<IOFormat> formats = new ArrayList<IOFormat>();
    try
    {
      BeanService service = Application.getBootLoader().getBootable(BeanService.class);
      ClassFinder finder = Application.getPluginLoader().getManifest(HBCI.class).getClassLoader().getClassFinder();
      Class<Format>[] classes = finder.findImplementors(Format.class);
      for (Class<Format> c:classes)
      {
        try
        {
          Format f = service.get(c);
          Class type = f.getType();
          if (type == null)
          {
            Logger.warn("csv format " + c.getName() + " supports no type, skipping");
            continue;
View Full Code Here

    setSize(550,SWT.DEFAULT);

    String s = null;
    try
    {
      BeanService service = Application.getBootLoader().getBootable(BeanService.class);
      SynchronizeSession session = service.get(HBCISynchronizeBackend.class).getCurrentSession();
      Konto konto = session != null ? session.getKonto() : null;
     
      if (konto != null)
      {
        s = konto.getBezeichnung();
View Full Code Here

  public void handleAction(Object context) throws ApplicationException
  {
    if (context == null)
      return;
   
    BeanService service = Application.getBootLoader().getBootable(BeanService.class);
    Class type          = context.getClass();
   
    Iterator<Class> keys = actionMap.keySet().iterator();
    while (keys.hasNext())
    {
      Class key = keys.next();
      if (key.isAssignableFrom(type))
      {
        Action a = service.get(actionMap.get(key));
        a.handleAction(context);
        return;
      }
    }
   
View Full Code Here

  public AbstractSepaSammelTransferList(Action action)
  {
    super(action);
    setMulti(true);
   
    BeanService service = Application.getBootLoader().getBootable(BeanService.class);
    final ReminderStorageProvider provider = service.get(ReminderStorageProviderHibiscus.class);

    setFormatter(new TableFormatter() {
      public void format(TableItem item) {
        SepaSammelTransfer l = (SepaSammelTransfer) item.getData();
        if (l == null)
View Full Code Here

  void execute(final SepaSammelTransfer transfer) throws ApplicationException, RemoteException
  {
    Konto konto = transfer.getKonto();
    Class<SynchronizeJobSepaSammelUeberweisung> type = SynchronizeJobSepaSammelUeberweisung.class;

    BeanService bs = Application.getBootLoader().getBootable(BeanService.class);
    SynchronizeEngine engine   = bs.get(SynchronizeEngine.class);
    SynchronizeBackend backend = engine.getBackend(type,konto);
    SynchronizeJob job         = backend.create(type,konto);
   
    job.setContext(SynchronizeJob.CTX_ENTITY,transfer);
   
View Full Code Here

     
      Konto konto = (Konto) getKontoAuswahl().getValue();
      if (konto == null)
        throw new ApplicationException(i18n.tr("Bitte w�hlen Sie ein Konto aus."));
     
      BeanService service = Application.getBootLoader().getBootable(BeanService.class);
      HBCITraceMessageConsumer tracer = service.get(HBCITraceMessageConsumer.class);
      List<HBCITraceMessage> messages = tracer.getTrace(konto.getID());
      if (messages == null || messages.size() == 0)
        throw new ApplicationException(i18n.tr("Keine HBCI-Protokolle zu diesem Konto vorhanden"));
     
      OutputStream os = null;
View Full Code Here

    this.syncList.clear();
   
    this.removeAll(); // leer machen
   
    // Liste der Sync-Jobs hinzufuegen
    BeanService service = Application.getBootLoader().getBootable(BeanService.class);
    List<SynchronizeBackend> backends = service.get(SynchronizeEngine.class).getBackends();
    for (SynchronizeBackend backend:backends)
    {
      Synchronization sync = new Synchronization();
      sync.setBackend(backend);
      List<SynchronizeJob> jobs = backend.getSynchronizeJobs(null); // fuer alle Konten
View Full Code Here

      }

      Konto konto = d.getKonto();
      Class<SynchronizeJobSepaDauerauftragStore> type = SynchronizeJobSepaDauerauftragStore.class;

      BeanService bs = Application.getBootLoader().getBootable(BeanService.class);
      SynchronizeEngine engine   = bs.get(SynchronizeEngine.class);
      SynchronizeBackend backend = engine.getBackend(type,konto);
      SynchronizeJob job         = backend.create(type,konto);
     
      job.setContext(SynchronizeJob.CTX_ENTITY,d);
     
View Full Code Here

    this.config = config;
   
    String s = null;
    try
    {
      BeanService service = Application.getBootLoader().getBootable(BeanService.class);
      SynchronizeSession session = service.get(HBCISynchronizeBackend.class).getCurrentSession();
      Konto konto = session != null ? session.getKonto() : null;
     
      if (konto != null)
      {
        s = konto.getBezeichnung();
View Full Code Here

TOP

Related Classes of de.willuhn.jameica.services.BeanService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.