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.
70 lines
2.2 KiB
70 lines
2.2 KiB
package com.fr.plugin; |
|
|
|
import com.fr.config.*; |
|
import com.fr.config.holder.Conf; |
|
import com.fr.config.holder.factory.Holders; |
|
|
|
@Visualization(category = "IAM单点登录配置") |
|
public class Oauth2Config extends DefaultConfiguration { |
|
|
|
private static volatile Oauth2Config config = null; |
|
|
|
public static Oauth2Config getInstance() { |
|
if (config == null) { |
|
config = ConfigContext.getConfigInstance(Oauth2Config.class); |
|
} |
|
return config; |
|
} |
|
|
|
@Identifier(value = "valAddr", name = "接口地址", description = "接口地址", status = Status.SHOW) |
|
private Conf<String> valAddr = Holders.simple(""); |
|
@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(""); |
|
|
|
public String getFrUrl() { |
|
return frUrl.get(); |
|
} |
|
|
|
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 void setValAddr(String valAddr) { |
|
this.valAddr.set(valAddr); |
|
} |
|
|
|
@Override |
|
public Object clone() throws CloneNotSupportedException { |
|
Oauth2Config cloned = (Oauth2Config) super.clone(); |
|
cloned.valAddr = (Conf<String>) valAddr.clone(); |
|
cloned.appId = (Conf<String>) appId.clone(); |
|
cloned.clientSecret = (Conf<String>) clientSecret.clone(); |
|
cloned.frUrl = (Conf<String>) frUrl.clone(); |
|
return cloned; |
|
} |
|
|
|
} |