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
ConstructorDescriptionNewsletterSubscriptionFlowServiceImpl
(RebindService rebindService, SecurityManager securityManager, Context context, BusinessUnitManager businessUnitManager, MailFactory mailFactory, EmailTemplateLoadService emailTemplateLoadService, L10N l10N, QueryBuilderFactory queryBuilderFactory, ExternalEntityService entityService) -
Method Summary
Modifier and TypeMethodDescriptionboolean
allowCreation
(String entityName) getExistentNewsletterSubscription
(String uuid, String entityName) loadEntityForForm
(String uuid, String entityName, String formUri, String entityUri) void
save
(RebindValue[] rebindValues, HashMap<String, String> params) void
sendInfoMail
(String email, HashMap<String, String> params) void
setNewsletterConfigurations
(List<NewsletterConfiguration> newsletterConfigurations) void
unsubscribe
(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:
loadEntityForForm
in interfaceNewsletterSubscriptionFlowService
- Throws:
PersistException
-
allowCreation
- Specified by:
allowCreation
in interfaceNewsletterSubscriptionFlowService
-
save
public void save(RebindValue[] rebindValues, HashMap<String, String> params) throws UnresolvableUriException, UriStoreException, RebindException, URISyntaxException, PersistException, InterruptedException- Specified by:
save
in interfaceNewsletterSubscriptionFlowService
- Throws:
UnresolvableUriException
UriStoreException
RebindException
URISyntaxException
PersistException
InterruptedException
-
getExistentNewsletterSubscription
public String getExistentNewsletterSubscription(String uuid, String entityName) throws PersistException - Specified by:
getExistentNewsletterSubscription
in interfaceNewsletterSubscriptionFlowService
- Throws:
PersistException
-
unsubscribe
public void unsubscribe(String uuid, String entityName) throws PersistException, InterruptedException - Specified by:
unsubscribe
in interfaceNewsletterSubscriptionFlowService
- Throws:
PersistException
InterruptedException
-
sendInfoMail
public void sendInfoMail(String email, HashMap<String, String> params) throws PersistException, InterruptedException, UnsupportedEncodingException, jakarta.mail.internet.AddressException, MailException- Specified by:
sendInfoMail
in interfaceNewsletterSubscriptionFlowService
- Throws:
PersistException
InterruptedException
UnsupportedEncodingException
jakarta.mail.internet.AddressException
MailException
-
setNewsletterConfigurations
@Autowired public void setNewsletterConfigurations(List<NewsletterConfiguration> newsletterConfigurations)
-