Class SettingsRelevancyRuleGroupValidator
java.lang.Object
com.broadleafcommerce.search.core.service.validation.SettingsRelevancyRuleGroupValidator
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
public class SettingsRelevancyRuleGroupValidator
extends Object
implements com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
Validations for
SettingsRelevancyRuleGroup
- Since:
- Search Service 2.2.0, Release Train 2.2.0
- Author:
- karanjariwala
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SettingsRelevancyRuleGroupService<com.broadleafcommerce.search.api.domain.SettingsRelevancyRuleGroup>
void
setSettingsRelevancyRuleGroupService
(SettingsRelevancyRuleGroupService<com.broadleafcommerce.search.api.domain.SettingsRelevancyRuleGroup> settingsRelevancyRuleGroupService) boolean
supports
(Class<?> serviceClass, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) void
validate
(@NonNull Object businessInstance, @NonNull org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) void
validateForCreate
(@NonNull Object businessInstance, @NonNull org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected void
validateRelevancyRuleGroup
(@NonNull org.springframework.validation.Errors errors) protected void
validateSearchSettings
(@NonNull org.springframework.validation.Errors errors) protected void
validateSettingsRelevancyRuleGroupTypeDoesNotExist
(@NonNull com.broadleafcommerce.search.api.domain.SettingsRelevancyRuleGroup businessInstance, @NonNull org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
validateForReplace, validateForUpdate
-
Constructor Details
-
SettingsRelevancyRuleGroupValidator
public SettingsRelevancyRuleGroupValidator()
-
-
Method Details
-
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 @NonNull Object businessInstance, @NonNull @NonNull org.springframework.validation.Errors errors, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
validate
in interfacecom.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
-
validateForCreate
public void validateForCreate(@NonNull @NonNull Object businessInstance, @NonNull @NonNull org.springframework.validation.Errors errors, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
validateForCreate
in interfacecom.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
-
validateRelevancyRuleGroup
protected void validateRelevancyRuleGroup(@NonNull @NonNull org.springframework.validation.Errors errors) -
validateSearchSettings
protected void validateSearchSettings(@NonNull @NonNull org.springframework.validation.Errors errors) -
validateSettingsRelevancyRuleGroupTypeDoesNotExist
protected void validateSettingsRelevancyRuleGroupTypeDoesNotExist(@NonNull @NonNull com.broadleafcommerce.search.api.domain.SettingsRelevancyRuleGroup businessInstance, @NonNull @NonNull org.springframework.validation.Errors errors, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
setSettingsRelevancyRuleGroupService
@Autowired @Lazy public void setSettingsRelevancyRuleGroupService(SettingsRelevancyRuleGroupService<com.broadleafcommerce.search.api.domain.SettingsRelevancyRuleGroup> settingsRelevancyRuleGroupService) -
getSettingsRelevancyRuleGroupService
protected SettingsRelevancyRuleGroupService<com.broadleafcommerce.search.api.domain.SettingsRelevancyRuleGroup> getSettingsRelevancyRuleGroupService()
-