enlist
This commit is contained in:
parent
5f5316fbdc
commit
626cecba95
2 changed files with 6 additions and 0 deletions
|
@ -43,4 +43,5 @@ public interface KeycloakSession {
|
|||
|
||||
void close();
|
||||
|
||||
void enlist(KeycloakTransaction transaction);
|
||||
}
|
||||
|
|
|
@ -140,6 +140,11 @@ public class DefaultKeycloakSession implements KeycloakSession {
|
|||
return providers;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enlist(KeycloakTransaction transaction) {
|
||||
managedTransactions.add(transaction);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ModelProvider model() {
|
||||
if (!transaction.isActive()) throw new IllegalStateException("Transaction is not active");
|
||||
|
|
Loading…
Reference in a new issue