Class CaptchaWidgetConfigContributor

java.lang.Object
ch.tocco.nice2.widget.impl.rest.CaptchaWidgetConfigContributor
All Implemented Interfaces:
WidgetConfigContributor

@Component public class CaptchaWidgetConfigContributor extends Object implements WidgetConfigContributor
  • Constructor Details

    • CaptchaWidgetConfigContributor

      public CaptchaWidgetConfigContributor(WidgetCaptchaService widgetCaptchaService)
  • Method Details

    • setWidgetUniqueIds

      @Autowired(required=false) public void setWidgetUniqueIds(List<String> widgetUniqueIds)
    • setCaptchaSiteKey

      @Value("${nice2.userbase.captcha.v2.client.key}") public void setCaptchaSiteKey(String captchaSiteKey)
    • supports

      public boolean supports(String widgetName)
      Specified by:
      supports in interface WidgetConfigContributor
      Returns:
      true if this contributor supports the given widget
    • apply

      public void apply(String widgetName, Entity widgetConfig, Map<String,Object> configObject)
      Description copied from interface: WidgetConfigContributor
      execute custom logic to modify the configObject
      Specified by:
      apply in interface WidgetConfigContributor