Class ReportMailingJobValidator

java.lang.Object
org.apache.fineract.infrastructure.reportmailingjob.validation.ReportMailingJobValidator

@Component public class ReportMailingJobValidator extends Object
  • Constructor Details

    • ReportMailingJobValidator

      @Autowired public ReportMailingJobValidator(org.apache.fineract.infrastructure.core.serialization.FromJsonHelper fromJsonHelper)
  • Method Details

    • validateCreateRequest

      public void validateCreateRequest(org.apache.fineract.infrastructure.core.api.JsonCommand jsonCommand)
      validate the request to create a new report mailing job
      Parameters:
      jsonCommand - -- the JSON command object (instance of the JsonCommand class)
    • validateUpdateRequest

      public void validateUpdateRequest(org.apache.fineract.infrastructure.core.api.JsonCommand jsonCommand)
      validate the request to update a report mailing job
      Parameters:
      jsonCommand - -- the JSON command object (instance of the JsonCommand class)
    • isValidEmail

      public boolean isValidEmail(String email)
      check if string is a valid email address
      Parameters:
      email - -- string to be validated
      Returns:
      true if string is a valid email address
    • validateEmailRecipients

      public Set<String> validateEmailRecipients(String emailRecipients)
      Validate the email recipients string
      Parameters:
      emailRecipients - -- the email recipients string to be validated
      Returns:
      a hashset containing valid email addresses
    • validateStretchyReportParamMap

      public HashMap<String,String> validateStretchyReportParamMap(String stretchyReportParamMap)
      validate the stretchy report param json string
      Parameters:
      stretchyReportParamMap - -- json string to be validated
      Returns:
      if string is valid or empty, a HashMap object, else null