<< Back to previous view |
[QB-1938] Also provide old configuration settings in ConfigurationListener extension point to check differences
|
|
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 } } } |