From 0b1856e531883c64e294acf31771e2844f353efe Mon Sep 17 00:00:00 2001 From: odafna Date: Wed, 21 Feb 2024 13:27:49 +0200 Subject: [PATCH] fix: checkstyle and typo --- docs/MANAGED.md | 34 +++++++++---------- .../config/service/RoleImportService.java | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/MANAGED.md b/docs/MANAGED.md index 1d44e5c3c..96cd1c9ea 100644 --- a/docs/MANAGED.md +++ b/docs/MANAGED.md @@ -20,23 +20,23 @@ groups will be deleted. If you define `groups` but set an empty array, keycloak ## Supported full managed resources -| Type | Additional Information | Resource Name | -|---------------------------------|-----------------------------------------------------------------------------------------------|----------------------------------| -| Groups | - | `group` | -| Required Actions | You have to copy the default one to you import json. | `required-action` | -| Client Scopes | - | `client-scope` | -| Scope Mappings | - | `scope-mapping` | -| Client Scope Mappings | - | `client-scope-mapping` | -| Roles | If not set as 'full', the attributes of realm-level role will be updated instead of override. | `role` | -| Components | You have to copy the default components to you import json. | `component` | -| Sub Components | You have to copy the default components to you import json. | `sub-component` | -| Authentication Flows | You have to copy the default components to you import json, expect builtin flows | `authentication-flow` | -| Identity Providers | - | `identity-provider` | -| Identity Provider Mappers | - | `identity-provider-mapper` | -| Clients | - | `client` | -| Clients Authorization Resources | The 'Default Resource' is always included. | `client-authorization-resources` | -| Clients Authorization Policies | - | `client-authorization-policies` | -| Clients Authorization Scopes | - | `client-authorization-scopes` | +| Type | Additional Information | Resource Name | +|---------------------------------|-----------------------------------------------------------------------------------------------------|----------------------------------| +| Groups | - | `group` | +| Required Actions | You have to copy the default one to you import json. | `required-action` | +| Client Scopes | - | `client-scope` | +| Scope Mappings | - | `scope-mapping` | +| Client Scope Mappings | - | `client-scope-mapping` | +| Roles | If not set as 'full', the attributes of the realm-level role will be updated instead of overridden. | `role` | +| Components | You have to copy the default components to you import json. | `component` | +| Sub Components | You have to copy the default components to you import json. | `sub-component` | +| Authentication Flows | You have to copy the default components to you import json, expect builtin flows | `authentication-flow` | +| Identity Providers | - | `identity-provider` | +| Identity Provider Mappers | - | `identity-provider-mapper` | +| Clients | - | `client` | +| Clients Authorization Resources | The 'Default Resource' is always included. | `client-authorization-resources` | +| Clients Authorization Policies | - | `client-authorization-policies` | +| Clients Authorization Scopes | - | `client-authorization-scopes` | ## Disable deletion of managed entities diff --git a/src/main/java/de/adorsys/keycloak/config/service/RoleImportService.java b/src/main/java/de/adorsys/keycloak/config/service/RoleImportService.java index e975c9c76..43577501c 100644 --- a/src/main/java/de/adorsys/keycloak/config/service/RoleImportService.java +++ b/src/main/java/de/adorsys/keycloak/config/service/RoleImportService.java @@ -36,9 +36,9 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.HashMap; import java.util.Objects; import java.util.Set; import java.util.function.Consumer;