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 usermessage- The messagemessageTitle- The message titlereturnTo- 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 usermessage- The messagemessageTitle- The message titlereturnTo- The path to which to return
-
-
Method Details
-
toTemplateHash
- Specified by:
toTemplateHashin interfaceIdFMDataModelType- Returns:
- The data as a freemarker template hash
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of thehtmlTitlerecord component.- Returns:
- the value of the
htmlTitlerecord component
-
pageHeaderTitle
Returns the value of thepageHeaderTitlerecord component.- Returns:
- the value of the
pageHeaderTitlerecord component
-
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
isError
public boolean isError()Returns the value of theisErrorrecord component.- Returns:
- the value of the
isErrorrecord component
-
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
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
returnTo
Returns the value of thereturnTorecord component.- Returns:
- the value of the
returnTorecord component
-