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.
100 lines
2.8 KiB
100 lines
2.8 KiB
3 years ago
|
package com.eco.plugin.xx.bssso.config;
|
||
|
|
||
|
import com.fr.config.*;
|
||
|
import com.fr.config.holder.Conf;
|
||
|
import com.fr.config.holder.factory.Holders;
|
||
|
import com.fr.intelli.record.Focus;
|
||
|
import com.fr.intelli.record.Original;
|
||
|
import com.fr.record.analyzer.EnableMetrics;
|
||
|
|
||
|
@Visualization(category = "单点登录配置")
|
||
|
@EnableMetrics
|
||
|
public class PluginSimpleConfig extends DefaultConfiguration {
|
||
|
|
||
|
private static volatile PluginSimpleConfig config = null;
|
||
|
|
||
|
@Focus(id="com.eco.plugin.xx.bssso.config", text = "单点登录配置", source = Original.PLUGIN)
|
||
|
public static PluginSimpleConfig getInstance() {
|
||
|
if (config == null) {
|
||
|
config = ConfigContext.getConfigInstance(PluginSimpleConfig.class);
|
||
|
}
|
||
|
return config;
|
||
|
}
|
||
|
|
||
|
@Identifier(value = "clientId", name = "应用id", description = "应用id", status = Status.SHOW)
|
||
|
private Conf<String> clientId = Holders.simple("");
|
||
|
|
||
|
@Identifier(value = "secret", name = "密钥", description = "密钥", status = Status.SHOW)
|
||
|
private Conf<String> secret = Holders.simple("");
|
||
|
|
||
|
@Identifier(value = "ssoprefix", name = "统一平台前缀", description = "统一平台前缀", status = Status.SHOW)
|
||
|
private Conf<String> ssoprefix = Holders.simple("");
|
||
|
|
||
|
@Identifier(value = "logoutUrl", name = "登出跳转地址", description = "登出跳转地址", status = Status.SHOW)
|
||
|
private Conf<String> logoutUrl = Holders.simple("");
|
||
|
|
||
|
@Identifier(value = "qxurl", name = "应用权限接口", description = "应用权限接口", status = Status.SHOW)
|
||
|
private Conf<String> qxurl = Holders.simple("");
|
||
|
|
||
|
@Identifier(value = "index", name = "帆软首页", description = "帆软首页", status = Status.SHOW)
|
||
|
private Conf<String> index = Holders.simple("");
|
||
|
|
||
|
public String getQxurl() {
|
||
|
return qxurl.get();
|
||
|
}
|
||
|
|
||
|
public void setQxurl(String url) {
|
||
|
this.qxurl.set(url);
|
||
|
}
|
||
|
|
||
|
|
||
|
public String getClientId() {
|
||
|
return clientId.get();
|
||
|
}
|
||
|
|
||
|
public void setClientId(String url) {
|
||
|
this.clientId.set(url);
|
||
|
}
|
||
|
|
||
|
public String getSsoprefix() {
|
||
|
return ssoprefix.get();
|
||
|
}
|
||
|
|
||
|
public void setSsoprefix(String url) {
|
||
|
this.ssoprefix.set(url);
|
||
|
}
|
||
|
|
||
|
public String getSecret() {
|
||
|
return secret.get();
|
||
|
}
|
||
|
|
||
|
public void setSecret(String url) {
|
||
|
this.secret.set(url);
|
||
|
}
|
||
|
|
||
|
public String getLogoutUrl() {
|
||
|
return logoutUrl.get();
|
||
|
}
|
||
|
|
||
|
public void setLogoutUrl(String url) {
|
||
|
this.logoutUrl.set(url);
|
||
|
}
|
||
|
|
||
|
public String getIndex() {
|
||
|
return index.get();
|
||
|
}
|
||
|
|
||
|
public void setIndex(String url) {
|
||
|
this.index.set(url);
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public Object clone() throws CloneNotSupportedException {
|
||
|
PluginSimpleConfig cloned = (PluginSimpleConfig) super.clone();
|
||
|
return cloned;
|
||
|
}
|
||
|
|
||
|
}
|