KEYCLOAK-772 Event settings are not imported
This commit is contained in:
parent
b23bf58170
commit
fcda005d88
2 changed files with 10 additions and 4 deletions
|
@ -61,8 +61,8 @@ public class RealmRepresentation {
|
||||||
protected String accountTheme;
|
protected String accountTheme;
|
||||||
protected String adminTheme;
|
protected String adminTheme;
|
||||||
protected String emailTheme;
|
protected String emailTheme;
|
||||||
protected boolean eventsEnabled;
|
protected Boolean eventsEnabled;
|
||||||
protected long eventsExpiration;
|
protected Long eventsExpiration;
|
||||||
protected List<String> eventsListeners;
|
protected List<String> eventsListeners;
|
||||||
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
|
@ -445,7 +445,7 @@ public class RealmRepresentation {
|
||||||
this.failureFactor = failureFactor;
|
this.failureFactor = failureFactor;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isEventsEnabled() {
|
public Boolean isEventsEnabled() {
|
||||||
return eventsEnabled;
|
return eventsEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -453,7 +453,7 @@ public class RealmRepresentation {
|
||||||
this.eventsEnabled = eventsEnabled;
|
this.eventsEnabled = eventsEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getEventsExpiration() {
|
public Long getEventsExpiration() {
|
||||||
return eventsExpiration;
|
return eventsExpiration;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,9 @@ public class RepresentationToModel {
|
||||||
if (rep.getQuickLoginCheckMilliSeconds() != null) newRealm.setQuickLoginCheckMilliSeconds(rep.getQuickLoginCheckMilliSeconds());
|
if (rep.getQuickLoginCheckMilliSeconds() != null) newRealm.setQuickLoginCheckMilliSeconds(rep.getQuickLoginCheckMilliSeconds());
|
||||||
if (rep.getMaxDeltaTimeSeconds() != null) newRealm.setMaxDeltaTimeSeconds(rep.getMaxDeltaTimeSeconds());
|
if (rep.getMaxDeltaTimeSeconds() != null) newRealm.setMaxDeltaTimeSeconds(rep.getMaxDeltaTimeSeconds());
|
||||||
if (rep.getFailureFactor() != null) newRealm.setFailureFactor(rep.getFailureFactor());
|
if (rep.getFailureFactor() != null) newRealm.setFailureFactor(rep.getFailureFactor());
|
||||||
|
if (rep.isEventsEnabled() != null) newRealm.setEventsEnabled(rep.isEventsEnabled());
|
||||||
|
if (rep.getEventsExpiration() != null) newRealm.setEventsExpiration(rep.getEventsExpiration());
|
||||||
|
if (rep.getEventsListeners() != null) newRealm.setEventsListeners(new HashSet<String>(rep.getEventsListeners()));
|
||||||
|
|
||||||
if (rep.getNotBefore() != null) newRealm.setNotBefore(rep.getNotBefore());
|
if (rep.getNotBefore() != null) newRealm.setNotBefore(rep.getNotBefore());
|
||||||
|
|
||||||
|
@ -263,6 +266,9 @@ public class RepresentationToModel {
|
||||||
if (rep.getAccountTheme() != null) realm.setAccountTheme(rep.getAccountTheme());
|
if (rep.getAccountTheme() != null) realm.setAccountTheme(rep.getAccountTheme());
|
||||||
if (rep.getAdminTheme() != null) realm.setAdminTheme(rep.getAdminTheme());
|
if (rep.getAdminTheme() != null) realm.setAdminTheme(rep.getAdminTheme());
|
||||||
if (rep.getEmailTheme() != null) realm.setEmailTheme(rep.getEmailTheme());
|
if (rep.getEmailTheme() != null) realm.setEmailTheme(rep.getEmailTheme());
|
||||||
|
if (rep.isEventsEnabled() != null) realm.setEventsEnabled(rep.isEventsEnabled());
|
||||||
|
if (rep.getEventsExpiration() != null) realm.setEventsExpiration(rep.getEventsExpiration());
|
||||||
|
if (rep.getEventsListeners() != null) realm.setEventsListeners(new HashSet<String>(rep.getEventsListeners()));
|
||||||
|
|
||||||
if (rep.getPasswordPolicy() != null) realm.setPasswordPolicy(new PasswordPolicy(rep.getPasswordPolicy()));
|
if (rep.getPasswordPolicy() != null) realm.setPasswordPolicy(new PasswordPolicy(rep.getPasswordPolicy()));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue