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.
81 lines
2.7 KiB
81 lines
2.7 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 = "4A集成和用户同步配置")
|
||
|
public class SYNCConfig extends DefaultConfiguration {
|
||
|
|
||
|
private static volatile SYNCConfig config = null;
|
||
|
|
||
|
public static SYNCConfig getInstance() {
|
||
|
if (config == null) {
|
||
|
config = ConfigContext.getConfigInstance(SYNCConfig.class);
|
||
|
}
|
||
|
return config;
|
||
|
}
|
||
|
|
||
|
@Identifier(value = "apiUrl", name = "单点登录接口路径", description = "描述", status = Status.SHOW)
|
||
|
private Conf<String> apiUrl = Holders.simple("http://IP地址:端口");
|
||
|
@Identifier(value = "clientId", name = "单点登录client_id", description = "单点登录client_id", status = Status.SHOW)
|
||
|
private Conf<String> clientId = Holders.simple("");
|
||
|
@Identifier(value = "frUrl", name = "单点登录帆软URL", description = "单点登录帆软URL", status = Status.SHOW)
|
||
|
private Conf<String> frUrl = Holders.simple("http://localhost:8075/webroot/decision");
|
||
|
@Identifier(value = "clientSecret", name = "单点登录clientSecret", description = "描述", status = Status.SHOW)
|
||
|
private Conf<String> clientSecret = Holders.simple("");
|
||
|
@Identifier(value = "syncSecret", name = "用户同步秘钥", description = "描述", status = Status.SHOW)
|
||
|
private Conf<String> syncSecret = Holders.simple("");
|
||
|
|
||
|
public String getSyncSecret() {
|
||
|
return syncSecret.get();
|
||
|
}
|
||
|
|
||
|
public void setSyncSecret(String syncSecret) {
|
||
|
this.syncSecret.set(syncSecret);
|
||
|
}
|
||
|
|
||
|
public String getApiUrl() {
|
||
|
return apiUrl.get();
|
||
|
}
|
||
|
|
||
|
public void setApiUrl(String apiUrl) {
|
||
|
this.apiUrl.set(apiUrl);
|
||
|
}
|
||
|
|
||
|
public String getClientId() {
|
||
|
return clientId.get();
|
||
|
}
|
||
|
|
||
|
public void setClientId(String clientId) {
|
||
|
this.clientId.set(clientId);
|
||
|
}
|
||
|
|
||
|
public String getFrUrl() {
|
||
|
return frUrl.get();
|
||
|
}
|
||
|
|
||
|
public void setFrUrl(String frUrl) {
|
||
|
this.frUrl.set(frUrl);
|
||
|
}
|
||
|
|
||
|
public String getClientSecret() {
|
||
|
return clientSecret.get();
|
||
|
}
|
||
|
|
||
|
public void setClientSecret(String clientSecret) {
|
||
|
this.clientSecret.set(clientSecret);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public Object clone() throws CloneNotSupportedException {
|
||
|
SYNCConfig cloned = (SYNCConfig) super.clone();
|
||
|
cloned.apiUrl = (Conf<String>) this.apiUrl.clone();
|
||
|
cloned.clientId = (Conf<String>) this.clientId.clone();
|
||
|
cloned.frUrl = (Conf<String>) this.frUrl.clone();
|
||
|
cloned.syncSecret = (Conf<String>) this.syncSecret.clone();
|
||
|
cloned.clientSecret = (Conf<String>) this.clientSecret.clone();
|
||
|
return cloned;
|
||
|
}
|
||
|
|
||
|
}
|