public class

GravatarSettingsImpl

extends Object
implements GravatarSettings
java.lang.Object
   ↳ com.atlassian.jira.avatar.GravatarSettingsImpl

Class Overview

Gravatar settings.

Summary

Public Constructors
GravatarSettingsImpl(ApplicationProperties applicationProperties)
Public Methods
@Nullable String getCustomApiAddress()
Gets the custom Gravatar server's API address.
boolean isAllowGravatars()
Gets the "gravatars allowed" JIRA-wide setting.
void setAllowGravatars(boolean allowGravatar)
Sets the "gravatars allowed" JIRA-wide setting.
void setCustomApiAddress(String customApiAddress)
Sets a custom Gravatar server's API address.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.avatar.GravatarSettings

Public Constructors

public GravatarSettingsImpl (ApplicationProperties applicationProperties)

Public Methods

@Nullable public String getCustomApiAddress ()

Gets the custom Gravatar server's API address.

Returns
  • the custom server's API address, or null

public boolean isAllowGravatars ()

Gets the "gravatars allowed" JIRA-wide setting.

Returns
  • true if Gravatar support is enabled

public void setAllowGravatars (boolean allowGravatar)

Sets the "gravatars allowed" JIRA-wide setting.

Parameters
allowGravatar whether to allow Gravatars

public void setCustomApiAddress (String customApiAddress)

Sets a custom Gravatar server's API address.

Parameters
customApiAddress the server's API URL (null to use Gravatar.com)