Package com.agiletec.aps.system.exception

Examples of com.agiletec.aps.system.exception.ApsSystemException


      NewsletterContentType contentType = config.getContentType(content.getTypeCode());
      int modelId = html ? contentType.getHtmlModel() : contentType.getSimpleTextModel();
      mailBody = this.buildMailBody(content, modelId, html);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "buildMailBody");
      throw new ApsSystemException("Errore in generazione body contenuto " + content.getId(), t);
    }
    return mailBody;
  }
View Full Code Here


      }
      this.sendNewsletterToSubscribers(contents, newsletterReport);
      this.addNewsletterReport(newsletterReport);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "sendNewsletterToUsers");
      throw new ApsSystemException("Error sending Newsletter To Users ", t);
    }
  }
View Full Code Here

      try {
        List<String> usernamesForAllContents = ((IEntityManager) this.getProfileManager()).searchId(filters);
        usernames.addAll(usernamesForAllContents);
      } catch (Throwable t) {
        ApsSystemUtils.logThrowable(t, this, "extractUsernames");
        throw new ApsSystemException("Error searching for usernames on profile's attribute " + allContentsAttribute, t);
      }
    }
    Iterator<Object> subscriptionsIter = config.getSubscriptions().values().iterator();
    while (subscriptionsIter.hasNext()) {
      String boolAttributeName = (String) subscriptionsIter.next();
      if (null != boolAttributeName && boolAttributeName.trim().length() > 0) {
        EntitySearchFilter filter = new EntitySearchFilter(boolAttributeName, true, new Boolean(true), false);
        EntitySearchFilter[] filters = {filter};
        try {
          List<String> usernamesForCategory = ((IEntityManager) this.getProfileManager()).searchId(filters);
          usernames.addAll(usernamesForCategory);
        } catch (Throwable t) {
          ApsSystemUtils.logThrowable(t, this, "extractUsernames");
          throw new ApsSystemException("Error searching for usernames on profile's attribute " + boolAttributeName, t);
        }
      }
    }
    return usernames;
  }
View Full Code Here

    List<Subscriber> subscribers = new ArrayList<Subscriber>();
    try {
      subscribers = this.getNewsletterDAO().loadSubscribers();
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadSubscribers");
      throw new ApsSystemException(
          "Errore caricamento di tutte le sottoscrizioni", t);
    }
    return subscribers;
  }
View Full Code Here

    List<Subscriber> subscribers = new ArrayList<Subscriber>();
    try {
      subscribers = this.getNewsletterDAO().searchSubscribers(mailAddress, active);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "searchSubscribers");
      throw new ApsSystemException("Errore in ricerca sottoscrizioni", t);
    }
    return subscribers;
  }
View Full Code Here

      this.cleanOldSubscribers();
      Subscriber subscriber = this.getNewsletterDAO().loadSubscriber(mailAddress);
      return subscriber;
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadSubscriber");
      throw new ApsSystemException("Errore caricamento di un sottoscrizioni " + mailAddress, t);
    }
  }
View Full Code Here

      String token = this.createToken(mailAddress);
      this.getNewsletterDAO().addSubscriber(subscriber, token);
      this.sendSubscriptionMail(mailAddress, token);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "addSubscriber");
      throw new ApsSystemException("Errore in aggiunta sottoscrizione", t);
    }
  }
View Full Code Here

      String token = this.createToken(mailAddress);
      this.getNewsletterDAO().updateSubscriber(subscriber, token);
      this.sendSubscriptionMail(mailAddress, token);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "resetSubscriber");
      throw new ApsSystemException("Errore in reset sottoscrizione", t);
    }
  }
View Full Code Here

  public void deleteSubscriber(String mailAddress) throws ApsSystemException {
    try {
      this.getNewsletterDAO().deleteSubscriber(mailAddress);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "deleteSubscriber");
      throw new ApsSystemException("Errore cancellazione sottoscrizione", t);
    }
  }
View Full Code Here

    try {
      this.cleanOldSubscribers();
      this.getNewsletterDAO().activateSubscriber(mailAddress);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "activateSubscriber");
      throw new ApsSystemException("Errore attivazione sottoscrizione", t);
    }
  }
View Full Code Here

TOP

Related Classes of com.agiletec.aps.system.exception.ApsSystemException

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.