Class UserNewsletterConfiguration
java.lang.Object
ch.tocco.nice2.optional.newsletter.api.AbstractNewsletterConfiguration
ch.tocco.nice2.optional.newsletter.impl.actions.UserNewsletterConfiguration
- All Implemented Interfaces:
NewsletterConfiguration
-
Field Summary
Fields inherited from class ch.tocco.nice2.optional.newsletter.api.AbstractNewsletterConfiguration
context, queryBuilderFactory
-
Constructor Summary
ConstructorDescriptionUserNewsletterConfiguration
(QueryBuilderFactory queryBuilderFactory, Context context) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getExistingEntity
(String identifier) returns an entity based on a identifiervoid
handleAffectedNewsletterEntity
(Entity entity) is called after a newsletter recipient is created or updatedvoid
unsubscribe
(String identifier) unsubscribes a newsletter recipient based on a identifierMethods inherited from class ch.tocco.nice2.optional.newsletter.api.AbstractNewsletterConfiguration
getEntityByUuidOrThrow, throwIfMailAlreadyExists
-
Constructor Details
-
UserNewsletterConfiguration
-
-
Method Details
-
getExistingEntity
Description copied from interface:NewsletterConfiguration
returns an entity based on a identifier- Parameters:
identifier
- identifier provided by user- Throws:
PersistException
-
handleAffectedNewsletterEntity
Description copied from interface:NewsletterConfiguration
is called after a newsletter recipient is created or updated- Parameters:
entity
- the entity affected- Throws:
PersistException
-
getInfoMailName
- Returns:
- the template id to be used in info mail
-
unsubscribe
Description copied from interface:NewsletterConfiguration
unsubscribes a newsletter recipient based on a identifier- Parameters:
identifier
- identifier provided by user- Throws:
PersistException
InterruptedException
-
getEntityName
- Returns:
- the name of the entity the configuration is used for
-
allowCreationOfNewEntity
public boolean allowCreationOfNewEntity()- Returns:
- is it allowed to create new newsletter recipient with this entity
-