From 743954c02003557fbc5aa6faa9ca696b91d486e9 Mon Sep 17 00:00:00 2001 From: chasegawa Date: Wed, 19 May 2021 10:22:58 -0700 Subject: [PATCH] SHIBUI-1880 Annotation so that new accessor to LocalDateTime for modified date doesn't get added to JSON/XML representations (it already is in string form) --- .../ui/domain/frontend/EntityDescriptorRepresentation.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/main/java/edu/internet2/tier/shibboleth/admin/ui/domain/frontend/EntityDescriptorRepresentation.java b/backend/src/main/java/edu/internet2/tier/shibboleth/admin/ui/domain/frontend/EntityDescriptorRepresentation.java index c5e89e3e7..32063271e 100644 --- a/backend/src/main/java/edu/internet2/tier/shibboleth/admin/ui/domain/frontend/EntityDescriptorRepresentation.java +++ b/backend/src/main/java/edu/internet2/tier/shibboleth/admin/ui/domain/frontend/EntityDescriptorRepresentation.java @@ -1,5 +1,6 @@ package edu.internet2.tier.shibboleth.admin.ui.domain.frontend; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -189,6 +190,7 @@ public String getModifiedDate() { return modifiedDate != null ? modifiedDate.toString() : null; } + @JsonIgnore public LocalDateTime getModifiedDateAsDate() { // we shouldn't have an ED without either modified or created date, so this is mostly for testing where data can be odd return modifiedDate != null ? modifiedDate : createdDate != null ? createdDate : LocalDateTime.now();