Class UserNewsletterConfiguration

java.lang.Object
ch.tocco.nice2.optional.newsletter.api.AbstractNewsletterConfiguration
ch.tocco.nice2.optional.newsletter.impl.actions.UserNewsletterConfiguration
All Implemented Interfaces:
NewsletterConfiguration

@Component public class UserNewsletterConfiguration extends AbstractNewsletterConfiguration
  • Constructor Details

  • Method Details

    • getExistingEntity

      public Entity getExistingEntity(String identifier) throws PersistException
      Description copied from interface: NewsletterConfiguration
      returns an entity based on a identifier
      Parameters:
      identifier - identifier provided by user
      Throws:
      PersistException
    • handleAffectedNewsletterEntity

      public void handleAffectedNewsletterEntity(Entity entity) throws PersistException
      Description copied from interface: NewsletterConfiguration
      is called after a newsletter recipient is created or updated
      Parameters:
      entity - the entity affected
      Throws:
      PersistException
    • getInfoMailName

      public String getInfoMailName()
      Returns:
      the template id to be used in info mail
    • unsubscribe

      public void unsubscribe(String identifier) throws PersistException, InterruptedException
      Description copied from interface: NewsletterConfiguration
      unsubscribes a newsletter recipient based on a identifier
      Parameters:
      identifier - identifier provided by user
      Throws:
      PersistException
      InterruptedException
    • getEntityName

      public String 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