Examples of IKeyGeneratorManager


Examples of com.agiletec.aps.system.services.keygenerator.IKeyGeneratorManager

   * @throws ApsSystemException In caso di errore.
   */
  protected void addNewsletterReport(NewsletterReport newsletterReport) throws ApsSystemException {
    if (null == newsletterReport) return;
    try {
      IKeyGeneratorManager keyGeneratorManager = this.getKeyGeneratorManager();
      newsletterReport.setId(keyGeneratorManager.getUniqueKeyCurrentValue());
      for (ContentReport contentReport : newsletterReport.getContentReports().values()) {
        contentReport.setId(keyGeneratorManager.getUniqueKeyCurrentValue());
      }
      this.getNewsletterDAO().addNewsletterReport(newsletterReport);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "buildMailBody", "Error adding newsletter report : id " + newsletterReport.getId());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.