Class IdServerBrandingService
java.lang.Object
com.io7m.idstore.server.service.branding.IdServerBrandingService
- All Implemented Interfaces:
IdServerBrandingServiceType
,com.io7m.repetoir.core.RPServiceType
The service that supplies branding information.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IdServerBrandingServiceType
create
(IdFMTemplateServiceType templates, IdServerBrandingConfiguration configuration) Create a branding service.css()
emailSubject
(String subject) The branded email subject.byte[]
title()
toString()
-
Method Details
-
create
public static IdServerBrandingServiceType create(IdFMTemplateServiceType templates, IdServerBrandingConfiguration configuration) throws IOException Create a branding service.- Parameters:
templates
- The template serviceconfiguration
- The branding configuration- Returns:
- A branding service
- Throws:
IOException
- On errors
-
logoImage
public byte[] logoImage()- Specified by:
logoImage
in interfaceIdServerBrandingServiceType
- Returns:
- The bytes of an SVG logo image
-
title
- Specified by:
title
in interfaceIdServerBrandingServiceType
- Returns:
- The product title
-
xButtonCSS
- Specified by:
xButtonCSS
in interfaceIdServerBrandingServiceType
- Returns:
- The xButton CSS
-
css
- Specified by:
css
in interfaceIdServerBrandingServiceType
- Returns:
- The CSS text
-
description
- Specified by:
description
in interfacecom.io7m.repetoir.core.RPServiceType
-
htmlTitle
- Specified by:
htmlTitle
in interfaceIdServerBrandingServiceType
- Parameters:
name
- The name/phrase- Returns:
- An HTML title for the given name/phrase
-
loginExtraText
- Specified by:
loginExtraText
in interfaceIdServerBrandingServiceType
- Returns:
- The extra text inserted below the login form (XHTML)
-
toString
-
emailSubject
Description copied from interface:IdServerBrandingServiceType
The branded email subject.- Specified by:
emailSubject
in interfaceIdServerBrandingServiceType
- Parameters:
subject
- The subject txt- Returns:
- The branded string
-