KEYCLOAK-1483

This commit is contained in:
Stian Thorgersen 2015-07-17 11:22:04 +02:00
parent 99e2afa81b
commit e8bd7270e9
2 changed files with 3 additions and 10 deletions

View file

@ -46,16 +46,6 @@ public class ExportUtils {
public static RealmRepresentation exportRealm(KeycloakSession session, RealmModel realm, boolean includeUsers) { public static RealmRepresentation exportRealm(KeycloakSession session, RealmModel realm, boolean includeUsers) {
RealmRepresentation rep = ModelToRepresentation.toRepresentation(realm, true); RealmRepresentation rep = ModelToRepresentation.toRepresentation(realm, true);
// Audit
rep.setEventsEnabled(realm.isEventsEnabled());
if (realm.getEventsExpiration() != 0) {
rep.setEventsExpiration(realm.getEventsExpiration());
}
if (realm.getEventsListeners() != null) {
rep.setEventsListeners(new LinkedList<String>(realm.getEventsListeners()));
}
// Clients // Clients
List<ClientModel> clients = realm.getClients(); List<ClientModel> clients = realm.getClients();
List<ClientRepresentation> clientReps = new ArrayList<>(); List<ClientRepresentation> clientReps = new ArrayList<>();

View file

@ -129,6 +129,9 @@ public class ModelToRepresentation {
rep.setEnabledEventTypes(new LinkedList<String>(realm.getEnabledEventTypes())); rep.setEnabledEventTypes(new LinkedList<String>(realm.getEnabledEventTypes()));
} }
rep.setAdminEventsEnabled(realm.isAdminEventsEnabled());
rep.setAdminEventsDetailsEnabled(realm.isAdminEventsDetailsEnabled());
rep.setVerifyEmail(realm.isVerifyEmail()); rep.setVerifyEmail(realm.isVerifyEmail());
rep.setResetPasswordAllowed(realm.isResetPasswordAllowed()); rep.setResetPasswordAllowed(realm.isResetPasswordAllowed());
rep.setEditUsernameAllowed(realm.isEditUsernameAllowed()); rep.setEditUsernameAllowed(realm.isEditUsernameAllowed());