Class DefaultCMSLinkComponentValidator

    • Constructor Detail

      • DefaultCMSLinkComponentValidator

        public DefaultCMSLinkComponentValidator()
    • Method Detail

      • verifyUrl

        protected void verifyUrl​(CMSLinkComponentModel validatee)
        Verifies whether the provided url is valid or not. If not an error is added to the list of errors.
        Parameters:
        validatee - the component to validate.
      • provideUrlValidationError

        protected void provideUrlValidationError()
        Adds a new invalid url error in the list of errors.
      • verifyNameField

        protected void verifyNameField​(CMSLinkComponentModel validatee)
        Verifies whether the name for the component is provided.
        Parameters:
        validatee - the component to validate
      • verifyOnlyOneTypeProvided

        protected void verifyOnlyOneTypeProvided​(CMSLinkComponentModel target)
        Verifies that one of the following is specified: category, content page, product or url
        Parameters:
        target - - the link component dto
      • setValidationErrorsProvider

        public void setValidationErrorsProvider​(ValidationErrorsProvider validationErrorsProvider)
      • setLanguageFacade

        public void setLanguageFacade​(LanguageFacade languageFacade)
      • setCommonI18NService

        public void setCommonI18NService​(CommonI18NService commonI18NService)