Class CatalogVersionPermissionValidator
java.lang.Object
com.hybris.backoffice.excel.validators.ExcelGenericReferenceValidator
com.hybris.backoffice.excel.validators.CatalogVersionPermissionValidator
- All Implemented Interfaces:
ExcelValidator
-
Field Summary
Fields inherited from class com.hybris.backoffice.excel.validators.ExcelGenericReferenceValidator
VALIDATION_MESSAGE_KEYFields inherited from interface com.hybris.backoffice.excel.validators.ExcelValidator
CTX_MEDIA_CONTENT_ENTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor) Validator can handle request only if call value is not emptyprotected CatalogVersionServiceprotected UserServicevoidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetUserService(UserService userService) validate(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor, Map<String, Object> context) Validates given cell and returns validation result.protected Optional<ValidationMessage>validateCatalogVersion(Map<String, String> parameters, AttributeDescriptorModel attributeDescriptor, CatalogVersionModel catalogVersion) Methods inherited from class com.hybris.backoffice.excel.validators.ExcelGenericReferenceValidator
buildFlexibleSearchQuery, getFlexibleSearchService, getRequiredAttributesFactory, getTypeService, isBlacklisted, prepareValidationMessage, recursivelyValidateAllLevels, setBlacklistedTypes, setExcelWorkbookEntriesService, setFlexibleSearchService, setRequiredAttributesFactory, setTypeService, validateRequiredAttribute, validateSingleLevel, validateSingleValue
-
Constructor Details
-
CatalogVersionPermissionValidator
public CatalogVersionPermissionValidator()
-
-
Method Details
-
validate
public ExcelValidationResult validate(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor, Map<String, Object> context) Description copied from interface:ExcelValidatorValidates given cell and returns validation result. If cell doesn't have validation issues thenExcelValidationResult.SUCCESSshould be returned.- Specified by:
validatein interfaceExcelValidator- Overrides:
validatein classExcelGenericReferenceValidatorcontext- - map which can be used as a cache. The map is shared between all request for given excel sheet.- Returns:
ExcelValidationResult
-
validateCatalogVersion
protected Optional<ValidationMessage> validateCatalogVersion(Map<String, String> parameters, AttributeDescriptorModel attributeDescriptor, CatalogVersionModel catalogVersion) -
canHandle
public boolean canHandle(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor) Description copied from class:ExcelGenericReferenceValidatorValidator can handle request only if call value is not empty- Specified by:
canHandlein interfaceExcelValidator- Overrides:
canHandlein classExcelGenericReferenceValidator- Returns:
- boolean whether validator can handle the cell.
-
getUserService
-
setUserService
-
getCatalogVersionService
-
setCatalogVersionService
-