public class RolesPartialImport extends Object implements PartialImport<RolesRepresentation>
| Constructor and Description |
|---|
RolesPartialImport() |
| Modifier and Type | Method and Description |
|---|---|
PartialImportResults |
doImport(PartialImportRepresentation rep,
RealmModel realm,
KeycloakSession session)
Create (or re-create) all the imported resources.
|
void |
prepare(PartialImportRepresentation rep,
RealmModel realm,
KeycloakSession session)
Find which resources will need to be skipped or overwritten.
|
void |
removeOverwrites(RealmModel realm,
KeycloakSession session)
Delete resources that will be overwritten.
|
public void prepare(PartialImportRepresentation rep, RealmModel realm, KeycloakSession session) throws ErrorResponseException
PartialImportprepare in interface PartialImport<RolesRepresentation>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.public void removeOverwrites(RealmModel realm, KeycloakSession session)
PartialImportremoveOverwrites in interface PartialImport<RolesRepresentation>realm - Realm to be imported into.session - The KeycloakSessionpublic PartialImportResults doImport(PartialImportRepresentation rep, RealmModel realm, KeycloakSession session) throws ErrorResponseException
PartialImportdoImport in interface PartialImport<RolesRepresentation>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.Copyright © 2021 JBoss by Red Hat. All rights reserved.