Skip to content

Commit

Permalink
Add missing override annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
mpbrown committed Jan 2, 2025
1 parent bfb92d5 commit ee111f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ public Map<String, UserStatus> getAllUsersWithStatusForOrganization(Organization
.collect(Collectors.toMap(u -> u, u -> getUserStatus(u)));
}

@Override
public Map<String, UserStatus> getPagedUsersWithStatusForOrganization(
Organization org, int pageNumber, int pageSize) {
if (!orgUsernamesMap.containsKey(org.getExternalId())) {
Expand Down Expand Up @@ -413,6 +414,7 @@ public void reset() {
allUsernames.clear();
}

@Override
public Integer getUsersInSingleFacility(Facility facility) {
Integer accessCount = 0;

Expand All @@ -431,6 +433,7 @@ public Integer getUsersInSingleFacility(Facility facility) {
return accessCount;
}

@Override
public Integer getUsersInOrganization(Organization org) {
return orgUsernamesMap.get(org.getExternalId()).size();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -688,15 +688,17 @@ private Integer getUsersCountInOktaGroup(String groupName) {
}
}

public Integer getUsersInSingleFacility(Facility facility) {
@Override
public Integer getUsersCountInSingleFacility(Facility facility) {
String facilityAccessGroupName =
generateFacilityGroupName(
facility.getOrganization().getExternalId(), facility.getInternalId());

return getUsersCountInOktaGroup(facilityAccessGroupName);
}

public Integer getUsersInOrganization(Organization org) {
@Override
public Integer getUsersCountInOrganization(Organization org) {
String orgDefaultGroupName =
generateRoleGroupName(org.getExternalId(), OrganizationRole.getDefault());
return getUsersCountInOktaGroup(orgDefaultGroupName);
Expand Down

0 comments on commit ee111f6

Please sign in to comment.