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.
65 lines
2.2 KiB
65 lines
2.2 KiB
package com.eco.plugin.xxx.dapsso; |
|
|
|
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.record.analyzer.EnableMetrics; |
|
import com.fr.stable.StringUtils; |
|
|
|
@Visualization(category = "Plugin-Config_Login") |
|
@EnableMetrics |
|
public class AccessKeyConfig extends DefaultConfiguration { |
|
|
|
public static volatile AccessKeyConfig config = null; |
|
|
|
@Focus(id = "com.eco.plugin.xxx.dapsso", text = "DAP_SSO") |
|
public static AccessKeyConfig getInstance() { |
|
if (config == null) { |
|
config = ConfigContext.getConfigInstance(AccessKeyConfig.class); |
|
} |
|
return config; |
|
} |
|
|
|
@Identifier(value = "accessKey", name = "Plugin-Config_Property_AccessKey", description = "Plugin-Config_Property_AccessKey_Description", status = Status.SHOW) |
|
private Conf<String> accessKey = Holders.simple(StringUtils.EMPTY); |
|
|
|
@Identifier(value = "authURL", name = "Plugin-Config_Property_AuthURL", description = "Plugin-Config_Property_AuthURL_Description", status = Status.SHOW) |
|
private Conf<String> authURL = Holders.simple(StringUtils.EMPTY); |
|
|
|
@Identifier(value = "redirectURL", name = "Plugin-Config_Property_RedirectURL", description = "Plugin-Config_Property_RedirectURL_Description", status = Status.HIDE) |
|
private Conf<String> redirectURL = Holders.simple(StringUtils.EMPTY); |
|
|
|
public String getAccessKey() { |
|
return accessKey.get(); |
|
} |
|
|
|
public void setAccessKey(String accessKey) { |
|
this.accessKey.set(accessKey); |
|
} |
|
|
|
public String getRedirectURL() { |
|
return redirectURL.get(); |
|
} |
|
|
|
public void setRedirectURL(String redirectURL){ |
|
this.redirectURL.set(redirectURL); |
|
} |
|
|
|
public String getAuthURL() { |
|
return authURL.get(); |
|
} |
|
|
|
public void setAuthURL(String authURL){ |
|
this.authURL.set(authURL); |
|
} |
|
|
|
|
|
@Override |
|
public Object clone() throws CloneNotSupportedException { |
|
AccessKeyConfig cloned = (AccessKeyConfig) super.clone(); |
|
// cloned.appCode = (Conf<String>) appCode.clone(); |
|
// cloned.redirectURL = (Conf<String>) redirectURL.clone(); |
|
return cloned; |
|
} |
|
}
|
|
|