com.playtech.portal.platform.service.configuration.key.ConfigurationPropKeys.java Source code

Java tutorial

Introduction

Here is the source code for com.playtech.portal.platform.service.configuration.key.ConfigurationPropKeys.java

Source

package com.playtech.portal.platform.service.configuration.key;

import org.apache.commons.lang.StringUtils;

import java.util.Arrays;
import java.util.EnumSet;
import java.util.List;

/**
 * Keys of all organization properties. Use with Configuration service
 */
public enum ConfigurationPropKeys {

    /* Keys of all organization properties */

    ORG_CASINO_ID("playtech.casino.id"), ORG_GAME_CLIENT_BASE_URL("playtech.casino.games.client.base.url"),

    ORG_GAME_CLIENT_SHORT("playtech.casino.short"),

    ORG_SUPPORT_CHAT_INSTANCE_NAME("playtech.support.chat.instance.name"), ORG_SUPPORT_CHAT_CLIENT_LOCATION(
            "playtech.support.chat.client.location"), ORG_SUPPORT_CHAT_REDIRECT_URLS_WHITELIST(
                    "playtech.support.chat.redirectURLs.whitelist"), ORG_SUPPORT_CHAT_ENABLE_WEB(
                            "playtech.support.chat.enableWeb"), ORG_SUPPORT_CHAT_ENABLE_MOBILE(
                                    "playtech.support.chat.enableMobile"), ORG_SUPPORT_CHAT_SHOW_ICON_FOR_LOGGED_PLAYERS(
                                            "playtech.support.chat.showChatIconForLoggedInPlayers"), ORG_SUPPORT_CHAT_SHOW_ICON_FOR_GUESTS(
                                                    "playtech.support.chat.showChatIconForGuests"), ORG_SUPPORT_CHAT_SHOW_ICON_IN_IFRAME(
                                                            "playtech.support.chat.showChatIconOverTheGameInIframe"), ORG_SUPPORT_CHAT_SHOW_TUTORIAL_ABOUT_REMOVE_ICON(
                                                                    "playtech.support.chat.showTutorialAboutRemoveIcon"), ORG_SUPPORT_CHAT_ADD_SOUNDS_UPON_SEND_RECEIVE_MESSAGES(
                                                                            "playtech.support.chat.addSoundsUponSendReceiveMessage"),

    ORG_HEADER_REGISTER_LINK("playtech.header.register.link"), ORG_HEADER_HELP_LINK(
            "playtech.header.help.link"), ORG_HEADER_MESSAGES_LINK(
                    "playtech.header.messages.link"), ORG_HEADER_LOW_BALANCE_ALERT_ENABLED(
                            "playtech.header.balance.low.alert.enabled"), ORG_HEADER_LOW_BALANCE_ALERT_WC_ID(
                                    "playtech.header.balance.low.alert.wc.id"), ORG_HEADER_LOW_BALANCE_LIMITS(
                                            "playtech.header.balance.low.limits"),

    ORG_HEADER_BALANCE_TYPE_USE_CASE("playtech.header.balancetype.usecase"),

    ORG_CONTACT_US_LINK("playtech.contactUs.link"),

    // Balance
    ORG_HEADER_REFRESH_BALANCE_INTERVAL_ALLTIME("playtech.header.refresh.balance.interval.alltime"),

    // Balance details modal
    ORG_USER_BALANCE_STATUSES_TO_DISPLAY("playtech.organization.userBalance.statusesToDisplay"),

    ORG_TERMS_AND_CONDITIONS_WEBCONTENT_ID(
            "playtech.terms.and.conditions.webcontent.id"), ORG_TERMS_AND_CONDITIONS_POPUP_WIDTH(
                    "playtech.terms.and.conditions.popupWidth"), ORG_TERMS_AND_CONDITIONS_POPUP_HEIGHT(
                            "playtech.terms.and.conditions.popupHeight"), ORG_FOOTER_CONFIG_ARTICLE_ID(
                                    "playtech.organization.footerconf.articleId"),

    // External feeds
    ORG_CASINO_SERVICE_CATEGORIES_CASINO_URL(
            "playtech.casino.service.categories.casino.url"), ORG_CASINO_SERVICE_CATEGORIES_CASINO_BACKUP_URL(
                    "playtech.casino.service.categories.casino.backup.url"), ORG_CASINO_SERVICE_CATEGORIES_GAMES_URL(
                            "playtech.casino.service.categories.games.url"), ORG_CASINO_SERVICE_CATEGORIES_GAMES_BACKUP_URL(
                                    "playtech.casino.service.categories.games.backup.url"), ORG_CASINO_SERVICE_CATEGORIES_SLOTS_URL(
                                            "playtech.casino.service.categories.slots.url"), ORG_CASINO_SERVICE_CATEGORIES_SLOTS_BACKUP_URL(
                                                    "playtech.casino.service.categories.slots.backup.url"), ORG_CASINO_SERVICE_TOPWINS_URL(
                                                            "playtech.casino.service.topwins.url"), ORG_CASINO_SERVICE_TOPWINS_FEED_URL(
                                                                    "playtech.casino.service.topwins.feed.url"), ORG_CASINO_SERVICE_TOPWINS_BACKUP_URL(
                                                                            "playtech.casino.service.topwins.backup.url"), ORG_CASINO_SERVICE_TOPGAMES_URL(
                                                                                    "playtech.casino.service.topgames.url"), ORG_CASINO_SERVICE_TOPGAMES_FEED_URL(
                                                                                            "playtech.casino.service.topgames.feed.url"), ORG_CASINO_SERVICE_TOPGAMES_BACKUP_URL(
                                                                                                    "playtech.casino.service.topgames.backup.url"), ORG_CASINO_SERVICE_TOPGAMES_BY_PLAYERS_FEED_URL(
                                                                                                            "playtech.casino.service.topgames.by.players.feed.url"),

    ORG_WINNERS_FEED_URL("playtech.winners.feed.url"), ORG_POKER_GAME_INFO_FEED_URL(
            "playtech.poker.game.info.feed.url"),

    // Games
    ORG_GAMES_SETTINGS_LAST_MODIFICATION("playtech.games.lastModification"), ORG_GAMES_URL(
            "playtech.games.url"), ORG_CASINO_MODAL_GAME_CLOSE_URL(
                    "playtech.casino.modal.game.close.url"), ORG_CASINO_FEEDS_API_BASE_URL(
                            "playtech.casinofeedsapi.baseurl"), ORG_GTS_GAME_CLIENT_BASE_URL(
                                    "playtech.gts.games.base.url"), ORG_GTS_GAME_CLIENT_AS2_BASE_URL(
                                            "playtech.gts.games.as2.base.url"), ORG_GTS_GAME_CLIENT_TOKEN_URL(
                                                    "playtech.gts.game.client.token.url"), ORG_GTS_GAME_CLIENT_EDGE_URL(
                                                            "playtech.gts.game.client.edge.url"), ORG_GTS_GAME_SYSTEM_ID(
                                                                    "playtech.gts.game.system.id"), ORG_GTS_GAME_DOMAIN(
                                                                            "playtech.gts.game.domain"), ORG_GTS_GAME_CLIENT_TYPE(
                                                                                    "playtech.gts.game.client.type"), ORG_GTS_WINNERS_URL(
                                                                                            "playtech.org.gts.winners.url"), ORG_LIVE_BASE_URL(
                                                                                                    "playtech.org.live.base.url"), ORG_LIVE_TABLES_URL(
                                                                                                            "playtech.org.live.tables.url"), ORG_LIVE_PPXML_URL(
                                                                                                                    "playtech.org.live.ppxml.url"), ORG_GTS_GAME_PATH_DOMAIN(
                                                                                                                            "playtech.org.gts.game.path.domain"), ORG_GALAXY_SOFT_SERIAL(
                                                                                                                                    "playtech.galaxy.softSerial"), ORG_GALAXY_CLIENT_TYPE(
                                                                                                                                            "playtech.galaxy.client.type"), ORG_GALAXY_CLIENT_VERSION(
                                                                                                                                                    "playtech.galaxy.client.version"), ORG_GALAXY_CLIENT_SKIN(
                                                                                                                                                            "playtech.galaxy.client.skin"), ORG_GALAXY_SERVER_STATUS(
                                                                                                                                                                    "playtech.galaxy.server.status"), ORG_GALAXY_SERVER_VERSION(
                                                                                                                                                                            "playtech.galaxy.server.version"), ORG_GALAXY_IS_LOGOUT_ALL_SESSIONS(
                                                                                                                                                                                    "playtech.galaxy.logout.all.sessions"), ORG_GALAXY_SERVER_SYSTEM_ID(
                                                                                                                                                                                            "playtech.galaxy.server.system.id"), ORG_GALAXY_GATEWAYS(
                                                                                                                                                                                                    "playtech.galaxy.gateways"), ORG_GALAXY_GATEWAY_HOSTNAME(
                                                                                                                                                                                                            "playtech.galaxy.gateway.hostnames"), ORG_GALAXY_GATEWAY_PORTS(
                                                                                                                                                                                                                    "playtech.galaxy.gateway.ports"), ORG_GALAXY_MESSAGE_RESPONSE_TIMEOUT(
                                                                                                                                                                                                                            "playtech.galaxy.message.response.timeout"), ORG_GALAXY_REQUESTS_QUEUE_SIZE(
                                                                                                                                                                                                                                    "playtech.galaxy.requests.queue.size"), ORG_GALAXY_CASHIER2_SKIN_NAME(
                                                                                                                                                                                                                                            "playtech.galaxy.cashier2.skin.name"),

    CASINO_LOYALTY_INFO_FIELD_NAME("casino.loyalty.info.field.name"),

    RESPONSIBLE_GAMING_BASE_URL("playtech.portlet.responsibleGaming.url"), RESPONSIBLE_GAMING_DEPOSIT_LIMIT_DAILY(
            "playtech.portlet.responsibleGaming.depositLimit.daily"), RESPONSIBLE_GAMING_DEPOSIT_LIMIT_DAILY_USE_NOT_DEFINED(
                    "playtech.portlet.responsibleGaming.depositLimit.daily.use.not.defined"), RESPONSIBLE_GAMING_DEPOSIT_LIMIT_WEEKLY(
                            "playtech.portlet.responsibleGaming.depositLimit.weekly"), RESPONSIBLE_GAMING_DEPOSIT_LIMIT_WEEKLY_USE_NOT_DEFINED(
                                    "playtech.portlet.responsibleGaming.depositLimit.weekly.use.not.defined"), RESPONSIBLE_GAMING_DEPOSIT_LIMIT_MONTHLY(
                                            "playtech.portlet.responsibleGaming.depositLimit.monthly"), RESPONSIBLE_GAMING_DEPOSIT_LIMIT_MONTHLY_USE_NOT_DEFINED(
                                                    "playtech.portlet.responsibleGaming.depositLimit.monthly.use.not.defined"), RESPONSIBLE_GAMING_TIMER_TIMEISFLYING(
                                                            "playtech.portlet.responsibleGaming.timer.timeisflying"), RESPONSIBLE_GAMING_TIMER_SESSION_TIMEOUT(
                                                                    "playtech.portlet.responsibleGaming.timer.session.timeout"), RESPONSIBLE_GAMING_TIMEOUTS(
                                                                            "playtech.portlet.responsibleGaming.timouts"), RESPONSIBLE_GAMING_INACTIVITY_TIMEOUT_ENABLED(
                                                                                    "playtech.portlet.responsibleGaming.inactivityTimeout.enabled"), RESPONSIBLE_GAMING_INACTIVITY_TIMEOUT_MIN(
                                                                                            "playtech.portlet.responsibleGaming.inactivityTimeout.min"), RESPONSIBLE_GAMING_INACTIVITY_TIMEOUT_MAX(
                                                                                                    "playtech.portlet.responsibleGaming.inactivityTimeout.max"), RESPONSIBLE_GAMING_INACTIVITY_TIMEOUT_DEFAULT(
                                                                                                            "playtech.portlet.responsibleGaming.inactivityTimeout.default"), RESPONSIBLE_GAMING_REALITY_CHECK_PERIODS(
                                                                                                                    "playtech.portlet.responsibleGaming.realityCheck"),

    // Bingo
    ORG_BINGO_SERVICE_WSDL_URL("playtech.org.bingo.service.wsdl.url"), ORG_VIRTUE_FUSION_HOST(
            "playtech.org.virtue.fusion.host"), ORG_BINGO_PIGAMES_URL(
                    "playtech.org.bingo.pigames.url"), ORG_BINGO_SYSTEM_ID(
                            "playtech.bingo.system.id"), ORG_VIRTUEFUSION_BONUS_FUNDS_SERVICE_USER(
                                    "playtech.org.games.bingo.virtuefusion.bonusfunds.service.user"), ORG_VIRTUEFUSION_BONUS_FUNDS_SERVICE_PASSWORD(
                                            "playtech.org.games.bingo.virtuefusion.bonusfunds.service.password"), ORG_BINGO_SERVICE_SCHEDULE_URL(
                                                    "playtech.bingo.service.schedule.url"), ORG_BINGO_USE_PORTAL_CATEGORIES(
                                                            "playtech.org.bingo.use.portal.categories"), ORG_BINGO_VF_LOBBY_BACKUP_URL(
                                                                    "playtech.org.bingo.lobby.backup.url"), ORG_USE_ONLY_BINGO_LOBBY_BACKUP(
                                                                            "playtech.org.bingo.use.only.lobby.backup"), ORG_BINGO_VF_SCHEDULED_GAMES_BACKUP_URL(
                                                                                    "playtech.org.bingo.scheduled.games.backup.url"), ORG_USE_ONLY_BINGO_SCHEDULED_GAMES_BACKUP(
                                                                                            "playtech.org.bingo.use.only.scheduled.games.backup"),

    ORG_BONUS_DETAILS_VIEW_MODE("playtech.bonus.detailed.view.mode"),

    // No funds deposit
    ORG_NOFUNDSDEPOSIT_POPUP_ENABLED(
            "playtech.webcashier.nofundsdeposit.popupenabled"), ORG_NOFUNDSDEPOSIT_CASHIER_URL(
                    "playtech.webcashier.nofundsdeposit.url"), ORG_NOFUNDSDEPOSIT_CASHIER_PAGE_NAME(
                            "playtech.webcashier.nofundsdeposit.cashierPageName"), ORG_NOFUNDSDEPOSIT_SYSTEM_ID(
                                    "playtech.webcashier.nofundsdeposit.system.id"), ORG_NOFUNDSDEPOSIT_POPUP_WIDTH(
                                            "playtech.webcashier.nofundsdeposit.popupWidth"), ORG_NOFUNDSDEPOSIT_POPUP_HEIGHT(
                                                    "playtech.webcashier.nofundsdeposit.popupHeight"),

    // Deposit
    ORG_DEPOSIT_CASHIER_URL("playtech.webcashier.deposit.url"), ORG_DEPOSIT_CASHIER_PAGE_NAME(
            "playtech.webcashier.deposit.cashierPageName"), ORG_DEPOSIT_SYSTEM_ID(
                    "playtech.webcashier.deposit.system.id"), ORG_DEPOSIT_POPUP_WIDTH(
                            "playtech.webcashier.deposit.popupWidth"), ORG_DEPOSIT_POPUP_HEIGHT(
                                    "playtech.webcashier.deposit.popupHeight"),

    //Transaction history
    ORG_TRANSACTION_HISTORY_POPUP_WIDTH(
            "playtech.webcashier.transactionhistory.popupWidth"), ORG_TRANSACTION_HISTORY_POPUP_HEIGHT(
                    "playtech.webcashier.transactionhistory.popupHeight"),

    //Add card conf
    USE_SAFE_CHARGE_TOKEN("playtech.webcashier.cardconfiguration.useSafeChargeToken"),
    /**
     * Contains SiteConfiguration serialized as a JSON string
     */
    ORG_SETTINGS_SITE_CONFIGURATION_JSON("playtech.portlet.admin.orgsettings.siteConfiguration.json"),

    ORG_SETTINGS_MOBILE_PLATFORMS_CONFIGURATION_JSON(
            "playtech.orgsettings.mobilePlatformsConfiguration.json"), ORG_SETTINGS_DESKTOP_PLATFORMS_CONFIGURATION_JSON(
                    "playtech.orgsettings.desktopPlatformsConfiguration.json"),

    ORG_REGISTRATION_TRACKING_BASE_URL("playtech.registrationtracking.service.base.url"), WEB_CASHIER_LOGIN_URL(
            "playtech.webcashier.login.url"),

    ORG_LOGGED_OUT_USER_HOME_PAGE("playtech.logged.out.user.home.page"),

    // Internal inbox
    ORG_IBOX_REST_URL("playtech.ibox.service.conf.url"), ORG_MAILQ_REST_URL("playtech.mailq.service.conf.url"),

    ORG_POKER_INSTANT_PLAY_LINK("playtech.poker.instant.play.link"),

    ORG_CASINO_JACKPOTS_URL("playtech.casino.jackpots.url"),

    ORG_CASINO_JACKPOTS_INFO_URL("playtech.casino.jackpots.info.url"),

    ORG_LOGIN_POPUP_WEB_CONTENT_ID("playtech.login.popup.web.content.id"),

    ORG_TUTORIAL_WEB_CONTENT_ID("playtech.tutorial.web.content.id"),

    ORG_HEADER_ALLOWEDCOUNTRIES_LIST("playtech.header.allowedcountries.list"),

    ORG_HEADER_ALLOWEDLOCALES_LIST("playtech.header.allowedlocales.list"),

    ORG_HEADER_DEFAULT_LOCALE("playtech.header.default.locale"),

    ORG_HEADER_SECOND_PHONE_FIELD("playtech.header.second.phone.field"),

    ORG_DEFAULT_ALLOWEDCURRENCIES_LIST("playtech.default.allowedcurrencies.list"),

    ORG_ALLOWED_CURRENCIES_LIST("playtech.allowedcurrencies.list"),

    ORG_HEADER_FORGOT_PASSWORD_WEB_CONTENT_ID(
            "playtech.header.forgot.password.web.content.id"), ORG_HEADER_FORGOT_USERNAME_WEB_CONTENT_ID(
                    "playtech.header.forgot.username.web.content.id"),

    ORG_LOGOUT_PAGE("playtech.org.logout.page"),

    ORG_DYNAMIC_TAGS_JSON("playtech.org.dynamic.tags.json"),

    // Quick menu
    ORG_QUICK_MENU_LINKS_NUMBER("playtech.quickmenu.links.number"),

    ORG_SESSION_TIMEOUT("playtech.session.timeout"),

    ORG_REDIRECT_SCRIPT_URL("playtech.org.uncategorized.redirect.script.url"),

    ORG_USER_SEGMENTATION_ID("playtech.user.segmentation.id"),

    ORG_LOCATION_JSON("playtech.location.json"),

    ORG_LOCATION_DEFAULT_CURRENCY("playtech.portlet.admin.orgsettings.location.default.currency"),

    ORG_LOCATION_DEFAULT_REGION("playtech.portlet.admin.orgsettings.location.default.region"),

    ORG_COUNTRY_LOCALE("playtech.country.locale"),

    ORG_DYNAMIC_CURRENCY_TAGS("playtech.country.dynamicCurrencyTags"),

    // Services configuration
    ORG_PLAYTECH_PLAYER_INFO_SERVICE_URL("playtech.org.player.info.scrip.url"),

    ORG_PLAYER_API_SECRET_KEY("playtech.org.player.info.secretkey"),

    ORG_REGISTRATION_SERIAL("playtech.portlet.registration.serial"), ORG_REGISTRATION_PLAYER_VIP_LEVEL(
            "playtech.registration.player.vip.level"),
    // UI Panel settings
    ORG_UIPANEL_SITE_SETTINGS("playtech.ui-panel.site.settings"),

    //CDN purge
    ORG_CDN_PURGE_SERVICE_URL("playtech.org.cdn.purge.service.url"), ORG_CDN_PURGE_SERVICE_KEY(
            "playtech.org.cdn.purge.service.key"), ORG_CDN_PURGE_SERVICE_USER_NAME(
                    "playtech.org.cdn.purge.service.username"), ORG_CDN_PURGE_SERVICE_SHORT_NAME(
                            "playtech.org.cdn.purge.service.shortname"), ORG_CDN_PURGE_SERVICE_EMAIL_SUBJECT(
                                    "playtech.org.cdn.purge.service.email.subject"), ORG_CDN_PURGE_SERVICE_EMAIL_TYPE(
                                            "playtech.org.cdn.purge.service.email.type"), ORG_CDN_PURGE_SERVICE_EMAIL_TO(
                                                    "playtech.org.cdn.purge.service.email.to"), ORG_CDN_PURGE_SERVICE_EMAIL_CC(
                                                            "playtech.org.cdn.purge.service.email.cc"), ORG_CDN_PURGE_SERVICE_EMAIL_BCC(
                                                                    "playtech.org.cdn.purge.service.email.bcc"), ORG_CDN_PURGE_SERVICE_FULL_PURGE_REGEX(
                                                                            "playtech.org.cdn.purge.service.full.purge.regex"), ORG_CDN_PURGE_FULL_PURGE_THRESHOLD(
                                                                                    "playtech.org.cdn.purge.full.purge.threshold"),

    ORG_CDN_PURGE_SERVICE_AKAMAI_CCU_USER_NAME(
            "playtech.org.cdn.purge.service.akamai.ccu.username"), ORG_CDN_PURGE_SERVICE_AKAMAI_CCU_USER_PASSWORD(
                    "playtech.org.cdn.purge.service.akamai.ccu.password"), ORG_CDN_PURGE_SERVICE_AKAMAI_CCU_CPCODES(
                            "playtech.org.cdn.purge.service.akamai.ccu.cpcodes"),

    //Mobenga settings
    ORG_MOBENGA_ID("playtech.mobenga.id"), ORG_MOBENGA_ENVIRONMENT(
            "playtech.mobenga.environment"), ORG_MOBENGA_ROOT("playtech.mobenga.root"), ORG_MOBENGA_PUSHSTATE(
                    "playtech.mobenga.pushState"), ORG_MOBENGA_JSLOG(
                            "playtech.mobenga.jsLog"), ORG_MOBENGA_MANIFEST("playtech.mobenga.manifest"),

    ORG_OPENAPI_DOMAIN_PORT("playtech.portlet.orgsettings.openapi.domain"), ORG_OPENAPI_FALLBACK_URL(
            "playtech.portlet.orgsettings.openapi.fallback.url"), ORG_OPENAPI_MAX_RECONNECT_ATTEMPTS(
                    "playtech.portlet.orgsettings.openapi.max.reconnect.attempts"), ORG_OPENAPI_RECONNECTION_DELAY(
                            "playtech.portlet.orgsettings.openapi.reconnection.delay"), ORG_OPENAPI_MAX_RECONNECT_ATTEMPTS_DEFAULT(
                                    "playtech.openapi.maxReconnectAttemptsDefault"), ORG_OPENAPI_RECONNECTION_DELAY_DEFAULT(
                                            "playtech.openapi.reconnectionDelayDefault"), ORG_MOBILE_DIRECT_CALL_DOMAIN(
                                                    "playtech.mobile.directCallDomain"), ORG_MOBILE_AJAX_CRAWLING_ENABLED(
                                                            "playtech.mobile.enable.ajax.crawling"), ORG_MOBILE_AJAX_CRAWLING_THEMEID(
                                                                    "playtech.mobile.enable.ajax.crawling.themeid"),

    ORG_MOBILE_ACTIONS_JSON("playtech.mobileActions.json"), ORG_MOBILE_DEPOSIT_REMINDER_LIMITS_JSON(
            "playtech.depositReminderLimits.json"),

    ORG_GAME_SUPPORTED_DEVICES("playtech.game.supported.devices"), ORG_GAME_SUPPORTED_OSES(
            "playtech.game.supported.oses"), ORG_GAME_SUPPORTED_BROWSERS("playtech.game.supported.browsers"),

    ORG_REGULATION_PROFILE("playtech.regulation.profile"),

    ORG_NATIVE_HYBRID_DIRECT_CALL_ACTIONS_JSON("playtech.native.hybrid.directCall.actions.json"),

    ORG_SSO_PAS_ENABLED("playtech.portlet.orgsettings.ssopas.enabled"), ORG_SSO_PAS_DOMAIN(
            "playtech.portlet.orgsettings.ssopas.domain"), ORG_SSO_PAS_JS("playtech.sso.pas.javascript.urls"),

    ORG_BONUS_MANAGEMENT_PREFERENCES("playtech.portlet.bonusmanagement.preferences"),

    /* UMS */
    PLAYTECH_SESSION_UMS_KEEPALIVE_INTERVAL("playtech.session.ums.keepalive.interval"),

    /* IP which is used only for testing of user location defining by IP. If this property
    is set up then user's IP is always this instead defined by request header */
    PLAYER_FAKE_IP("org.player.fake.ip"),

    SHOW_USERNAME_IN_UPPER_CASE("playtech.portlet.orgsettings.show.username.in.upper.case"),

    ENABLE_JS_LOGGING("playtech.portlet.orgsettings.enable.js.logging"),

    // Translations
    ORG_TRANSLATIONS_LAST_MODIFICATION("playtech.org.translations.last.modification"),

    //Google Analytics
    PLAYER_TRACKING_GA_ENABLED("playtech.player.tracking.ga.enabled"), GA_ASYNC_ENABLED(
            "playtech.ga.async.enabled"),

    ADMIN_LANGUAGE("playtech.admin.language"),

    // BI
    ORG_BI_PLAYER_SEGMENT("playtech.org.bi.player.segment"),

    /* Keys of settings shared to all companies */

    /* One place to store all settings of 'Server administration' tab */
    SERVER_AVAILABILITY_SETTINGS("playtech.portlet.admin.orgsettings.server.availability.settings"),

    IS_LICENSEE("playtech.isLicensee"),

    IS_ADMIN_NODE("playtech.isAdminNode"),

    IS_SHOW_SIGN_IN_PORTLET("playtech.showSignInPortlet"),

    IS_UNICAST_MESSAGING_ENABLED("playtech.messaging.unicast.enabled"),

    IS_SELF_DIAGNOSTIC_ENABLED("platform.self.diagnostic.enabled"),

    ALTERNATE_VIRTUAL_HOSTS("playtech.organization.alternate-virtual-hosts"),

    LOOKUP_SERVICE_DEFAULT_PROVIDER_ID("platform.address.lookup.provider.default.id"),

    CSS_ROOT_URL("playtech.css.root.url");

    /* Data members */

    private final String propKey;

    /* Private constructors */

    private ConfigurationPropKeys(String propKey) {
        this.propKey = propKey;
    }

    /* Public methods */

    public static List<ConfigurationPropKeys> asList() {
        return Arrays.asList(ConfigurationPropKeys.values());
    }

    public static ConfigurationPropKeys getByPropKey(String propKey) {
        if (StringUtils.isEmpty(propKey)) {
            return null;
        }
        for (ConfigurationPropKeys element : EnumSet.allOf(ConfigurationPropKeys.class)) {
            if (propKey.equalsIgnoreCase(element.getPropKey())) {
                return element;
            }
        }
        return null;
    }

    public String getPropKey() {
        return propKey;
    }
}