keycloak-oidc-service
|
公開メンバ関数 | |
void | prepare (PartialImportRepresentation rep, RealmModel realm, KeycloakSession session) throws ErrorResponseException |
void | removeOverwrites (RealmModel realm, KeycloakSession session) |
PartialImportResults | doImport (PartialImportRepresentation rep, RealmModel realm, KeycloakSession session) throws ErrorResponseException |
非公開メンバ関数 | |
void | prepareRealmRoles (PartialImportRepresentation rep, RealmModel realm, KeycloakSession session) throws ErrorResponseException |
void | prepareClientRoles (PartialImportRepresentation rep, RealmModel realm, KeycloakSession session) throws ErrorResponseException |
void | setUniqueIds (List< RoleRepresentation > realmRoles) |
void | setUniqueIds (Map< String, List< RoleRepresentation >> clientRoles) |
void | removeRealmRoleSkips (PartialImportResults results, PartialImportRepresentation rep, RealmModel realm, KeycloakSession session) |
void | removeClientRoleSkips (PartialImportResults results, PartialImportRepresentation rep, RealmModel realm) |
void | deleteRealmRoleOverwrites (RealmModel realm, KeycloakSession session) |
void | addResultsForOverwrittenRealmRoles (PartialImportResults results, RealmModel realm, KeycloakSession session) |
void | deleteClientRoleOverwrites (RealmModel realm) |
void | addResultsForOverwrittenClientRoles (PartialImportResults results, RealmModel realm) |
boolean | isEmpty (Set set) |
boolean | isEmpty (Map map) |
void | realmRoleAdds (PartialImportResults results, PartialImportRepresentation rep, RealmModel realm, KeycloakSession session) |
void | clientRoleAdds (PartialImportResults results, PartialImportRepresentation rep, RealmModel realm) |
非公開変数類 | |
Set< RoleRepresentation > | realmRolesToOverwrite |
Set< RoleRepresentation > | realmRolesToSkip |
Map< String, Set< RoleRepresentation > > | clientRolesToOverwrite |
Map< String, Set< RoleRepresentation > > | clientRolesToSkip |
final RealmRolesPartialImport | realmRolesPI = new RealmRolesPartialImport() |
final ClientRolesPartialImport | clientRolesPI = new ClientRolesPartialImport() |
This class handles both realm roles and client roles. It delegates to RealmRolesPartialImport and ClientRolesPartialImport, which are no longer used directly by the PartialImportManager.
The strategy is to utilize RepresentationToModel.importRoles(). That way, the complex code for bulk creation of roles is kept in one place. To do this, the logic for skip needs to remove the roles that are going to be skipped so that importRoles() doesn't know about them. The logic for overwrite needs to delete the overwritten roles before importRoles() is called.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |