Class GlobalSettingsChangedEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- com.atlassian.event.Event
-
- com.atlassian.confluence.event.events.ConfluenceEvent
-
- com.atlassian.confluence.event.events.admin.ConfigurationEvent
-
- com.atlassian.confluence.event.events.admin.GlobalSettingsChangedEvent
-
- All Implemented Interfaces:
ClusterEvent
,Serializable
public class GlobalSettingsChangedEvent extends ConfigurationEvent implements ClusterEvent
Event announcing a change in the global configuration of Confluence.Notes for implementors:
- This event may be published even when no change has been made to the settings. Always check the 'before' and 'after' snapshots to make sure that the setting you're monitoring has in fact changed.
- Due to potential race conditions, the 'newSettings' value may not represent the current settings of Confluence - just the ones that are in place after this particular event. If you're ever in doubt, get the settingsManager yourself, and check.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GlobalSettingsChangedEvent.Type
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description GlobalSettingsChangedEvent(Object src, Settings oldSettings, Settings newSettings)
GlobalSettingsChangedEvent(Object src, Settings oldSettings, Settings newSettings, String oldDomainName, String newDomainName)
GlobalSettingsChangedEvent(Object src, Settings oldSettings, Settings newSettings, String oldDomainName, String newDomainName, GlobalSettingsChangedEvent.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNewDomainName()
Settings
getNewSettings()
String
getOldDomainName()
Settings
getOldSettings()
GlobalSettingsChangedEvent.Type
getType()
-
Methods inherited from class com.atlassian.confluence.event.events.ConfluenceEvent
equals, hashCode
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
GlobalSettingsChangedEvent
public GlobalSettingsChangedEvent(Object src, Settings oldSettings, Settings newSettings, String oldDomainName, String newDomainName, GlobalSettingsChangedEvent.Type type)
- Since:
- 7.5.0
-
GlobalSettingsChangedEvent
public GlobalSettingsChangedEvent(Object src, Settings oldSettings, Settings newSettings, String oldDomainName, String newDomainName)
-
-
Method Detail
-
getOldSettings
public Settings getOldSettings()
-
getNewSettings
public Settings getNewSettings()
-
getOldDomainName
public String getOldDomainName()
-
getNewDomainName
public String getNewDomainName()
-
getType
public GlobalSettingsChangedEvent.Type getType()
-
-