com.atlassian.jira.user
Interface UserLocaleStore

All Known Implementing Classes:
BootstrapUserLocaleStore, MockUserLocaleStore, PropertySetUserLocaleStore

public interface UserLocaleStore

Store that deals with an user's configured locale.

Since:
v6.2.3

Method Summary
 Locale getDefaultLocale()
          Return the Locale to use for a user without a locale.
 Locale getLocale(ApplicationUser user)
          Return the Locale associated with the passed user.
 Locale getLocale(com.atlassian.crowd.embedded.api.User user)
          Return the Locale associated with the passed user.
 

Method Detail

getLocale

@Nonnull
Locale getLocale(@Nullable
                         ApplicationUser user)
Return the Locale associated with the passed user.

Parameters:
user - the user for the query.
Returns:
the Locale associated with the passed user.

getLocale

@Nonnull
Locale getLocale(@Nullable
                         com.atlassian.crowd.embedded.api.User user)
Return the Locale associated with the passed user.

Parameters:
user - the user for the query.
Returns:
the Locale associated with the passed user.

getDefaultLocale

@Nonnull
Locale getDefaultLocale()
Return the Locale to use for a user without a locale.

Returns:
the default locale of JIRA.


Copyright © 2002-2014 Atlassian. All Rights Reserved.