<< Back to previous view

[QB-1938] Also provide old configuration settings in ConfigurationListener extension point to check differences
Created: 12/Feb/14  Updated: 12/Feb/14

Status: Open
Project: QuickBuild
Component/s: None
Affects Version/s: 5.1.10
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: AlSt Assigned To: Robin Shen
Resolution: Unresolved Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown


 Description   
It would make sense to be able to check if something specific has changed in the configuration (e.g. the name) and also be able to get the previous name (e.g. for update of another service).

Example:

public class ConfigChangeListener implements ConfigurationListener {

@Override
public void onDelete(Configuration configuration) {
Context.getLogger().warn("delete " + configuration.getName());
}

@Override
public void onSave(Configuration configuration, Configuration previous) {
                if(previous == null) return; // configuration is new

if(!configuration.getName().equals(previous.getName())) {
                   // do something like external service data update
                }
}
}
Generated at Thu May 16 17:13:39 UTC 2024 using JIRA 189.