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.
93 lines
3.0 KiB
93 lines
3.0 KiB
3 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 = "用户同步和单点配置")
|
||
|
public class ZtgtConfig extends DefaultConfiguration {
|
||
|
|
||
|
private static volatile ZtgtConfig config = null;
|
||
|
|
||
|
public static ZtgtConfig getInstance() {
|
||
|
if (config == null) {
|
||
|
config = ConfigContext.getConfigInstance(ZtgtConfig.class);
|
||
|
}
|
||
|
return config;
|
||
|
}
|
||
|
|
||
|
@Identifier(value = "valAddr", name = "接口地址", description = "接口地址", status = Status.SHOW)
|
||
|
private Conf<String> valAddr = Holders.simple("http://xxx.cn/profile/oauth2");
|
||
|
@Identifier(value = "frUrl", name = "报表地址", description = "报表地址", status = Status.SHOW)
|
||
|
private Conf<String> frUrl = Holders.simple("http://localhost:8075/webroot/decision");
|
||
|
@Identifier(value = "appId", name = "clientId", description = "clientId", status = Status.SHOW)
|
||
|
private Conf<String> appId = Holders.simple("");
|
||
|
@Identifier(value = "clientSecret", name = "clientSecret", description = "clientSecret", status = Status.SHOW)
|
||
|
private Conf<String> clientSecret = Holders.simple("");
|
||
|
@Identifier(value = "logoutUrl", name = "统一认证登出地址", description = "统一认证登出地址", status = Status.SHOW)
|
||
|
private Conf<String> logoutUrl = Holders.simple("http://xxx/logout");
|
||
|
@Identifier(value = "synKey", name = "用户同步秘钥", description = "", status = Status.HIDE)
|
||
|
private Conf<String> synKey = Holders.simple("");
|
||
|
|
||
|
public String getFrUrl() {
|
||
|
return frUrl.get();
|
||
|
}
|
||
|
|
||
|
public String getSynKey() {
|
||
|
return synKey.get();
|
||
|
}
|
||
|
|
||
|
public void setSynKey(String synKey) {
|
||
|
this.synKey.set(synKey);
|
||
|
}
|
||
|
|
||
|
public void setFrUrl(String frUrl) {
|
||
|
this.frUrl.set(frUrl);
|
||
|
}
|
||
|
|
||
|
public String getAppId() {
|
||
|
return appId.get();
|
||
|
}
|
||
|
|
||
|
public void setAppId(String appId) {
|
||
|
this.appId.set(appId);
|
||
|
}
|
||
|
|
||
|
public String getClientSecret() {
|
||
|
return clientSecret.get();
|
||
|
}
|
||
|
|
||
|
public void setClientSecret(String clientSecret) {
|
||
|
this.clientSecret.set(clientSecret);
|
||
|
}
|
||
|
|
||
|
public String getValAddr() {
|
||
|
return valAddr.get();
|
||
|
}
|
||
|
|
||
|
public String getLogoutUrl() {
|
||
|
return logoutUrl.get();
|
||
|
}
|
||
|
|
||
|
public void setLogoutUrl(String logoutUrl) {
|
||
|
this.logoutUrl.set(logoutUrl);
|
||
|
;
|
||
|
}
|
||
|
|
||
|
public void setValAddr(String valAddr) {
|
||
|
this.valAddr.set(valAddr);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public Object clone() throws CloneNotSupportedException {
|
||
|
ZtgtConfig cloned = (ZtgtConfig) super.clone();
|
||
|
cloned.valAddr = (Conf<String>) valAddr.clone();
|
||
|
cloned.appId = (Conf<String>) appId.clone();
|
||
|
cloned.synKey = (Conf<String>) synKey.clone();
|
||
|
cloned.clientSecret = (Conf<String>) clientSecret.clone();
|
||
|
cloned.frUrl = (Conf<String>) frUrl.clone();
|
||
|
cloned.logoutUrl = (Conf<String>) logoutUrl.clone();
|
||
|
return cloned;
|
||
|
}
|
||
|
|
||
|
}
|