Interface NewsletterConfiguration
- All Known Implementing Classes:
AbstractNewsletterConfiguration
,UserNewsletterConfiguration
public interface NewsletterConfiguration
-
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 identifier
-
Method Details
-
getExistingEntity
returns an entity based on a identifier- Parameters:
identifier
- identifier provided by user- Throws:
PersistException
-
handleAffectedNewsletterEntity
is called after a newsletter recipient is created or updated- Parameters:
entity
- the entity affected- Throws:
PersistException
InterruptedException
-
getEntityName
String getEntityName()- Returns:
- the name of the entity the configuration is used for
-
getInfoMailName
String getInfoMailName()- Returns:
- the template id to be used in info mail
-
unsubscribe
unsubscribes a newsletter recipient based on a identifier- Parameters:
identifier
- identifier provided by user- Throws:
PersistException
InterruptedException
-
allowCreationOfNewEntity
boolean allowCreationOfNewEntity()- Returns:
- is it allowed to create new newsletter recipient with this entity
-