public interface PartialImport<T>
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.
|
void prepare(PartialImportRepresentation rep, RealmModel realm, KeycloakSession session) throws ErrorResponseException
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.void removeOverwrites(RealmModel realm, KeycloakSession session)
realm
- Realm to be imported into.session
- The KeycloakSessionPartialImportResults doImport(PartialImportRepresentation rep, RealmModel realm, KeycloakSession session) throws ErrorResponseException
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 © 2019 JBoss by Red Hat. All rights reserved.