Skip to content

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
DilshanSenarath committed Aug 3, 2023
1 parent 0a74fb0 commit a648f7a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1449,6 +1449,7 @@ private Map<String, String> batchProcessRoleNames(List<String> roleNames, String
return roleNamesToIDs;
}

@SuppressWarnings("checkstyle:LineLength")
@Override
public String getRoleNameByID(String roleID, String tenantDomain) throws IdentityRoleManagementException {

Expand Down Expand Up @@ -1480,6 +1481,8 @@ public String getRoleNameByID(String roleID, String tenantDomain) throws Identit
+ tenantDomain;
throw new IdentityRoleManagementServerException(UNEXPECTED_SERVER_ERROR.getCode(), errorMessage, e);
}
/* Verify whether the roleName is either null or a groupName
(excluding those with the 'Internal/Application' prefix). */
if (roleName == null || !SCIMCommonUtils.isHybridRole(roleName)) {
String errorMessage = "A role doesn't exist with id: " + roleID + " in the tenantDomain: " + tenantDomain;
throw new IdentityRoleManagementClientException(ROLE_NOT_FOUND.getCode(), errorMessage);
Expand Down

0 comments on commit a648f7a

Please sign in to comment.