From 51917166c5fed1764591617149b6441ce3f5a37a Mon Sep 17 00:00:00 2001 From: Erik Nord Date: Mon, 31 Mar 2025 15:59:32 -0500 Subject: [PATCH 1/2] added application create date added application create date --- .vscode/settings.json | 3 +++ .../axway/apim/api/export/impl/CSVAPIExporter.java | 14 ++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..7b016a89f --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.compile.nullAnalysis.mode": "automatic" +} \ No newline at end of file diff --git a/modules/apis/src/main/java/com/axway/apim/api/export/impl/CSVAPIExporter.java b/modules/apis/src/main/java/com/axway/apim/api/export/impl/CSVAPIExporter.java index 7ea76cc4c..a1ca0b02c 100644 --- a/modules/apis/src/main/java/com/axway/apim/api/export/impl/CSVAPIExporter.java +++ b/modules/apis/src/main/java/com/axway/apim/api/export/impl/CSVAPIExporter.java @@ -78,6 +78,7 @@ private enum HeaderFields { "Application Name", "Application ID", "Application Organization", + "Application Created On", CREATED_ON }); @@ -192,7 +193,7 @@ private void writeStandardToCSV(CSVPrinter csvPrinter, API api) throws IOExcepti api.getName(), api.getPath(), api.getVersion(), - getFormattedDate(api) + getFormattedDate(api.getCreatedOn()) ); } @@ -210,7 +211,7 @@ private void writeWideToCSV(CSVPrinter csvPrinter, API api) throws IOException { getUsedPolicies(api, PolicyType.ROUTING).toString().replace("[", "").replace("]", ""), getUsedPolicies(api, PolicyType.RESPONSE).toString().replace("[", "").replace("]", ""), getUsedPolicies(api, PolicyType.FAULT_HANDLER).toString().replace("[", "").replace("]", ""), - getFormattedDate(api) + getFormattedDate(api.getCreatedOn()) ); } @@ -235,13 +236,14 @@ private void writeAPIUltraToCSV(CSVPrinter csvPrinter, API api, ClientApplicatio app.getName(), app.getId(), app.getOrganization().getName(), - getFormattedDate(api) + getFormattedDate(app.getCreatedOn()), + getFormattedDate(api.getCreatedOn()) ); } - private String getFormattedDate(API api) { - if (api.getCreatedOn() == null) return "N/A"; - return isoDateFormatter.format(api.getCreatedOn()); + private String getFormattedDate(Long longDate) { + if (longDate == null) return "N/A"; + return isoDateFormatter.format(longDate); } @Override From 40e87d3528f9354b9ecf05f4158ff6d9ba502285 Mon Sep 17 00:00:00 2001 From: Erik Nord Date: Mon, 31 Mar 2025 16:00:49 -0500 Subject: [PATCH 2/2] Delete settings.json --- .vscode/settings.json | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 7b016a89f..000000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "java.compile.nullAnalysis.mode": "automatic" -} \ No newline at end of file