Skip to content

Commit

Permalink
WIP for client server transparancy
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Dec 15, 2023
1 parent 075ad5d commit e1bbba3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/main/java/access/manage/Manage.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ default List<Role> addManageMetaData(List<Role> roles) {
.collect(Collectors.toMap(map -> (String) map.get("id"), map -> map));
//Add the metadata to the role
roles.forEach(role -> role.setApplicationMaps(
role.getApplications().stream().map(application -> transformProvider(remoteApplications.get(application.getManageId()))).toList()));
role.getApplications().stream()
.map(application -> transformProvider(remoteApplications.get(application.getManageId()))).toList()));
return roles;
}

Expand Down
5 changes: 5 additions & 0 deletions server/src/main/java/access/model/ApplicationUsage.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,9 @@ public ApplicationUsage(Application application, String landingPage) {
this.landingPage = landingPage;
this.application = application;
}

public Application getApplication() {
application.setLandingPage(this.getLandingPage());
return application;
}
}
2 changes: 2 additions & 0 deletions server/src/main/java/access/model/Role.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,6 @@ public void setApplicationUsages(Set<ApplicationUsage> applicationUsages) {
this.applicationUsages = applicationUsages;
this.applicationUsages.forEach(applicationUsage -> applicationUsage.setRole(this));
}


}

0 comments on commit e1bbba3

Please sign in to comment.