Package nl.gx.webmanager.services.config
Class ConfigurationManagementEvent
- java.lang.Object
-
- nl.gx.webmanager.services.config.ConfigurationManagementEvent
-
public class ConfigurationManagementEvent extends Object
Event object used to notifyConfigurationManagementListener
instances about changes in the configuration data.- Author:
- arjansc
-
-
Field Summary
Fields Modifier and Type Field Description static int
ADDED
Identifies that data has been added to the configuration subsystem.static int
DELETED
Identifies that data has been removed from the configuration subsystem.static int
UPDATED
Identifies that data has been updated in the configuration subsystem.
-
Constructor Summary
Constructors Constructor Description ConfigurationManagementEvent(int type)
Create an event for a specific type of configuration change.ConfigurationManagementEvent(int type, String configurationSetChannel, String propertyName)
Create an event for a specific type of configuration change.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConfigurationSetChannel()
Returns the name of the channel where the configurationset (for example "website_settings") belongs to.String
getPropertyName()
Returns the name of the property where this event is trigged on (for example "backend_hostname").int
getType()
Returns the type of event.
-
-
-
Field Detail
-
ADDED
public static final int ADDED
Identifies that data has been added to the configuration subsystem.- See Also:
- Constant Field Values
-
DELETED
public static final int DELETED
Identifies that data has been removed from the configuration subsystem.- See Also:
- Constant Field Values
-
UPDATED
public static final int UPDATED
Identifies that data has been updated in the configuration subsystem.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConfigurationManagementEvent
public ConfigurationManagementEvent(int type)
Create an event for a specific type of configuration change.- Parameters:
type
- type of the event, see class constants
-
ConfigurationManagementEvent
public ConfigurationManagementEvent(int type, String configurationSetChannel, String propertyName)
Create an event for a specific type of configuration change.- Parameters:
type
- type of the event, see class constantsconfigurationSetChannel
- the name of the channel which the configurationset (for example "website_settings") belongs topropertyName
- the name of the property which triggered this event (for example "backend_hostname")
-
-
Method Detail
-
getType
public int getType()
Returns the type of event.
-
getConfigurationSetChannel
public String getConfigurationSetChannel()
Returns the name of the channel where the configurationset (for example "website_settings") belongs to.- Returns:
- the channel (F.E. "default" or "backend1")
-
getPropertyName
public String getPropertyName()
Returns the name of the property where this event is trigged on (for example "backend_hostname").- Returns:
- the name of the property
-
-