Class ReportMailingJobValidator
java.lang.Object
org.apache.fineract.infrastructure.reportmailingjob.validation.ReportMailingJobValidator
-
Constructor Summary
ConstructorsConstructorDescriptionReportMailingJobValidator(org.apache.fineract.infrastructure.core.serialization.FromJsonHelper fromJsonHelper) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValidEmail(String email) check if string is a valid email addressvoidvalidateCreateRequest(org.apache.fineract.infrastructure.core.api.JsonCommand jsonCommand) validate the request to create a new report mailing jobvalidateEmailRecipients(String emailRecipients) Validate the email recipients stringvalidateStretchyReportParamMap(String stretchyReportParamMap) validate the stretchy report param json stringvoidvalidateUpdateRequest(org.apache.fineract.infrastructure.core.api.JsonCommand jsonCommand) validate the request to update a report mailing job
-
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
check if string is a valid email address- Parameters:
email- -- string to be validated- Returns:
- true if string is a valid email address
-
validateEmailRecipients
Validate the email recipients string- Parameters:
emailRecipients- -- the email recipients string to be validated- Returns:
- a hashset containing valid email addresses
-
validateStretchyReportParamMap
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
-