UserSetting.java 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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 Integer playTimeout = 18000;
  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 usePushingAsStatus = Boolean.TRUE;
  22. private Boolean useSourceIpAsStreamIp = Boolean.FALSE;
  23. private Boolean streamOnDemand = Boolean.TRUE;
  24. private Boolean pushAuthority = Boolean.TRUE;
  25. private Boolean gbSendStreamStrict = Boolean.FALSE;
  26. private String serverId = "000000";
  27. private String thirdPartyGBIdReg = "[\\s\\S]*";
  28. private List<String> interfaceAuthenticationExcludes = new ArrayList<>();
  29. public Boolean getSavePositionHistory() {
  30. return savePositionHistory;
  31. }
  32. public Boolean isSavePositionHistory() {
  33. return savePositionHistory;
  34. }
  35. public Boolean isAutoApplyPlay() {
  36. return autoApplyPlay;
  37. }
  38. public Boolean isSeniorSdp() {
  39. return seniorSdp;
  40. }
  41. public Integer getPlayTimeout() {
  42. return playTimeout;
  43. }
  44. public Boolean isInterfaceAuthentication() {
  45. return interfaceAuthentication;
  46. }
  47. public Boolean isRecordPushLive() {
  48. return recordPushLive;
  49. }
  50. public List<String> getInterfaceAuthenticationExcludes() {
  51. return interfaceAuthenticationExcludes;
  52. }
  53. public void setSavePositionHistory(Boolean savePositionHistory) {
  54. this.savePositionHistory = savePositionHistory;
  55. }
  56. public void setAutoApplyPlay(Boolean autoApplyPlay) {
  57. this.autoApplyPlay = autoApplyPlay;
  58. }
  59. public void setSeniorSdp(Boolean seniorSdp) {
  60. this.seniorSdp = seniorSdp;
  61. }
  62. public void setPlayTimeout(Integer playTimeout) {
  63. this.playTimeout = playTimeout;
  64. }
  65. public void setInterfaceAuthentication(boolean interfaceAuthentication) {
  66. this.interfaceAuthentication = interfaceAuthentication;
  67. }
  68. public void setRecordPushLive(Boolean recordPushLive) {
  69. this.recordPushLive = recordPushLive;
  70. }
  71. public void setInterfaceAuthenticationExcludes(List<String> interfaceAuthenticationExcludes) {
  72. this.interfaceAuthenticationExcludes = interfaceAuthenticationExcludes;
  73. }
  74. public Boolean getLogInDatebase() {
  75. return logInDatebase;
  76. }
  77. public void setLogInDatebase(Boolean logInDatebase) {
  78. this.logInDatebase = logInDatebase;
  79. }
  80. public String getServerId() {
  81. return serverId;
  82. }
  83. public void setServerId(String serverId) {
  84. this.serverId = serverId;
  85. }
  86. public String getThirdPartyGBIdReg() {
  87. return thirdPartyGBIdReg;
  88. }
  89. public void setThirdPartyGBIdReg(String thirdPartyGBIdReg) {
  90. this.thirdPartyGBIdReg = thirdPartyGBIdReg;
  91. }
  92. public Boolean getRecordSip() {
  93. return recordSip;
  94. }
  95. public void setRecordSip(Boolean recordSip) {
  96. this.recordSip = recordSip;
  97. }
  98. public int getPlatformPlayTimeout() {
  99. return platformPlayTimeout;
  100. }
  101. public void setPlatformPlayTimeout(int platformPlayTimeout) {
  102. this.platformPlayTimeout = platformPlayTimeout;
  103. }
  104. public Boolean isUsePushingAsStatus() {
  105. return usePushingAsStatus;
  106. }
  107. public void setUsePushingAsStatus(Boolean usePushingAsStatus) {
  108. this.usePushingAsStatus = usePushingAsStatus;
  109. }
  110. public Boolean getStreamOnDemand() {
  111. return streamOnDemand;
  112. }
  113. public void setStreamOnDemand(Boolean streamOnDemand) {
  114. this.streamOnDemand = streamOnDemand;
  115. }
  116. public Boolean getUseSourceIpAsStreamIp() {
  117. return useSourceIpAsStreamIp;
  118. }
  119. public void setUseSourceIpAsStreamIp(Boolean useSourceIpAsStreamIp) {
  120. this.useSourceIpAsStreamIp = useSourceIpAsStreamIp;
  121. }
  122. public Boolean getPushAuthority() {
  123. return pushAuthority;
  124. }
  125. public void setPushAuthority(Boolean pushAuthority) {
  126. this.pushAuthority = pushAuthority;
  127. }
  128. public Boolean getGbSendStreamStrict() {
  129. return gbSendStreamStrict;
  130. }
  131. public void setGbSendStreamStrict(Boolean gbSendStreamStrict) {
  132. this.gbSendStreamStrict = gbSendStreamStrict;
  133. }
  134. }