Package com.io7m.idstore.server.api
Record Class IdServerBrandingConfiguration
java.lang.Object
java.lang.Record
com.io7m.idstore.server.api.IdServerBrandingConfiguration
- Record Components:
productTitle
- The product titlelogo
- The path to a logo imageloginExtra
- An XHTML file inserted into the login screenscheme
- The color scheme
public record IdServerBrandingConfiguration(String productTitle, Optional<Path> logo, Optional<Path> loginExtra, Optional<IdServerColorScheme> scheme)
extends Record
Branding information for the server.
-
Constructor Summary
ConstructorDescriptionIdServerBrandingConfiguration
(String productTitle, Optional<Path> logo, Optional<Path> loginExtra, Optional<IdServerColorScheme> scheme) Branding information for the server. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theloginExtra
record component.logo()
Returns the value of thelogo
record component.Returns the value of theproductTitle
record component.scheme()
Returns the value of thescheme
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
IdServerBrandingConfiguration
public IdServerBrandingConfiguration(String productTitle, Optional<Path> logo, Optional<Path> loginExtra, Optional<IdServerColorScheme> scheme) Branding information for the server.- Parameters:
productTitle
- The product titlelogo
- The path to a logo imageloginExtra
- An XHTML file inserted into the login screenscheme
- The color scheme
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
productTitle
Returns the value of theproductTitle
record component.- Returns:
- the value of the
productTitle
record component
-
logo
Returns the value of thelogo
record component.- Returns:
- the value of the
logo
record component
-
loginExtra
Returns the value of theloginExtra
record component.- Returns:
- the value of the
loginExtra
record component
-
scheme
Returns the value of thescheme
record component.- Returns:
- the value of the
scheme
record component
-