-
Notifications
You must be signed in to change notification settings - Fork 0
Value map decorator extended #93
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
Conversation
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.
Pull Request Overview
This PR extends the value map decorator functionality to support additional date/time conversions by introducing new methods in DateUtils and a new ValueMapDecoratorExtended class. Key changes include:
- Adding several conversion methods in DateUtils to handle LocalDateTime, LocalDate, Date, and Calendar transformations.
- Introducing ValueMapDecoratorExtended to encapsulate extended conversion logic.
- Updating RepoResourceState, Arguments, and Condition to utilize ValueMapDecoratorExtended and the revised DateUtils methods.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
core/src/main/java/com/vml/es/aem/acm/core/util/DateUtils.java | Added new conversion methods and renamed localDateTimeFromString to zonedDateTimeFromString for clarity. |
core/src/main/java/com/vml/es/aem/acm/core/repo/RepoResourceState.java | Replaced ValueMapDecorator with ValueMapDecoratorExtended to support extended date/time conversions. |
core/src/main/java/com/vml/es/aem/acm/core/code/ValueMapDecoratorExtended.java | Introduced a new class extending ValueMapDecorator with additional conversion logic for date/time values. |
core/src/main/java/com/vml/es/aem/acm/core/code/Condition.java | Updated method call to reflect the new zonedDateTimeFromString method in DateUtils. |
core/src/main/java/com/vml/es/aem/acm/core/code/Arguments.java | Replaced ValueMapDecorator with ValueMapDecoratorExtended in the getValues() method. |
Comments suppressed due to low confidence (1)
core/src/main/java/com/vml/es/aem/acm/core/util/DateUtils.java:79
- Ensure that the exception class DateTimeParseException is imported (i.e., add "import java.time.format.DateTimeParseException;") to avoid compilation issues.
} catch (DateTimeParseException ignored) {
No description provided.