History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-1938
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Robin Shen
Reporter: AlSt
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Also provide old configuration settings in ConfigurationListener extension point to check differences

Created: 12/Feb/14 04:17 PM   Updated: 12/Feb/14 04:17 PM
Component/s: None
Affects Version/s: 5.1.10
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
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
                }
}
}

 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.