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.

165 lines
5.4 KiB

3 years ago
package com.fr.plugin.xx.gxkg.conf;
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;
import com.fr.stable.StringUtils;
/**
* @author xx
* @date 2021/11/04
*/
@Visualization(category = "国新控股单点配置")
@EnableMetrics
public class GxkgSsoConfig extends DefaultConfiguration {
private static volatile GxkgSsoConfig config = null;
@Focus(id="com.fr.plugin.sso.sykg.extra", text = "SYKG-SSO配置", source = Original.PLUGIN)
public static GxkgSsoConfig getInstance() {
if (config == null) {
config = ConfigContext.getConfigInstance(GxkgSsoConfig.class);
}
return config;
}
@Identifier(value = "debugSwitch", name = "日志调试模式", description = "日志调试模式", status = Status.SHOW)
private Conf<Boolean> debugSwitch = Holders.simple(true);
public Boolean getdebugSwitch() { return debugSwitch.get(); }
public void setdebugSwitch(Boolean debugSwitch) { this.debugSwitch.set(debugSwitch); }
@Identifier(value = "redirect", name = "帆软服务回跳地址", description = "帆软服务回跳地址,http://ip:port/webroot/decision", status = Status.SHOW)
private Conf<String> redirect = Holders.simple(StringUtils.EMPTY);
public String getRedirect() {
return redirect.get();
}
public void setRedirect(String redirect) {
this.redirect.set(redirect);
}
@Identifier(value = "loginUrl", name = "跳转登录地址", description = "跳转登录地址,http://ip:port/idp/authCenter/authenticate", status = Status.SHOW)
private Conf<String> loginUrl = Holders.simple(StringUtils.EMPTY);
public String getLoginUrl() {
return loginUrl.get();
}
public void setLoginUrl(String loginUrl) {
this.loginUrl.set(loginUrl);
}
@Identifier(value = "tokenUrl", name = "获取token地址", description = "获取token地址,http://ip:port/bam-protocol-service/oauth2/getToken", status = Status.SHOW)
private Conf<String> tokenUrl = Holders.simple(StringUtils.EMPTY);
public String getTokenUrl() {
return tokenUrl.get();
}
public void setTokenUrl(String tokenUrl) {
this.tokenUrl.set(tokenUrl);
}
@Identifier(value = "userUrl", name = "获取用户信息地址", description = "获取用户信息地址,http://ip:port/bam-protocol-service/oauth2/getUserInfo", status = Status.SHOW)
private Conf<String> userUrl = Holders.simple(StringUtils.EMPTY);
public String getUserUrl() {
return userUrl.get();
}
@Identifier(value = "logoutUrl", name = "登出路径地址", description = "登出路径地址,http://ip:port/idp/authCenter/GLO", status = Status.SHOW)
private Conf<String> logoutUrl = Holders.simple(StringUtils.EMPTY);
public String getLogoutUrl() {
return logoutUrl.get();
}
public void setLogoutUrl(String logoutUrl) {
this.logoutUrl.set(logoutUrl);
}
@Identifier(value = "clientId", name = "clientId", description = "clientId", status = Status.SHOW)
private Conf<String> clientId = Holders.simple(StringUtils.EMPTY);
public String getClientId() {
return clientId.get();
}
public void setClientId(String clientId) {
this.clientId.set(clientId);
}
@Identifier(value = "clientSecret", name = "clientSecret", description = "clientSecret", status = Status.SHOW)
private Conf<String> clientSecret = Holders.simple(StringUtils.EMPTY);
public String getClientSecret() {
return clientSecret.get();
}
public void setClientSecret(String clientSecret) {
this.clientSecret.set(clientSecret);
}
@Identifier(value = "decodePwd", name = "报文解密秘钥", description = "报文解密秘钥", status = Status.SHOW)
private Conf<String> decodePwd = Holders.simple(StringUtils.EMPTY);
public String getDecodePwd() {
return decodePwd.get();
}
public void setDecodePwd(String decodePwd) {
this.decodePwd.set(decodePwd);
}
@Identifier(value = "syncUser", name = "同步授权用户", description = "同步授权用户", status = Status.SHOW)
private Conf<String> syncUser = Holders.simple(StringUtils.EMPTY);
public String getSyncUser() {
return syncUser.get();
}
public void setSyncUser(String syncUser) {
this.syncUser.set(syncUser);
}
@Identifier(value = "syncPass", name = "同步授权用户密码", description = "同步授权用户密码", status = Status.SHOW)
private Conf<String> syncPass = Holders.simple(StringUtils.EMPTY);
public String getSyncPass() {
return syncPass.get();
}
public void setSyncPass(String syncPass) {
this.syncPass.set(syncPass);
}
@Identifier(value = "defaultPost", name = "默认职位", description = "默认职位", status = Status.SHOW)
private Conf<String> defaultPost = Holders.simple("部门成员");
public String getDefaultPost() {
return defaultPost.get();
}
public void setDefaultPost(String defaultPost) {
this.defaultPost.set(defaultPost);
}
@Override
public Object clone() throws CloneNotSupportedException {
GxkgSsoConfig cloned = (GxkgSsoConfig) super.clone();
cloned.debugSwitch = (Conf<Boolean>) debugSwitch.clone();
return cloned;
}
}