Class MailAutomationValidator

java.lang.Object
ch.tocco.nice2.persist.core.api.validation.AbstractEntitiesValidator
ch.tocco.nice2.optional.automation.impl.validator.MailAutomationValidator
All Implemented Interfaces:
EntitiesValidator

public class MailAutomationValidator extends AbstractEntitiesValidator
Ensure that a valid mail automation configuration is saved. It is verified that: - if no `recipient_path` is defined, correspondence language is mandatory - if `recipient_path` is defined it is a valid path - if a `recipient_path` is defined also the `mail_field` must be defined - either the correspondence language is fix in the configuration or there is a to one mandatory relation to correspondence language in the recipient model from the recipient entity
  • Constructor Details

    • MailAutomationValidator

      public MailAutomationValidator(Context context)
  • Method Details