Class EditWorkflowValidator
java.lang.Object
de.hybris.platform.cmsfacades.workflow.validator.EditWorkflowValidator
- All Implemented Interfaces:
org.springframework.validation.Validator
public class EditWorkflowValidator
extends Object
implements org.springframework.validation.Validator
Validates fields of
CMSWorkflowData for a edit workflow operation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CMSWorkflowServicevoidsetCmsAdminSiteService(CMSAdminSiteService cmsAdminSiteService) voidsetCmsItemExistsInCatalogVersionPredicate(BiPredicate<String, CatalogVersionModel> cmsItemExistsInCatalogVersionPredicate) voidsetCmsWorkflowService(CMSWorkflowService cmsWorkflowService) voidsetWorkflowService(WorkflowService workflowService) booleanvoidprotected voidvalidateAttachment(String itemUuid, CatalogVersionModel catalogVersion, org.springframework.validation.Errors errors) This method validates each CmsItem that will be added as a workflow attachment.
-
Constructor Details
-
EditWorkflowValidator
public EditWorkflowValidator()
-
-
Method Details
-
supports
- Specified by:
supportsin interfaceorg.springframework.validation.Validator
-
validate
- Specified by:
validatein interfaceorg.springframework.validation.Validator
-
validateAttachment
protected void validateAttachment(String itemUuid, CatalogVersionModel catalogVersion, org.springframework.validation.Errors errors) This method validates each CmsItem that will be added as a workflow attachment.- Parameters:
itemUuid- - The unique identifier of the CmsItemcatalogVersion- - The catalog version where the workflow instance will be updated.errors- - Object that keeps track of the validation errors.
-
getCmsWorkflowService
-
setCmsWorkflowService
-
getWorkflowService
-
setWorkflowService
-
getCmsAdminSiteService
-
setCmsAdminSiteService
-
getCmsItemExistsInCatalogVersionPredicate
-
setCmsItemExistsInCatalogVersionPredicate
public void setCmsItemExistsInCatalogVersionPredicate(BiPredicate<String, CatalogVersionModel> cmsItemExistsInCatalogVersionPredicate)
-