Example usage for com.liferay.portal.kernel.language LanguageConstants KEY_USER_INITIALS_FIELD_NAMES

List of usage examples for com.liferay.portal.kernel.language LanguageConstants KEY_USER_INITIALS_FIELD_NAMES

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.language LanguageConstants KEY_USER_INITIALS_FIELD_NAMES.

Prototype

String KEY_USER_INITIALS_FIELD_NAMES

To view the source code for com.liferay.portal.kernel.language LanguageConstants KEY_USER_INITIALS_FIELD_NAMES.

Click Source Link

Usage

From source file:com.liferay.users.admin.internal.user.initials.generator.UserInitialsGeneratorImpl.java

License:Open Source License

private String[] _getUserInitialsFieldNames(Locale locale) {
    String[] userInitialsFieldNames = _userInitialsFieldNamesMap.get(locale);

    if (userInitialsFieldNames != null) {
        return userInitialsFieldNames;
    }//from www. j a  va2 s  .  c  o m

    userInitialsFieldNames = StringUtil
            .split(LanguageUtil.get(locale, LanguageConstants.KEY_USER_INITIALS_FIELD_NAMES, null));

    if (ArrayUtil.isEmpty(userInitialsFieldNames)) {
        userInitialsFieldNames = _DEFAULT_USER_INITIALS_FIELD_NAMES;
    }

    _userInitialsFieldNamesMap.put(locale, userInitialsFieldNames);

    return userInitialsFieldNames;
}