Hi,
I have this piece of code to update the Realms' Email Settings coming from master.
It seems correct but it doesn't update the above. What am I Doing wrong?
@Override
public void updateEmailFromMaster(String realmName) {
RealmModel masterRealm = session.realms().getRealmByName("master");
RealmModel realm = session.realms().getRealmByName(realmName);
realm.setSmtpConfig(masterRealm.getSmtpConfig());
RealmRepresentation rep = ModelToRepresentation.toRepresentation(realm, false);
RepresentationToModel.updateRealm(rep, realm, session);
}
Thanks and regards,
Rodel
Show replies by date