UserSetting.java 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. package com.genersoft.iot.vmp.conf;
  2. import org.springframework.boot.context.properties.ConfigurationProperties;
  3. import org.springframework.stereotype.Component;
  4. import java.util.ArrayList;
  5. import java.util.List;
  6. /**
  7. * 配置文件 user-settings 映射的配置信息
  8. */
  9. @Component
  10. @ConfigurationProperties(prefix = "user-settings", ignoreInvalidFields = true)
  11. public class UserSetting {
  12. private Boolean savePositionHistory = Boolean.FALSE;
  13. private Boolean autoApplyPlay = Boolean.FALSE;
  14. private Boolean seniorSdp = Boolean.FALSE;
  15. private Long playTimeout = 18000L;
  16. private int platformPlayTimeout = 60000;
  17. private Boolean interfaceAuthentication = Boolean.TRUE;
  18. private Boolean recordPushLive = Boolean.TRUE;
  19. private Boolean recordSip = Boolean.TRUE;
  20. private Boolean logInDatebase = Boolean.TRUE;
  21. private Boolean redisConfig = Boolean.TRUE;
  22. private String serverId = "000000";
  23. private String thirdPartyGBIdReg = "[\\s\\S]*";
  24. private List<String> interfaceAuthenticationExcludes = new ArrayList<>();
  25. public Boolean getSavePositionHistory() {
  26. return savePositionHistory;
  27. }
  28. public Boolean isSavePositionHistory() {
  29. return savePositionHistory;
  30. }
  31. public Boolean isAutoApplyPlay() {
  32. return autoApplyPlay;
  33. }
  34. public Boolean isSeniorSdp() {
  35. return seniorSdp;
  36. }
  37. public Long getPlayTimeout() {
  38. return playTimeout;
  39. }
  40. public Boolean isInterfaceAuthentication() {
  41. return interfaceAuthentication;
  42. }
  43. public Boolean isRecordPushLive() {
  44. return recordPushLive;
  45. }
  46. public List<String> getInterfaceAuthenticationExcludes() {
  47. return interfaceAuthenticationExcludes;
  48. }
  49. public void setSavePositionHistory(Boolean savePositionHistory) {
  50. this.savePositionHistory = savePositionHistory;
  51. }
  52. public void setAutoApplyPlay(Boolean autoApplyPlay) {
  53. this.autoApplyPlay = autoApplyPlay;
  54. }
  55. public void setSeniorSdp(Boolean seniorSdp) {
  56. this.seniorSdp = seniorSdp;
  57. }
  58. public void setPlayTimeout(Long playTimeout) {
  59. this.playTimeout = playTimeout;
  60. }
  61. public void setInterfaceAuthentication(boolean interfaceAuthentication) {
  62. this.interfaceAuthentication = interfaceAuthentication;
  63. }
  64. public void setRecordPushLive(Boolean recordPushLive) {
  65. this.recordPushLive = recordPushLive;
  66. }
  67. public void setInterfaceAuthenticationExcludes(List<String> interfaceAuthenticationExcludes) {
  68. this.interfaceAuthenticationExcludes = interfaceAuthenticationExcludes;
  69. }
  70. public Boolean getLogInDatebase() {
  71. return logInDatebase;
  72. }
  73. public void setLogInDatebase(Boolean logInDatebase) {
  74. this.logInDatebase = logInDatebase;
  75. }
  76. public String getServerId() {
  77. return serverId;
  78. }
  79. public void setServerId(String serverId) {
  80. this.serverId = serverId;
  81. }
  82. public String getThirdPartyGBIdReg() {
  83. return thirdPartyGBIdReg;
  84. }
  85. public void setThirdPartyGBIdReg(String thirdPartyGBIdReg) {
  86. this.thirdPartyGBIdReg = thirdPartyGBIdReg;
  87. }
  88. public Boolean getRedisConfig() {
  89. return redisConfig;
  90. }
  91. public void setRedisConfig(Boolean redisConfig) {
  92. this.redisConfig = redisConfig;
  93. }
  94. public Boolean getRecordSip() {
  95. return recordSip;
  96. }
  97. public void setRecordSip(Boolean recordSip) {
  98. this.recordSip = recordSip;
  99. }
  100. public int getPlatformPlayTimeout() {
  101. return platformPlayTimeout;
  102. }
  103. public void setPlatformPlayTimeout(int platformPlayTimeout) {
  104. this.platformPlayTimeout = platformPlayTimeout;
  105. }
  106. }