Skip to content

Commit

Permalink
RANGER-4618: added service displayName field in ZoneServiceSummary Ob…
Browse files Browse the repository at this point in the history
…ject

Signed-off-by: Madhan Neethiraj <[email protected]>
  • Loading branch information
prashantdev88 authored and mneethiraj committed Dec 19, 2023
1 parent c18743d commit 627fa28
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ public static class ZoneServiceSummary implements java.io.Serializable {
private Long id;
private String name;
private String type;
private String displayName;
private Long resourceCount;

public Long getId() {
Expand Down Expand Up @@ -319,6 +320,14 @@ public Long getResourceCount() {
public void setResourceCount(Long resourceCount) {
this.resourceCount = resourceCount;
}

public String getDisplayName() {
return displayName;
}

public void setDisplayName(String displayName) {
this.displayName = displayName;
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ private List<ZoneServiceSummary> getSecurityZoneServiceSummary(RangerSecurityZon
summary.setId(xService.getId());
summary.setName(serviceName);
summary.setType(serviceDef.getName());
summary.setDisplayName(xService.getDisplayName());
summary.setResourceCount((long)zoneService.getResources().size());

ret.add(summary);
Expand Down

0 comments on commit 627fa28

Please sign in to comment.