Package com.helger.photon.core.systemmsg
Class SystemMessageData
java.lang.Object
com.helger.photon.core.systemmsg.SystemMessageData
- All Implemented Interfaces:
ISystemMessageData
,Serializable
System message data used in
SystemMessageManager
.- Since:
- 7.0.5
- Author:
- Philip Helger
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
final void
setLastUpdate
(LocalDateTime aLastUpdate) com.helger.commons.state.EChange
setSystemMessage
(ESystemMessageType eMessageType, String sMessage) Set the system message type and text, and update the last modification date.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.helger.photon.core.systemmsg.ISystemMessageData
getMessageTypeID, hasMessage
-
Constructor Details
-
SystemMessageData
public SystemMessageData() -
SystemMessageData
-
-
Method Details
-
getLastUpdateDT
- Specified by:
getLastUpdateDT
in interfaceISystemMessageData
- Returns:
- The date and time when the system message was last modified. May be
null
.
-
getMessageType
- Specified by:
getMessageType
in interfaceISystemMessageData
- Returns:
- The type of system message. Never
null
.
-
getMessage
- Specified by:
getMessage
in interfaceISystemMessageData
- Returns:
- The system message text itself. May be
null
.
-
setLastUpdate
-
setSystemMessage
@Nonnull public com.helger.commons.state.EChange setSystemMessage(@Nonnull ESystemMessageType eMessageType, @Nullable String sMessage) Set the system message type and text, and update the last modification date.- Parameters:
eMessageType
- Message type. May not benull
.sMessage
- The message text. May benull
.- Returns:
EChange
-
equals
-
hashCode
public int hashCode() -
toString
-