This commit is contained in:
Bill Burke 2014-07-11 19:43:37 -04:00
parent 5f5316fbdc
commit 626cecba95
2 changed files with 6 additions and 0 deletions

View file

@ -43,4 +43,5 @@ public interface KeycloakSession {
void close(); void close();
void enlist(KeycloakTransaction transaction);
} }

View file

@ -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");