Class AbstractCaptchaImplV2
- java.lang.Object
-
- com.adobe.cq.forms.core.components.util.AbstractComponentImpl
-
- com.adobe.cq.forms.core.components.util.AbstractFormComponentImpl
-
- com.adobe.cq.forms.core.components.util.AbstractBaseImpl
-
- com.adobe.cq.forms.core.components.util.AbstractFieldImpl
-
- com.adobe.cq.forms.core.components.util.AbstractCaptchaImpl
-
- com.adobe.cq.forms.core.components.util.AbstractCaptchaImplV2
-
- All Implemented Interfaces:
com.adobe.cq.export.json.ComponentExporter,Base,BaseConstraint,Captcha,Field,FormComponent,Component
public abstract class AbstractCaptchaImplV2 extends AbstractCaptchaImpl implements Captcha
AbstractCaptchaImplV2 is an updated implementation for handling captcha field types. This class represents an evolution in the captcha JSON structure where captchaProvider is promoted to a top-level property, improving JSON clarity and eliminating redundancy. Background: Previous Implementation (AbstractCaptchaImpl): - Captcha provider information was embedded within the fd:captcha custom property - This led to redundant data and a less clean JSON structure with the updated forms spec Current Implementation (AbstractCaptchaImplV2): - CaptchaProvider is now a first-class citizen at the root level of the JSON - This change results in a cleaner and more efficient JSON structure Note: AbstractCaptchaImpl is not deprecated yet, as it is still used by recaptcha/hcaptcha v1 implementations in core components. Once these are migrated to AbstractCaptchaImplV2, the V1 implementation will be deprecated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.adobe.cq.forms.core.components.models.form.BaseConstraint
BaseConstraint.Type
-
Nested classes/interfaces inherited from interface com.adobe.cq.forms.core.components.models.form.Captcha
Captcha.CaptchaDisplayMode
-
-
Field Summary
-
Fields inherited from class com.adobe.cq.forms.core.components.util.AbstractCaptchaImpl
CUSTOM_RECAPTCHA_PROPERTY_WRAPPER
-
Fields inherited from class com.adobe.cq.forms.core.components.util.AbstractFormComponentImpl
CUSTOM_DOR_PROPERTY_WRAPPER, CUSTOM_JCR_PATH_PROPERTY_WRAPPER, CUSTOM_RULE_PROPERTY_WRAPPER
-
Fields inherited from interface com.adobe.cq.forms.core.components.models.form.Base
DATE_FORMATTER, DEFAULT_LANGUAGE
-
Fields inherited from interface com.adobe.cq.forms.core.components.models.form.FormComponent
CUSTOM_PROPERTY_WRAPPER
-
-
Constructor Summary
Constructors Constructor Description AbstractCaptchaImplV2()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.util.Map<java.lang.String,java.lang.Object>getCaptchaProperties()java.lang.StringgetFieldType()Returns the view typejava.util.Map<java.lang.String,java.lang.Object>getProperties()Custom Propertiesabstract java.lang.StringgetProvider()-
Methods inherited from class com.adobe.cq.forms.core.components.util.AbstractFieldImpl
getDataFormat, getDefault, getDisplayFormat, getDisplayValueExpression, getEditFormat, getPlaceHolder, getReadOnlyIfPresent, getRequiredIfPresent, isReadOnly, isRequired
-
Methods inherited from class com.adobe.cq.forms.core.components.util.AbstractBaseImpl
getConstraintMessages, getCustomLayoutProperties, getDescription, getEnabledIfPresent, getExportedType, getHtmlScreenReaderText, getLabel, getLang, getScreenReaderText, getTooltip, getTooltipText, getType, getValidationExpression, isEnabled, isTooltipVisible
-
Methods inherited from class com.adobe.cq.forms.core.components.util.AbstractFormComponentImpl
getData, getDataRef, getDorProperties, getEvents, getLinkUrl, getName, getPath, getRules, getText, getTitle, getVisibleIfPresent, isVisible, setI18n
-
Methods inherited from class com.adobe.cq.forms.core.components.util.AbstractComponentImpl
getAppliedCssClasses, getId
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adobe.cq.forms.core.components.models.form.Base
getConstraintMessages, getDescription, getExportedType, getHtmlScreenReaderText, getLabel, getLang, getScreenReaderText, getTooltip, isEnabled, isTooltipVisible
-
Methods inherited from interface com.adobe.cq.forms.core.components.models.form.BaseConstraint
getType, getValidationExpression, isRequired
-
Methods inherited from interface com.adobe.cq.forms.core.components.models.form.Captcha
getCaptchaDisplayMode, getCaptchaSiteKey, getCloudServicePath, getSize
-
Methods inherited from interface com.adobe.cq.wcm.core.components.models.Component
getAppliedCssClasses, getData, getId
-
Methods inherited from interface com.adobe.cq.forms.core.components.models.form.Field
getDataFormat, getDefault, getDisplayFormat, getDisplayValueExpression, getEditFormat, getPlaceHolder, isReadOnly
-
Methods inherited from interface com.adobe.cq.forms.core.components.models.form.FormComponent
getDataRef, getDorProperties, getEvents, getName, getPath, getRules, isVisible, setI18n
-
-
-
-
Method Detail
-
getProvider
public abstract java.lang.String getProvider()
- Specified by:
getProviderin interfaceCaptcha- Specified by:
getProviderin classAbstractCaptchaImpl
-
getFieldType
public java.lang.String getFieldType()
Description copied from class:AbstractFormComponentImplReturns the view type- Specified by:
getFieldTypein interfaceFormComponent- Overrides:
getFieldTypein classAbstractCaptchaImpl- Returns:
- the view type
-
getCaptchaProperties
public abstract java.util.Map<java.lang.String,java.lang.Object> getCaptchaProperties()
- Specified by:
getCaptchaPropertiesin interfaceCaptcha- Specified by:
getCaptchaPropertiesin classAbstractCaptchaImpl
-
getProperties
@PostConstruct public java.util.Map<java.lang.String,java.lang.Object> getProperties()
Description copied from interface:FormComponentCustom Properties- Specified by:
getPropertiesin interfaceFormComponent- Overrides:
getPropertiesin classAbstractCaptchaImpl
-
-