Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RusJaI committed Jan 27, 2025
1 parent f638662 commit 0c2ba6d
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5309,18 +5309,16 @@ public String getSecuritySchemeOfAPI(String uuid, String organization) throws AP
*/
public String getPolicyType(OperationPolicy policy, Map<String, String> apiOperationPolicyIdToClonedPolicyIdMap)
throws APIManagementException {
String policyType = null;
if (policy.getPolicyId() == null) {
policyType = ImportExportConstants.POLICY_TYPE_API;
return ImportExportConstants.POLICY_TYPE_API;
} else {
// check if cloned policy id is null
if (apiOperationPolicyIdToClonedPolicyIdMap.get(policy.getPolicyId()) == null) {
policyType = ImportExportConstants.POLICY_TYPE_API;
return ImportExportConstants.POLICY_TYPE_API;
} else {
policyType = ImportExportConstants.POLICY_TYPE_COMMON;
return ImportExportConstants.POLICY_TYPE_COMMON;
}
}
return policyType;
}

public String getProductPolicyType(OperationPolicy policy, String apiUUID,
Expand Down

0 comments on commit 0c2ba6d

Please sign in to comment.