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.
133 lines
3.9 KiB
133 lines
3.9 KiB
package com.fr.plugin.rcsso.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.fr.plugin.xxw.config", text = "单点登录配置", source = Original.PLUGIN) |
|
public static PluginSimpleConfig getInstance() { |
|
if (config == null) { |
|
config = ConfigContext.getConfigInstance(PluginSimpleConfig.class); |
|
} |
|
return config; |
|
} |
|
|
|
@Identifier(value = "tokenStr", name = "参数名称", description = "参数名称", status = Status.SHOW) |
|
private Conf<String> tokenStr = Holders.simple("tokenid"); |
|
|
|
@Identifier(value = "pkey", name = "秘钥", description = "秘钥", status = Status.SHOW) |
|
private Conf<String> pkey = Holders.simple(""); |
|
|
|
@Identifier(value = "clientId", name = "clientId", description = "clientId", status = Status.SHOW) |
|
private Conf<String> clientId = Holders.simple(""); |
|
|
|
@Identifier(value = "secret", name = "secret", description = "secret", status = Status.SHOW) |
|
private Conf<String> secret = Holders.simple(""); |
|
|
|
@Identifier(value = "authurl", name = "authorize接口", description = "authorize接口", status = Status.SHOW) |
|
private Conf<String> authurl = Holders.simple(""); |
|
|
|
@Identifier(value = "token", name = "tokens接口", description = "tokens接口", status = Status.SHOW) |
|
private Conf<String> token = Holders.simple(""); |
|
|
|
@Identifier(value = "user", name = "获取用户信息接口", description = "获取用户信息接口", status = Status.SHOW) |
|
private Conf<String> user = Holders.simple(""); |
|
|
|
@Identifier(value = "logout", name = "单点登出接口", description = "单点登出接口", status = Status.SHOW) |
|
private Conf<String> logout = Holders.simple(""); |
|
|
|
@Identifier(value = "index", name = "FR首页", description = "FR首页", status = Status.SHOW) |
|
private Conf<String> index = Holders.simple(""); |
|
|
|
public String getTokenStr() { |
|
return tokenStr.get(); |
|
} |
|
|
|
public void setTokenStr(String url) { |
|
this.tokenStr.set(url); |
|
} |
|
|
|
public String getPkey() { |
|
return pkey.get(); |
|
} |
|
|
|
public void setPkey(String url) { |
|
this.pkey.set(url); |
|
} |
|
|
|
public String getClientId() { |
|
return clientId.get(); |
|
} |
|
|
|
public void setClientId(String url) { |
|
this.clientId.set(url); |
|
} |
|
|
|
public String getSecret() { |
|
return secret.get(); |
|
} |
|
|
|
public void setSecret(String url) { |
|
this.secret.set(url); |
|
} |
|
|
|
public String getAuthurl() { |
|
return authurl.get(); |
|
} |
|
|
|
public void setAuthurl(String url) { |
|
this.authurl.set(url); |
|
} |
|
|
|
public String getToken() { |
|
return token.get(); |
|
} |
|
|
|
public void setToken(String url) { |
|
this.token.set(url); |
|
} |
|
|
|
public String getUser() { |
|
return user.get(); |
|
} |
|
|
|
public void setUser(String url) { |
|
this.user.set(url); |
|
} |
|
|
|
public String getLogout() { |
|
return logout.get(); |
|
} |
|
|
|
public void setLogout(String url) { |
|
this.logout.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(); |
|
// cloned.text = (Conf<String>) text.clone(); |
|
// cloned.count = (Conf<Integer>) count.clone(); |
|
// cloned.price = (Conf<Double>) price.clone(); |
|
// cloned.time = (Conf<Long>) time.clone(); |
|
// cloned.student = (Conf<Boolean>) student.clone(); |
|
return cloned; |
|
} |
|
|
|
}
|
|
|