Class DefaultWorkflowItemValidator
- java.lang.Object
-
- de.hybris.platform.cmsfacades.cmsitems.validator.DefaultWorkflowItemValidator
-
- All Implemented Interfaces:
Validator<CMSItemModel>
public class DefaultWorkflowItemValidator extends java.lang.Object implements Validator<CMSItemModel>
Validates whether the item model can be edited in current workflow context.
-
-
Constructor Summary
Constructors Constructor Description DefaultWorkflowItemValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CMSWorkflowServicegetCmsWorkflowService()voidsetCmsWorkflowService(CMSWorkflowService cmsWorkflowService)protected voidthrowNotEditableInCurrentWorkflowContextException()Throws a localizedNonEditableItemInWorkflowExceptionexception.voidvalidate(CMSItemModel item)Method to perform validation on a given object.
-
-
-
Method Detail
-
validate
public void validate(CMSItemModel item)
Description copied from interface:ValidatorMethod to perform validation on a given object.- Specified by:
validatein interfaceValidator<CMSItemModel>- Parameters:
item- the inpected object being validated.
-
throwNotEditableInCurrentWorkflowContextException
protected void throwNotEditableInCurrentWorkflowContextException()
Throws a localizedNonEditableItemInWorkflowExceptionexception.
-
getCmsWorkflowService
protected CMSWorkflowService getCmsWorkflowService()
-
setCmsWorkflowService
public void setCmsWorkflowService(CMSWorkflowService cmsWorkflowService)
-
-