com.atlassian.jira.avatar
Class GravatarSettingsImpl

java.lang.Object
  extended by com.atlassian.jira.avatar.GravatarSettingsImpl
All Implemented Interfaces:
GravatarSettings

public class GravatarSettingsImpl
extends Object
implements GravatarSettings

Gravatar settings.


Constructor Summary
GravatarSettingsImpl(ApplicationProperties applicationProperties)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GravatarSettingsImpl

public GravatarSettingsImpl(ApplicationProperties applicationProperties)
Method Detail

isAllowGravatars

public boolean isAllowGravatars()
Description copied from interface: GravatarSettings
Gets the "gravatars allowed" JIRA-wide setting.

Specified by:
isAllowGravatars in interface GravatarSettings
Returns:
true if Gravatar support is enabled

setAllowGravatars

public void setAllowGravatars(boolean allowGravatar)
Description copied from interface: GravatarSettings
Sets the "gravatars allowed" JIRA-wide setting.

Specified by:
setAllowGravatars in interface GravatarSettings
Parameters:
allowGravatar - whether to allow Gravatars

getCustomApiAddress

@Nullable
public String getCustomApiAddress()
Description copied from interface: GravatarSettings
Gets the custom Gravatar server's API address.

Specified by:
getCustomApiAddress in interface GravatarSettings
Returns:
the custom server's API address, or null

setCustomApiAddress

public void setCustomApiAddress(@Nullable
                                String customApiAddress)
Description copied from interface: GravatarSettings
Sets a custom Gravatar server's API address.

Specified by:
setCustomApiAddress in interface GravatarSettings
Parameters:
customApiAddress - the server's API URL (null to use Gravatar.com)


Copyright © 2002-2014 Atlassian. All Rights Reserved.