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
ConstructorsConstructorDescriptionUserNewsletterConfiguration(QueryBuilderFactory queryBuilderFactory, Context context) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetExistingEntity(String identifier) returns an entity based on a identifiervoidhandleAffectedNewsletterEntity(Entity entity) is called after a newsletter recipient is created or updatedvoidunsubscribe(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:NewsletterConfigurationreturns an entity based on a identifier- Parameters:
identifier- identifier provided by user- Throws:
PersistException
-
handleAffectedNewsletterEntity
Description copied from interface:NewsletterConfigurationis 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:NewsletterConfigurationunsubscribes a newsletter recipient based on a identifier- Parameters:
identifier- identifier provided by user- Throws:
PersistExceptionInterruptedException
-
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
-