commit
8cc7676335
2 files changed
+6
No files matched your search
@@ -43,4 +43,5 @@ public interface KeycloakSession {
|
|||||||
|
|
||||||
void close();
|
void close();
|
||||||
|
|
||||||
|
void enlist(KeycloakTransaction transaction);
|
||||||
}
|
}
|
||||||
@@ -140,6 +140,11 @@ public class DefaultKeycloakSession implements KeycloakSession {
|
|||||||
return providers;
|
return providers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void enlist(KeycloakTransaction transaction) {
|
||||||
|
managedTransactions.add(transaction);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ModelProvider model() {
|
public ModelProvider model() {
|
||||||
if (!transaction.isActive()) throw new IllegalStateException("Transaction is not active");
|
if (!transaction.isActive()) throw new IllegalStateException("Transaction is not active");
|
||||||
|
|||||||
Reference in new issue
Block a user