Introduction

Gravatar is a popular service for avatars. This article will talk about integrating Gravatar on your website. A sample integration is available on the B2C Samplestore website.

Integration

The integration with the Nemesis platform is pretty straight-forward. Upon adding the module in the classpath,

<dependency>
    <groupId>io.nemesis.platform.module.avatar</groupId>
    <artifactId>nemesis-module-gravatar</artifactId>
</dependency>

you will have access to several new properties you can use to customize its behaviour. All of them are located under the nemesis.avatar.gravatar domain. Please consult the Gravatar documentation on what they mean and how to use them. The Gravatar module provides implementation of the io.nemesis.platform.facade.avatar.AvatarFacade that will actually go to Gravatar and fetch the image for the given customer.

Configuration

Name Type Description

nemesis.gravatar.default-image

java.lang.String

The gravatar default image.

nemesis.gravatar.gravatar-rating

com.timgroup.jgravatar.GravatarRating

The gravatar rating.

nemesis.gravatar.provider-order

java.lang.Integer

The order at which the gravatar avatar provider is registered.

nemesis.gravatar.size

java.lang.Integer

The default image size.