i-net Clear Reports

com.inet.report.config
Class ConfigurationChangeEvent

java.lang.Object
  extended by com.inet.report.config.ConfigurationChangeEvent

public class ConfigurationChangeEvent
extends java.lang.Object

This event is fired, if:


Field Summary
static int TYPE_CHANGE
          Type specifying that the currently configuration has been changed to a different configuration than before, via ConfigurationManager.setCurrent(Configuration)
static int TYPE_CLEAR
          Type specifying that a configuration has been cleared via Configuration.clear()
static int TYPE_COPY
          Type specifying that a configuration has been copied via ConfigurationManager.copy(int, String, int, String)
static int TYPE_CREATE
          Type specifying that a new configuration has been created via ConfigurationManager.create(int, String)
static int TYPE_DELETE
          Type specifying that a configuration has been deleted via ConfigurationManager.delete(int, String)
static int TYPE_IMPORT
          Type specifying that a configuration has been imported via ConfigurationManager.importFromStream(int, String, java.io.InputStream).
static int TYPE_MODIFY
          Type specifying that a configuration has been modified, e.g. via Configuration.put(String, String).
 
Method Summary
 java.lang.String getChangedConfigurationName()
          Returns the name of the configuration which was changed (or the name of the new current configuration).
 int getChangedConfigurationScope()
          Returns the scope of the configuration which was changed (or the scope of the new current configuration).
 int getType()
          Returns the event type which specifies exactly which change occurred with the given configuration.
 boolean isCurrentConfiguration()
          Returns true if the configuration was the "current" configuration at the time this event was created, false otherwise.
 

Field Detail

TYPE_CHANGE

public static final int TYPE_CHANGE
Type specifying that the currently configuration has been changed to a different configuration than before, via ConfigurationManager.setCurrent(Configuration)

See Also:
Constant Field Values

TYPE_CREATE

public static final int TYPE_CREATE
Type specifying that a new configuration has been created via ConfigurationManager.create(int, String)

See Also:
Constant Field Values

TYPE_MODIFY

public static final int TYPE_MODIFY
Type specifying that a configuration has been modified, e.g. via Configuration.put(String, String).

See Also:
Constant Field Values

TYPE_DELETE

public static final int TYPE_DELETE
Type specifying that a configuration has been deleted via ConfigurationManager.delete(int, String)

See Also:
Constant Field Values

TYPE_IMPORT

public static final int TYPE_IMPORT
Type specifying that a configuration has been imported via ConfigurationManager.importFromStream(int, String, java.io.InputStream).

See Also:
Constant Field Values

TYPE_COPY

public static final int TYPE_COPY
Type specifying that a configuration has been copied via ConfigurationManager.copy(int, String, int, String)

See Also:
Constant Field Values

TYPE_CLEAR

public static final int TYPE_CLEAR
Type specifying that a configuration has been cleared via Configuration.clear()

See Also:
Constant Field Values
Method Detail

getChangedConfigurationName

public java.lang.String getChangedConfigurationName()
Returns the name of the configuration which was changed (or the name of the new current configuration).

Returns:
name of the configuration which was changed (or the name of the new current configuration). Never null.
See Also:
ConfigurationManager.get(int, String)

getChangedConfigurationScope

public int getChangedConfigurationScope()
Returns the scope of the configuration which was changed (or the scope of the new current configuration).

Returns:
the scope of the configuration which was changed (or the scope of the new current configuration)
See Also:
Configuration.SCOPE_SYSTEM, Configuration.SCOPE_USER, Configuration.SCOPE_TEMP, ConfigurationManager.get(int, String)

isCurrentConfiguration

public boolean isCurrentConfiguration()
Returns true if the configuration was the "current" configuration at the time this event was created, false otherwise.

Returns:
true if the configuration was the "current" configuration at the time this event was created, false otherwise.
See Also:
ConfigurationManager.getCurrent()

getType

public int getType()
Returns the event type which specifies exactly which change occurred with the given configuration. See the descriptions of the TYPE constants for more information.

Returns:
type of configuration change event
See Also:
TYPE_CHANGE, TYPE_CLEAR, TYPE_COPY, TYPE_CREATE, TYPE_DELETE, TYPE_IMPORT, TYPE_MODIFY

i-net Clear Reports

Copyright © 1999-2015 by i-net software GmbH