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.
97 lines
3.0 KiB
97 lines
3.0 KiB
package com.eco.plugin.xx.xytsso.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.xytsso.config", text = "单点登录及用户同步配置", source = Original.PLUGIN) |
|
public static PluginSimpleConfig getInstance() { |
|
if (config == null) { |
|
config = ConfigContext.getConfigInstance(PluginSimpleConfig.class); |
|
} |
|
return config; |
|
} |
|
|
|
@Identifier(value = "apptoken", name = "AppToken", description = "AppToken", status = Status.SHOW) |
|
private Conf<String> apptoken = Holders.simple(""); |
|
|
|
@Identifier(value = "secret", name = "私钥", description = "私钥", status = Status.SHOW) |
|
private Conf<String> secret = Holders.simple(""); |
|
|
|
@Identifier(value = "orgdomainurl", name = "获取组织域列表接口", description = "获取组织域列表接口", status = Status.SHOW) |
|
private Conf<String> orgdomainurl = Holders.simple(""); |
|
|
|
@Identifier(value = "orgversionurl", name = "获取组织域版本接口", description = "获取组织域版本接口", status = Status.SHOW) |
|
private Conf<String> orgversionurl = Holders.simple(""); |
|
|
|
@Identifier(value = "depturl", name = "获取部门列表接口", description = "获取部门列表接口", status = Status.SHOW) |
|
private Conf<String> depturl = Holders.simple(""); |
|
|
|
@Identifier(value = "deptuserurl", name = "获取部门人员接口", description = "获取部门人员接口", status = Status.SHOW) |
|
private Conf<String> deptuserurl = Holders.simple(""); |
|
|
|
public String getApptoken() { |
|
return apptoken.get(); |
|
} |
|
|
|
public void setApptoken(String url) { |
|
this.apptoken.set(url); |
|
} |
|
|
|
public String getSecret() { |
|
return secret.get(); |
|
} |
|
|
|
public void setSecret(String url) { |
|
this.secret.set(url); |
|
} |
|
|
|
public String getOrgdomainurl() { |
|
return orgdomainurl.get(); |
|
} |
|
|
|
public void setOrgdomainurl(String url) { |
|
this.orgdomainurl.set(url); |
|
} |
|
|
|
public String getDepturl() { |
|
return depturl.get(); |
|
} |
|
|
|
public void setDepturl(String url) { |
|
this.depturl.set(url); |
|
} |
|
|
|
public String getOrgversionurl() { |
|
return orgversionurl.get(); |
|
} |
|
|
|
public void setOrgversionurl(String url) { |
|
this.orgversionurl.set(url); |
|
} |
|
|
|
public String getDeptuserurl() { |
|
return deptuserurl.get(); |
|
} |
|
|
|
public void setDeptuserurl(String url) { |
|
this.deptuserurl.set(url); |
|
} |
|
|
|
@Override |
|
public Object clone() throws CloneNotSupportedException { |
|
PluginSimpleConfig cloned = (PluginSimpleConfig) super.clone(); |
|
|
|
return cloned; |
|
} |
|
|
|
}
|
|
|