private boolean attribNotChanging(String attributeName, ModelNode newValue, ModelNode oldValue) { AttributeDefinition attribDef = KeycloakSubsystemDefinition.lookup(attributeName); if (!oldValue.isDefined()) { oldValue = attribDef.getDefaultValue(); } if (!newValue.isDefined()) { newValue = attribDef.getDefaultValue(); } return newValue.equals(oldValue); } }
private boolean attribNotChanging(String attributeName, ModelNode newValue, ModelNode oldValue) { SimpleAttributeDefinition attribDef = KeycloakSubsystemDefinition.lookup(attributeName); if (!oldValue.isDefined()) { oldValue = attribDef.getDefaultValue(); } if (!newValue.isDefined()) { newValue = attribDef.getDefaultValue(); } return newValue.equals(oldValue); } }