Class BytedeskProperties

java.lang.Object
com.bytedesk.core.config.properties.BytedeskProperties

@Component @ConfigurationProperties("bytedesk") public class BytedeskProperties extends Object
  • Field Details

  • Constructor Details

    • BytedeskProperties

      public BytedeskProperties()
  • Method Details

    • init

      @PostConstruct public void init()
    • encryptString

      public static String encryptString(String plainText)
      AES加密字符串
      Parameters:
      plainText - 明文
      Returns:
      加密后的Base64字符串
    • handleChineseText

      private String handleChineseText(String text, String envKey)
      处理可能包含中文的文本
      Parameters:
      text - 原始文本
      envKey - 对应的环境变量key
      Returns:
      处理后的文本
    • getInstance

      public static BytedeskProperties getInstance()
    • getEmail

      public String getEmail()
    • getPassword

      public String getPassword()
    • getMemberDefaultPassword

      public String getMemberDefaultPassword()
    • getNickname

      public String getNickname()
    • getMobile

      public String getMobile()
    • getMobileWhitelist

      public List<String> getMobileWhitelist()
    • getEmailWhitelist

      public List<String> getEmailWhitelist()
    • getValidateCode

      public String getValidateCode()
    • getOrganizationName

      public String getOrganizationName()
    • getOrganizationCode

      public String getOrganizationCode()
    • getJavaAi

      public Boolean getJavaAi()
    • getEmailType

      public String getEmailType()
    • getAvatarBaseUrl

      public String getAvatarBaseUrl()
    • getCorsAllowedOrigins

      public String getCorsAllowedOrigins()
    • getJwtSecretKey

      public String getJwtSecretKey()
    • getJwtExpiration

      public String getJwtExpiration()
    • getJwtRefreshTokenExpiration

      public String getJwtRefreshTokenExpiration()
    • getCacheLevel

      public Integer getCacheLevel()
    • getCachePrefix

      public String getCachePrefix()
    • getRedisStreamKey

      public String getRedisStreamKey()
    • getUploadType

      public String getUploadType()
    • getUploadDir

      public String getUploadDir()
    • getUploadUrl

      public String getUploadUrl()
    • getClusterEnabled

      public Boolean getClusterEnabled()
    • getClusterNodes

      public List<String> getClusterNodes()
    • getClusterHost

      public String getClusterHost()
    • getClusterPort

      public int getClusterPort()
    • getKbaseTheme

      public String getKbaseTheme()
    • getKbaseHtmlPath

      public String getKbaseHtmlPath()
    • getKbaseApiUrl

      public String getKbaseApiUrl()
    • getMinioEnabled

      public Boolean getMinioEnabled()
    • getMinioEndpoint

      public String getMinioEndpoint()
    • getMinioAccessKey

      public String getMinioAccessKey()
    • getMinioSecretKey

      public String getMinioSecretKey()
    • getMinioBucketName

      public String getMinioBucketName()
    • getMinioRegion

      public String getMinioRegion()
    • getMinioSecure

      public Boolean getMinioSecure()
    • isDisableIpFilter

      public boolean isDisableIpFilter()
      检查是否禁用IP过滤
      Returns:
      如果禁用IP过滤,返回true;否则返回false
    • isDisableCaptcha

      public boolean isDisableCaptcha()
      检查是否禁用验证码
      Returns:
      如果禁用验证码,返回true;否则返回false
    • isSuperUser

      public Boolean isSuperUser(@NonNull String user)
    • isInWhitelist

      public Boolean isInWhitelist(@NonNull String user)
    • getLicenseKey

      public String getLicenseKey()
      获取加密后的licenseKey
      Returns:
      加密后的licenseKey字符串
    • getOriginalAppkey

      public String getOriginalAppkey()
      获取原始licenseKey(仅用于内部使用)
      Returns:
      原始licenseKey字符串