Key: |
QB-1938
|
Type: |
Improvement
|
Status: |
Open
|
Priority: |
Major
|
Assignee: |
Robin Shen
|
Reporter: |
AlSt
|
Votes: |
0
|
Watchers: |
0
|
If you were logged in you would be able to see more operations.
|
|
|
QuickBuild
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
|
|
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
}
}
}
|
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
}
}
} |
Show » |
No work has yet been logged on this issue.
|
|