public final class SystemMessageManager extends AbstractSimpleDAO
IDAO.EModeDEFAULT_AUTO_SAVE_ENABLED, m_aRWLock| Constructor and Description |
|---|
SystemMessageManager(String sFilename) |
| Modifier and Type | Method and Description |
|---|---|
protected com.helger.xml.microdom.IMicroDocument |
createWriteData()
Create the XML document that should be saved to the file.
|
LocalDateTime |
getLastUpdateDT() |
ESystemMessageType |
getMessageType() |
String |
getSystemMessage() |
boolean |
hasSystemMessage() |
protected com.helger.commons.state.EChange |
onRead(com.helger.xml.microdom.IMicroDocument aDoc)
Fill the internal structures with from the passed XML document.
|
void |
reload() |
com.helger.commons.state.EChange |
setSystemMessage(ESystemMessageType eMessageType,
String sMessage) |
String |
toString() |
beforeWriteToFile, getDAOIO, getFilenameProvider, getInitCount, getLastFilename, getLastInitDateTime, getLastReadDateTime, getLastWriteDateTime, getReadCount, getSafeFile, getWriteCount, getXMLWriterSettings, initialRead, markAsChanged, modifyWriteData, onFilenameChange, onInit, triggerExceptionHandlersRead, triggerExceptionHandlersWrite, writeToFileOnPendingChangesbeginWithoutAutoSave, endWithoutAutoSave, getExceptionHandlersRead, getExceptionHandlersWrite, hasPendingChanges, internalHasPendingChanges, internalIsAutoSaveEnabled, internalSetPendingChanges, isAutoSaveEnabled, isDebugLogging, performWithoutAutoSave, performWithoutAutoSave, performWithoutAutoSaveThrowing, performWithoutAutoSaveThrowingpublic SystemMessageManager(@Nullable String sFilename) throws DAOException
DAOExceptionpublic void reload()
protected com.helger.commons.state.EChange onRead(@Nonnull com.helger.xml.microdom.IMicroDocument aDoc)
AbstractSimpleDAOonRead in class AbstractSimpleDAOaDoc - The XML document to read from. Never null.EChange.CHANGED if reading the data changed something in
the internal structures that requires a writing.protected com.helger.xml.microdom.IMicroDocument createWriteData()
AbstractSimpleDAOcreateWriteData in class AbstractSimpleDAOnull document to write to the file.@Nullable public LocalDateTime getLastUpdateDT()
@Nonnull public ESystemMessageType getMessageType()
public boolean hasSystemMessage()
@Nonnull public com.helger.commons.state.EChange setSystemMessage(@Nonnull ESystemMessageType eMessageType, @Nullable String sMessage)
public String toString()
toString in class AbstractSimpleDAOCopyright © 2014–2017 Philip Helger. All rights reserved.