Class ScheduledJobValidator
- java.lang.Object
-
- com.broadleafcommerce.scheduledjob.service.validation.ScheduledJobValidator
-
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
public class ScheduledJobValidator extends Object implements com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
Validations forScheduledJob
.- Author:
- Samarth Dhruva (samarthd)
-
-
Constructor Summary
Constructors Constructor Description ScheduledJobValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
supports(Class<?> serviceClass, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
void
validate(Object businessInstance, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
protected void
validateDetails(ScheduledJob scheduledJob, org.springframework.validation.Errors errors)
protected void
validateName(org.springframework.validation.Errors errors)
protected void
validateTiming(ScheduledJob scheduledJob, org.springframework.validation.Errors errors)
protected void
validateType(org.springframework.validation.Errors errors)
-
-
-
Method Detail
-
supports
public boolean supports(Class<?> serviceClass, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
- Specified by:
supports
in interfacecom.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
-
validate
public void validate(@NonNull Object businessInstance, @NonNull org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
- Specified by:
validate
in interfacecom.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
-
validateName
protected void validateName(org.springframework.validation.Errors errors)
-
validateType
protected void validateType(org.springframework.validation.Errors errors)
-
validateTiming
protected void validateTiming(ScheduledJob scheduledJob, org.springframework.validation.Errors errors)
-
validateDetails
protected void validateDetails(ScheduledJob scheduledJob, org.springframework.validation.Errors errors)
-
-