* @param content Il contenuto per cui si vuole gestire la newsletter.
* @return true se l'accesso è consentito, false in caso contrario.
* @throws ApsSystemException
*/
private boolean isContentAllowed(Content content) throws ApsSystemException {
NewsletterConfig newsletterConfig = this.getNewsletterManager().getNewsletterConfig();
NewsletterContentType contentType = newsletterConfig.getContentType(content.getTypeCode());
if (contentType != null) {
if (this.getNewsletterManager().getNewsletterConfig().getAllContentsAttributeName() != null) {
return true;
}
Set<Object> categories = newsletterConfig.getSubscriptions().keySet();
for (Category category : content.getCategories()) {
if (this.isContained(category, categories)) {
return true;
}
}