Skip to content

Commit

Permalink
- Remove unwanted application fields from api-config export
Browse files Browse the repository at this point in the history
  • Loading branch information
rathnapandi committed Mar 15, 2024
1 parent 40d24cc commit 6c8051c
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,17 +289,13 @@ public List<String> getClientOrganizations() throws AppException {
return organizations;
}

public List<ClientApplication> getApplications() {
public List<Map<String, String>> getApplications() {
if (actualAPIProxy.getApplications().isEmpty()) return Collections.emptyList();
List<ClientApplication> exportApps = new ArrayList<>();
List<Map<String, String>> exportApps = new ArrayList<>();
Map<String, String> applications = new HashMap<>();
exportApps.add(applications);
for (ClientApplication app : actualAPIProxy.getApplications()) {
ClientApplication exportApp = new ClientApplication();
exportApp.setEnabled(app.isEnabled());
exportApp.setName(app.getName());
exportApp.setOrganization(null);
exportApp.setCredentials(null);
exportApp.setApiAccess(null);
exportApps.add(exportApp);
applications.put("name", app.getName());
}
return exportApps;
}
Expand Down

0 comments on commit 6c8051c

Please sign in to comment.