You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.4 KiB
49 lines
1.4 KiB
2 years ago
|
package com.fr.plugin;
|
||
|
|
||
|
import com.fr.config.*;
|
||
|
import com.fr.config.holder.Conf;
|
||
|
import com.fr.config.holder.factory.Holders;
|
||
|
|
||
|
@Visualization(category = "xxSSO配置")
|
||
|
public class LDYConfig extends DefaultConfiguration {
|
||
|
|
||
|
private static volatile LDYConfig config = null;
|
||
|
|
||
|
public static LDYConfig getInstance() {
|
||
|
if (config == null) {
|
||
|
config = ConfigContext.getConfigInstance(LDYConfig.class);
|
||
|
}
|
||
|
return config;
|
||
|
}
|
||
|
|
||
|
@Identifier(value = "apiUrl", name = "接口地址", description = "描述", status = Status.SHOW)
|
||
|
private Conf<String> apiUrl = Holders.simple("");
|
||
|
@Identifier(value = "oaDesKey", name = "OA单点DES秘钥", description = "OA单点DES秘钥", status = Status.SHOW)
|
||
|
private Conf<String> oaDesKey = Holders.simple("");
|
||
|
|
||
|
public String getOaDesKey() {
|
||
|
return oaDesKey.get();
|
||
|
}
|
||
|
|
||
|
public void setOaDesKey(String oaDesKey) {
|
||
|
this.oaDesKey.set(oaDesKey);
|
||
|
}
|
||
|
|
||
|
public String getApiUrl() {
|
||
|
return apiUrl.get();
|
||
|
}
|
||
|
|
||
|
public void setApiUrl(String apiUrl) {
|
||
|
this.apiUrl.set(apiUrl);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public Object clone() throws CloneNotSupportedException {
|
||
|
LDYConfig cloned = (LDYConfig) super.clone();
|
||
|
cloned.apiUrl = (Conf<String>) this.apiUrl.clone();
|
||
|
cloned.oaDesKey = (Conf<String>) this.oaDesKey.clone();
|
||
|
|
||
|
return cloned;
|
||
|
}
|
||
|
|
||
|
}
|