public class EventLogWhitelistSettingsPersistence extends java.lang.Object implements PersistentStateComponent<Element>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
USAGE_STATISTICS_XML |
Constructor and Description |
---|
EventLogWhitelistSettingsPersistence() |
Modifier and Type | Method and Description |
---|---|
static EventLogWhitelistSettingsPersistence |
getInstance() |
long |
getLastModified(java.lang.String recorderId) |
WhitelistPathSettings |
getPathSettings(java.lang.String recorderId) |
Element |
getState() |
void |
loadState(Element element)
This method is called when new component state is loaded.
|
void |
noStateLoaded()
This method is called when the component is initialized, but no state is persisted.
|
void |
setLastModified(java.lang.String recorderId,
long lastUpdate) |
void |
setPathSettings(java.lang.String recorderId,
WhitelistPathSettings settings) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent
public static final java.lang.String USAGE_STATISTICS_XML
public EventLogWhitelistSettingsPersistence()
public static EventLogWhitelistSettingsPersistence getInstance()
public long getLastModified(java.lang.String recorderId)
public void setLastModified(java.lang.String recorderId, long lastUpdate)
public WhitelistPathSettings getPathSettings(java.lang.String recorderId)
public void setPathSettings(java.lang.String recorderId, WhitelistPathSettings settings)
public void loadState(Element element)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<Element>
element
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public Element getState()
getState
in interface PersistentStateComponent<Element>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void noStateLoaded()
PersistentStateComponent
noStateLoaded
in interface PersistentStateComponent<Element>