UserSetting.java 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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 sipUseSourceIpAsRemoteAddress = Boolean.FALSE;
  24. private Boolean streamOnDemand = Boolean.TRUE;
  25. private Boolean pushAuthority = Boolean.TRUE;
  26. private Boolean gbSendStreamStrict = Boolean.FALSE;
  27. private Boolean syncChannelOnDeviceOnline = Boolean.FALSE;
  28. private String serverId = "000000";
  29. private String thirdPartyGBIdReg = "[\\s\\S]*";
  30. private List<String> interfaceAuthenticationExcludes = new ArrayList<>();
  31. public Boolean getSavePositionHistory() {
  32. return savePositionHistory;
  33. }
  34. public Boolean isSavePositionHistory() {
  35. return savePositionHistory;
  36. }
  37. public Boolean isAutoApplyPlay() {
  38. return autoApplyPlay;
  39. }
  40. public Boolean isSeniorSdp() {
  41. return seniorSdp;
  42. }
  43. public Integer getPlayTimeout() {
  44. return playTimeout;
  45. }
  46. public Boolean isInterfaceAuthentication() {
  47. return interfaceAuthentication;
  48. }
  49. public Boolean isRecordPushLive() {
  50. return recordPushLive;
  51. }
  52. public List<String> getInterfaceAuthenticationExcludes() {
  53. return interfaceAuthenticationExcludes;
  54. }
  55. public void setSavePositionHistory(Boolean savePositionHistory) {
  56. this.savePositionHistory = savePositionHistory;
  57. }
  58. public void setAutoApplyPlay(Boolean autoApplyPlay) {
  59. this.autoApplyPlay = autoApplyPlay;
  60. }
  61. public void setSeniorSdp(Boolean seniorSdp) {
  62. this.seniorSdp = seniorSdp;
  63. }
  64. public void setPlayTimeout(Integer playTimeout) {
  65. this.playTimeout = playTimeout;
  66. }
  67. public void setInterfaceAuthentication(boolean interfaceAuthentication) {
  68. this.interfaceAuthentication = interfaceAuthentication;
  69. }
  70. public void setRecordPushLive(Boolean recordPushLive) {
  71. this.recordPushLive = recordPushLive;
  72. }
  73. public void setInterfaceAuthenticationExcludes(List<String> interfaceAuthenticationExcludes) {
  74. this.interfaceAuthenticationExcludes = interfaceAuthenticationExcludes;
  75. }
  76. public Boolean getLogInDatebase() {
  77. return logInDatebase;
  78. }
  79. public void setLogInDatebase(Boolean logInDatebase) {
  80. this.logInDatebase = logInDatebase;
  81. }
  82. public String getServerId() {
  83. return serverId;
  84. }
  85. public void setServerId(String serverId) {
  86. this.serverId = serverId;
  87. }
  88. public String getThirdPartyGBIdReg() {
  89. return thirdPartyGBIdReg;
  90. }
  91. public void setThirdPartyGBIdReg(String thirdPartyGBIdReg) {
  92. this.thirdPartyGBIdReg = thirdPartyGBIdReg;
  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. public Boolean isUsePushingAsStatus() {
  107. return usePushingAsStatus;
  108. }
  109. public void setUsePushingAsStatus(Boolean usePushingAsStatus) {
  110. this.usePushingAsStatus = usePushingAsStatus;
  111. }
  112. public Boolean getStreamOnDemand() {
  113. return streamOnDemand;
  114. }
  115. public void setStreamOnDemand(Boolean streamOnDemand) {
  116. this.streamOnDemand = streamOnDemand;
  117. }
  118. public Boolean getUseSourceIpAsStreamIp() {
  119. return useSourceIpAsStreamIp;
  120. }
  121. public void setUseSourceIpAsStreamIp(Boolean useSourceIpAsStreamIp) {
  122. this.useSourceIpAsStreamIp = useSourceIpAsStreamIp;
  123. }
  124. public Boolean getPushAuthority() {
  125. return pushAuthority;
  126. }
  127. public void setPushAuthority(Boolean pushAuthority) {
  128. this.pushAuthority = pushAuthority;
  129. }
  130. public Boolean getGbSendStreamStrict() {
  131. return gbSendStreamStrict;
  132. }
  133. public void setGbSendStreamStrict(Boolean gbSendStreamStrict) {
  134. this.gbSendStreamStrict = gbSendStreamStrict;
  135. }
  136. public Boolean getSyncChannelOnDeviceOnline() {
  137. return syncChannelOnDeviceOnline;
  138. }
  139. public void setSyncChannelOnDeviceOnline(Boolean syncChannelOnDeviceOnline) {
  140. this.syncChannelOnDeviceOnline = syncChannelOnDeviceOnline;
  141. }
  142. public Boolean getSipUseSourceIpAsRemoteAddress() {
  143. return sipUseSourceIpAsRemoteAddress;
  144. }
  145. public void setSipUseSourceIpAsRemoteAddress(Boolean sipUseSourceIpAsRemoteAddress) {
  146. this.sipUseSourceIpAsRemoteAddress = sipUseSourceIpAsRemoteAddress;
  147. }
  148. }