UserSetting.java 5.6 KB

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