package io.gisbi.utils;

import io.gisbi.constant.XpackSettingConstants;

import java.util.List;

public class SystemSettingUtils {

    public static boolean xpackSetting(String pkey) {

        List<String> xpackSettingList = List.of(XpackSettingConstants.AUTO_CREATE_USER,
                XpackSettingConstants.LOG_LIVE_TIME,
                XpackSettingConstants.PLATFORM_OID,
                XpackSettingConstants.DIP,
                XpackSettingConstants.PVP,
                XpackSettingConstants.PLATFORM_RID,
                XpackSettingConstants.DEFAULT_LOGIN,
                XpackSettingConstants.THRSHOLD_LOG_LIVE_TIME,
                XpackSettingConstants.LOGIN_LIMIT,
                XpackSettingConstants.LOGIN_LIMIT_RATE,
                XpackSettingConstants.LOGIN_LIMIT_TIME);
        return xpackSettingList.contains(pkey);
    }
}
