JSD-9434 门户集成+消息推送
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.

129 lines
4.1 KiB

package com.fr.plugin.xxxx.fymh.sso;
import com.fr.config.*;
import com.fr.config.holder.Conf;
import com.fr.config.holder.factory.Holders;
import com.fr.stable.StringUtils;
/**
* @author fr.open
* @since 2021/12/04
*/
@Visualization(category = "门户配置")
public class FeiYuSsoConfig extends DefaultConfiguration {
private static volatile FeiYuSsoConfig config = null;
public static FeiYuSsoConfig getInstance() {
if (config == null) {
config = ConfigContext.getConfigInstance(FeiYuSsoConfig.class);
}
return config;
}
@Identifier(value = "debugSwitch", name = "插件调试开关", description = "日志调试模式", status = Status.SHOW)
private Conf<Boolean> debugSwitch = Holders.simple(true);
public Boolean getDebugSwitch() {
return this.debugSwitch.get();
}
public void setDebugSwitch(Boolean debugSwitch) {
this.debugSwitch.set(debugSwitch);
}
@Identifier(value = "authUser", name = "授权账户", description = "授权账户", status = Status.SHOW)
private Conf<String> authUser = Holders.simple(StringUtils.EMPTY);
public String getAuthUser() {
return this.authUser.get();
}
public void setAuthUser(String authUser) {
this.authUser.set(authUser);
}
@Identifier(value = "authPass", name = "授权密码", description = "授权密码", status = Status.SHOW)
private Conf<String> authPass = Holders.simple(StringUtils.EMPTY);
public String getAuthPass() {
return this.authPass.get();
}
public void setAuthPass(String authPass) {
this.authPass.set(authPass);
}
@Identifier(value = "infoUrl", name = "用户信息接口地址", description = "用户信息接口地址", status = Status.SHOW)
private Conf<String> infoUrl = Holders.simple(StringUtils.EMPTY);
public String getInfoUrl() {
return this.infoUrl.get();
}
public void setInfoUrl(String infoUrl) {
this.infoUrl.set(infoUrl);
}
@Identifier(value = "clientId", name = "客⼾端ID", description = "客⼾端ID", status = Status.SHOW)
private Conf<String> clientId = Holders.simple(StringUtils.EMPTY);
public String getClientId() {
return this.clientId.get();
}
public void setClientId(String clientId) {
this.clientId.set(clientId);
}
@Identifier(value = "clientSecret", name = "客⼾端密钥", description = "客⼾端密钥", status = Status.SHOW)
private Conf<String> clientSecret = Holders.simple(StringUtils.EMPTY);
public String getClientSecret() {
return this.clientSecret.get();
}
public void setClientSecret(String clientSecret) {
this.clientSecret.set(clientSecret);
}
@Identifier(value = "tokenUrl", name = "获取token的地址", description = "获取token的地址⼾端密钥", status = Status.SHOW)
private Conf<String> tokenUrl = Holders.simple(StringUtils.EMPTY);
public String getTokenUrl() {
return this.tokenUrl.get();
}
public void setTokenUrl(String tokenUrl) {
this.tokenUrl.set(tokenUrl);
}
@Identifier(value = "todoUrl", name = "推送待办地址", description = "推送待办地址", status = Status.SHOW)
private Conf<String> todoUrl = Holders.simple(StringUtils.EMPTY);
public String getTodoUrl() {
return this.todoUrl.get();
}
public void setTodoUrl(String todoUrl) {
this.todoUrl.set(todoUrl);
}
@Override
public Object clone() throws CloneNotSupportedException {
FeiYuSsoConfig cloned = (FeiYuSsoConfig) super.clone();
cloned.debugSwitch = (Conf<Boolean>) debugSwitch.clone();
cloned.authUser = (Conf<String>) authUser.clone();
cloned.authPass = (Conf<String>) authPass.clone();
cloned.infoUrl = (Conf<String>) infoUrl.clone();
cloned.clientId = (Conf<String>) clientId.clone();
cloned.clientSecret = (Conf<String>) clientSecret.clone();
cloned.tokenUrl = (Conf<String>) tokenUrl.clone();
cloned.todoUrl = (Conf<String>) todoUrl.clone();
return cloned;
}
}