article.getArticleId());
exceptionArrayList.add(cmpe);
}
}
}
PubInfo pi = null;
try {
pi = PublicationHelper.getPubInfoFromPubName(article.getPubName(), con);
}
catch (SQLException se) {
// If there's a problem inserting the article, it's impossible to store
// related content, so just throw exception.
RelatedPackagePersistenceException rpe =
new RelatedPackagePersistenceException(se.getMessage(),
"Error trying to retrieve publication information for article " +
article.getArticleId());
exceptionArrayList.add(rpe);
throw new ContentPersistenceExceptions(exceptionArrayList);
}
contentPackage.setSiteId(pi.getSiteId());
contentPackage.setPubId(pi.getPubId());
}
if (contentPackage.hasPhotoPackage()) {
PhotoPackage currentPhotoPkg = contentPackage.getPhotoPackage();
currentPhotoPkg.setPubId(contentPackage.getPubId());