Class NewsletterSubscriptionFlowServiceImpl
java.lang.Object
ch.tocco.nice2.optional.newsletter.impl.actions.NewsletterSubscriptionFlowServiceImpl
- All Implemented Interfaces:
NewsletterSubscriptionFlowService
public class NewsletterSubscriptionFlowServiceImpl
extends Object
implements NewsletterSubscriptionFlowService
-
Constructor Summary
ConstructorsConstructorDescriptionNewsletterSubscriptionFlowServiceImpl(RebindService rebindService, SecurityManager securityManager, Context context, BusinessUnitManager businessUnitManager, MailFactory mailFactory, EmailTemplateLoadService emailTemplateLoadService, L10N l10N, QueryBuilderFactory queryBuilderFactory, ExternalEntityService entityService) -
Method Summary
Modifier and TypeMethodDescriptionbooleanallowCreation(String entityName) getExistentNewsletterSubscription(String uuid, String entityName) loadEntityForForm(String uuid, String entityName, String formUri, String entityUri) voidsave(RebindValue[] rebindValues, HashMap<String, String> params) voidsendInfoMail(String email, HashMap<String, String> params) voidsetNewsletterConfigurations(List<NewsletterConfiguration> newsletterConfigurations) voidunsubscribe(String uuid, String entityName)
-
Constructor Details
-
NewsletterSubscriptionFlowServiceImpl
public NewsletterSubscriptionFlowServiceImpl(RebindService rebindService, SecurityManager securityManager, Context context, BusinessUnitManager businessUnitManager, MailFactory mailFactory, EmailTemplateLoadService emailTemplateLoadService, L10N l10N, QueryBuilderFactory queryBuilderFactory, ExternalEntityService entityService)
-
-
Method Details
-
loadEntityForForm
public EntityFormData loadEntityForForm(String uuid, String entityName, String formUri, String entityUri) throws PersistException - Specified by:
loadEntityForFormin interfaceNewsletterSubscriptionFlowService- Throws:
PersistException
-
allowCreation
- Specified by:
allowCreationin interfaceNewsletterSubscriptionFlowService
-
save
public void save(RebindValue[] rebindValues, HashMap<String, String> params) throws UnresolvableUriException, UriStoreException, RebindException, URISyntaxException, PersistException, InterruptedException- Specified by:
savein interfaceNewsletterSubscriptionFlowService- Throws:
UnresolvableUriExceptionUriStoreExceptionRebindExceptionURISyntaxExceptionPersistExceptionInterruptedException
-
getExistentNewsletterSubscription
public String getExistentNewsletterSubscription(String uuid, String entityName) throws PersistException - Specified by:
getExistentNewsletterSubscriptionin interfaceNewsletterSubscriptionFlowService- Throws:
PersistException
-
unsubscribe
public void unsubscribe(String uuid, String entityName) throws PersistException, InterruptedException - Specified by:
unsubscribein interfaceNewsletterSubscriptionFlowService- Throws:
PersistExceptionInterruptedException
-
sendInfoMail
public void sendInfoMail(String email, HashMap<String, String> params) throws PersistException, InterruptedException, UnsupportedEncodingException, jakarta.mail.internet.AddressException, MailException- Specified by:
sendInfoMailin interfaceNewsletterSubscriptionFlowService- Throws:
PersistExceptionInterruptedExceptionUnsupportedEncodingExceptionjakarta.mail.internet.AddressExceptionMailException
-
setNewsletterConfigurations
@Autowired public void setNewsletterConfigurations(List<NewsletterConfiguration> newsletterConfigurations)
-