ludc
2024-09-09 e04e10a0765e1d32535d91292763289adf43d651
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
package com.vci.web.properties;
 
 
import com.vci.starter.web.annotation.config.VciConfigField;
import com.vci.starter.web.annotation.config.VciConfigModule;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
 
/**
 * web相关的配置
 * @author weidy
 */
@Configuration
@ConfigurationProperties(prefix = "vciweb")
@VciConfigModule(name = "platform1",title = "平台全局选项")
public class WebProperties {
 
    /**
     * 是否控制功能权限
     */
    @VciConfigField(value = "function.right.swith",title = "是否控制功能权限")
    private boolean functionRight = true;
 
    /**
     * 是否控制UI权限
     */
    @VciConfigField(value = "ui.right.swith",title = "是否UI权限")
    private boolean UIRight = false;
 
    /**
     * 是否控制数据权限
     */
    @VciConfigField(value = "right.switch",title = "是否数据权限")
    private boolean dataRight = false;
    //是否控制数据权限
 
    /**
     * 是否控制密级
     */
    @VciConfigField(value = "userSecuritySwith",title = "是否控制密级")
    private boolean secretRight = false;
 
    /**
     * 是否控制IP密级
     */
    @VciConfigField(value = "ipSecuritySwitch",title = "是否控制IP密级")
    private boolean ipSecretRight = false;
 
    /**
     * 发起流程时是否校验用户密级
     */
    private boolean checkSecretOnProcessStart = false;
 
    /**
     * 是否开启客户端检查
     */
    @VciConfigField(value = "sessionTimeOutCheck",title = "是否开启会话检查")
    private boolean checkClientSessionTimeout;
 
    /**
     * 客户端最大存在时间,单位为分钟
     */
    @VciConfigField(value = "sessionAliveMax",title = "会话最大时间")
    private int clientSessionAliveMax;
 
    /**
     * 超时提醒时间,单位为分钟
     */
    @VciConfigField(value = "sessionAlertRemind",title = "会话超时提醒")
    private int clientSessionRemind;
 
    /**
     * 客户端判断超时轮询时间,单位为秒
     */
    @VciConfigField(value = "sessionTimeOutInterval",title = "客户端轮询时间")
    private int clientSessionInterval = 15;
 
    /**
     * 初始化的时候缓存UI
     */
    @VciConfigField(value = "cacheUIOnInit",title = "初始化的时候缓存UI")
    private boolean cacheUIOnInit = true;
 
    /**
     * 是否自动扫描功能权限的注解
     */
    private boolean scanFunctionAnnotation;
 
    /**
     * 浏览服务的路径
     */
    private String previewServiceUrl;
 
    /**
     * 浏览服务的私钥
     */
    private String previewPrivateKey;
 
    /**
     * 浏览服务的系统key
     */
    private String previewSystemKey;
 
    /**
     * 是否debug
     */
    private boolean debug;
 
    /**
     * 文件分片的大小,单位是KB
     */
    private int blockLength = 32;
 
    public boolean isFunctionRight() {
        return functionRight;
    }
 
    public void setFunctionRight(boolean functionRight) {
        this.functionRight = functionRight;
    }
 
    public boolean isUIRight() {
        return UIRight;
    }
 
    public void setUIRight(boolean UIRight) {
        this.UIRight = UIRight;
    }
 
    public boolean isDataRight() {
        return dataRight;
    }
 
    public void setDataRight(boolean dataRight) {
        this.dataRight = dataRight;
    }
 
    public boolean isSecretRight() {
        return secretRight;
    }
 
    public void setSecretRight(boolean secretRight) {
        this.secretRight = secretRight;
    }
 
    public boolean isIpSecretRight() {
        return ipSecretRight;
    }
 
    public void setIpSecretRight(boolean ipSecretRight) {
        this.ipSecretRight = ipSecretRight;
    }
 
    public boolean isCheckSecretOnProcessStart() {
        return checkSecretOnProcessStart;
    }
 
    public void setCheckSecretOnProcessStart(boolean checkSecretOnProcessStart) {
        this.checkSecretOnProcessStart = checkSecretOnProcessStart;
    }
 
    public boolean isCheckClientSessionTimeout() {
        return checkClientSessionTimeout;
    }
 
    public void setCheckClientSessionTimeout(boolean checkClientSessionTimeout) {
        this.checkClientSessionTimeout = checkClientSessionTimeout;
    }
 
    public int getClientSessionAliveMax() {
        return clientSessionAliveMax;
    }
 
    public void setClientSessionAliveMax(int clientSessionAliveMax) {
        this.clientSessionAliveMax = clientSessionAliveMax;
    }
 
    public int getClientSessionRemind() {
        return clientSessionRemind;
    }
 
    public void setClientSessionRemind(int clientSessionRemind) {
        this.clientSessionRemind = clientSessionRemind;
    }
 
    public int getClientSessionInterval() {
        return clientSessionInterval;
    }
 
    public void setClientSessionInterval(int clientSessionInterval) {
        this.clientSessionInterval = clientSessionInterval;
    }
 
    public boolean isScanFunctionAnnotation() {
        return scanFunctionAnnotation;
    }
 
    public void setScanFunctionAnnotation(boolean scanFunctionAnnotation) {
        this.scanFunctionAnnotation = scanFunctionAnnotation;
    }
 
    public String getPreviewServiceUrl() {
        return previewServiceUrl;
    }
 
    public void setPreviewServiceUrl(String previewServiceUrl) {
        this.previewServiceUrl = previewServiceUrl;
    }
 
    public String getPreviewPrivateKey() {
        return previewPrivateKey;
    }
 
    public void setPreviewPrivateKey(String previewPrivateKey) {
        this.previewPrivateKey = previewPrivateKey;
    }
 
    public String getPreviewSystemKey() {
        return previewSystemKey;
    }
 
    public void setPreviewSystemKey(String previewSystemKey) {
        this.previewSystemKey = previewSystemKey;
    }
 
    public boolean isDebug() {
        return debug;
    }
 
    public void setDebug(boolean debug) {
        this.debug = debug;
    }
 
    public int getBlockLength() {
        return blockLength;
    }
 
    public void setBlockLength(int blockLength) {
        this.blockLength = blockLength;
    }
 
    public boolean isCacheUIOnInit() {
        return cacheUIOnInit;
    }
 
    public void setCacheUIOnInit(boolean cacheUIOnInit) {
        this.cacheUIOnInit = cacheUIOnInit;
    }
 
    @Override
    public String toString() {
        return "WebProperties{" +
                "functionRight=" + functionRight +
                ", UIRight=" + UIRight +
                ", dataRight=" + dataRight +
                ", secretRight=" + secretRight +
                ", ipSecretRight=" + ipSecretRight +
                ", checkSecretOnProcessStart=" + checkSecretOnProcessStart +
                ", checkClientSessionTimeout=" + checkClientSessionTimeout +
                ", clientSessionAliveMax=" + clientSessionAliveMax +
                ", clientSessionRemind=" + clientSessionRemind +
                ", clientSessionInterval=" + clientSessionInterval +
                ", cacheUIOnInit=" + cacheUIOnInit +
                ", scanFunctionAnnotation=" + scanFunctionAnnotation +
                ", previewServiceUrl='" + previewServiceUrl + '\'' +
                ", previewPrivateKey='" + previewPrivateKey + '\'' +
                ", previewSystemKey='" + previewSystemKey + '\'' +
                ", debug=" + debug +
                ", blockLength=" + blockLength +
                '}';
    }
}