Package com.io7m.idstore.server.internal
Class IdServerBrandingService
java.lang.Object
com.io7m.idstore.server.internal.IdServerBrandingService
- All Implemented Interfaces:
IdServiceType
The service that supplies branding information.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IdServerBrandingServicecreate(IdServerStrings strings, IdFMTemplateService templates, IdServerBrandingConfiguration configuration) Create a branding service.css()emailSubject(String subject) The branded email subject.byte[]title()toString()
-
Method Details
-
create
public static IdServerBrandingService create(IdServerStrings strings, IdFMTemplateService templates, IdServerBrandingConfiguration configuration) throws IOException Create a branding service.- Parameters:
strings- The server stringsconfiguration- The branding configurationtemplates- The template service- Returns:
- A branding service
- Throws:
IOException- On errors
-
logoImage
public byte[] logoImage()- Returns:
- The bytes of an SVG logo image
-
title
- Returns:
- The product title
-
xButtonCSS
- Returns:
- The xButton CSS
-
css
- Returns:
- The CSS text
-
description
- Specified by:
descriptionin interfaceIdServiceType- Returns:
- The service description
-
htmlTitle
- Parameters:
name- The name/phrase- Returns:
- An HTML title for the given name/phrase
-
loginExtraText
- Returns:
- The extra text inserted below the login form (XHTML)
-
toString
-
emailSubject
The branded email subject.- Parameters:
subject- The subject txt- Returns:
- The branded string
-