-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FORMS-16446 Add isWrapData property on panel #1412
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,8 @@ | |
|
||
import org.osgi.annotation.versioning.ConsumerType; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
|
||
/** | ||
* Defines the form {@code panel} Sling Model used for the {@code /apps/core/fd/components/form/panel/v1/panel} component. | ||
* | ||
|
@@ -36,4 +38,16 @@ | |
default Boolean isReadOnly() { | ||
return null; | ||
} | ||
|
||
/** | ||
* Checks if the container is wrap data. | ||
* | ||
* @return {@code true} if the container is wrap data, {@code false} otherwise | ||
* @since com.adobe.cq.forms.core.components.models.form 5.3.0 | ||
*/ | ||
@JsonIgnore | ||
default boolean isWrapData() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to consume this on server, so its not required to expose this in json There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will add jsonIgnore There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
return false; | ||
Check warning on line 50 in bundles/af-core/src/main/java/com/adobe/cq/forms/core/components/models/form/Panel.java
|
||
} | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you want to expose this property ? Please link the JIRA id in the comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This property is needed to check if panel is marked as wrapped. This is needed to create bindRefMap required in adobe sign submission.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not part of crispr spec. Even if this property is required, it should be a custom property specific to AEM implementation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add JsonIgnore on it