8000 Value map decorator extended by kamil-orwat-vmltech · Pull Request #93 · wttech/acm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 13 commits into from
May 8, 2025

Conversation

kamil-orwat-vmltech
Copy link
Collaborator

No description provided.

Copy link
Contributor
@Copilot Copilot AI left a 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) {

@krystian-panek-vmltech krystian-panek-vmltech marked this pull request as ready for review May 8, 2025 09:56
@krystian-panek-vmltech krystian-panek-vmltech merged commit f48b40d into main May 8, 2025
1 check passed
@krystian-panek-vmltech krystian-panek-vmltech deleted the value-map-decorator-extended branch May 8, 2025 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0