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 |
Main interface for PartialImport handlers.
PartialImportResults org.keycloak.partialimport.PartialImport< T >.doImport | ( | PartialImportRepresentation | rep, |
RealmModel | realm, | ||
KeycloakSession | session | ||
) | throws ErrorResponseException |
Create (or re-create) all the imported resources.
rep | Everything in the PartialImport request. |
realm | Realm to be imported into. |
session | The KeycloakSession. |
ErrorResponseException | if an error was detected trying to doImport a resource. |
org.keycloak.partialimport.AbstractPartialImport< T >で実装されています。
void org.keycloak.partialimport.PartialImport< T >.prepare | ( | PartialImportRepresentation | rep, |
RealmModel | realm, | ||
KeycloakSession | session | ||
) | throws ErrorResponseException |
Find which resources will need to be skipped or overwritten. Also, do a preliminary check for errors.
rep | Everything in the PartialImport request. |
realm | Realm to be imported into. |
session | The KeycloakSession. |
ErrorResponseException | If the PartialImport can not be performed, throw this exception. |
org.keycloak.partialimport.AbstractPartialImport< T >で実装されています。
void org.keycloak.partialimport.PartialImport< T >.removeOverwrites | ( | RealmModel | realm, |
KeycloakSession | session | ||
) |
Delete resources that will be overwritten. This is done separately so that it can be called for all resource types before calling all the doImports.
It was found that doing delete/add per resource causes errors because of cascading deletes.
realm | Realm to be imported into. |
session | The KeycloakSession |
org.keycloak.partialimport.AbstractPartialImport< T >で実装されています。