Record Class IdFMMessageData
java.lang.Object
java.lang.Record
com.io7m.idstore.server.service.templating.IdFMMessageData
- Record Components:
htmlTitle- The page titlepageHeaderTitle- The page header titlerequestId- The request IDisError-trueif the message is an errorisServerError-trueif the error is a server-side error and not the fault of the usermessageTitle- The message titlemessage- The messagereturnTo- The path to which to return
- All Implemented Interfaces:
IdFMDataModelType
public record IdFMMessageData(String htmlTitle, String pageHeaderTitle, UUID requestId, boolean isError, boolean isServerError, String messageTitle, String message, String returnTo)
extends Record
implements IdFMDataModelType
Data for the generic message screen template.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehtmlTitlerecord component.booleanisError()Returns the value of theisErrorrecord component.booleanReturns the value of theisServerErrorrecord component.message()Returns the value of themessagerecord component.Returns the value of themessageTitlerecord component.Returns the value of thepageHeaderTitlerecord component.Returns the value of therequestIdrecord component.returnTo()Returns the value of thereturnTorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IdFMMessageData
public IdFMMessageData(String htmlTitle, String pageHeaderTitle, UUID requestId, boolean isError, boolean isServerError, String messageTitle, String message, String returnTo) Data for the generic message screen template.- Parameters:
htmlTitle- The page titlepageHeaderTitle- The page header titlerequestId- The request IDisError-trueif the message is an errorisServerError-trueif the error is a server-side error and not the fault of the usermessageTitle- The message titlemessage- The messagereturnTo- The path to which to return
-
-
Method Details
-
toTemplateHash
- Specified by:
toTemplateHashin interfaceIdFMDataModelType- Returns:
- The data as a freemarker template hash
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
htmlTitle
-
pageHeaderTitle
Returns the value of thepageHeaderTitlerecord component.- Returns:
- the value of the
pageHeaderTitlerecord component
-
requestId
-
isError
-
isServerError
public boolean isServerError()Returns the value of theisServerErrorrecord component.- Returns:
- the value of the
isServerErrorrecord component
-
messageTitle
Returns the value of themessageTitlerecord component.- Returns:
- the value of the
messageTitlerecord component
-
message
-
returnTo
-