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.
94 lines
2.9 KiB
94 lines
2.9 KiB
package com.fr.plugin; |
|
|
|
import com.fr.config.*; |
|
import com.fr.config.holder.Conf; |
|
import com.fr.config.holder.factory.Holders; |
|
|
|
@Visualization(category = "冠捷_EK配置") |
|
public class GUANJIAConfig extends DefaultConfiguration { |
|
|
|
private static volatile GUANJIAConfig config = null; |
|
|
|
public static GUANJIAConfig getInstance() { |
|
if (config == null) { |
|
config = ConfigContext.getConfigInstance(GUANJIAConfig.class); |
|
} |
|
return config; |
|
} |
|
|
|
@Identifier(value = "sapIp", name = "sapIp", description = "描述", status = Status.SHOW, restart = true) |
|
private Conf<String> sapIp = Holders.simple("xxx"); |
|
@Identifier(value = "sysCode", name = "系统编号", description = "描述", status = Status.SHOW, restart = true) |
|
private Conf<String> sysCode = Holders.simple("xx"); |
|
@Identifier(value = "cusCode", name = "客户端编号", description = "描述", status = Status.SHOW, restart = true) |
|
private Conf<String> cusCode = Holders.simple("xx"); |
|
@Identifier(value = "userName", name = "用户名", description = "描述", status = Status.SHOW, restart = true) |
|
private Conf<String> userName = Holders.simple("xx"); |
|
@Identifier(value = "pwd", name = "密码", description = "描述", status = Status.SHOW, restart = true) |
|
private Conf<String> pwd = Holders.simple("xxx"); |
|
|
|
public String getSapIp() { |
|
return sapIp.get(); |
|
} |
|
|
|
public void setSapIp(String sapIp) { |
|
this.sapIp.set(sapIp); |
|
} |
|
|
|
public String getSysCode() { |
|
return sysCode.get(); |
|
} |
|
|
|
public void setSysCode(String sysCode) { |
|
this.sysCode.set(sysCode); |
|
} |
|
|
|
public String getCusCode() { |
|
return cusCode.get(); |
|
} |
|
|
|
public void setCusCode(String cusCode) { |
|
this.cusCode.set(cusCode); |
|
} |
|
|
|
public String getUserName() { |
|
return userName.get(); |
|
} |
|
|
|
public void setUserName(String userName) { |
|
this.userName.set(userName); |
|
} |
|
|
|
public String getPwd() { |
|
return pwd.get(); |
|
} |
|
|
|
public void setPwd(String pwd) { |
|
this.pwd.set(pwd); |
|
} |
|
|
|
@Identifier(value = "apiUrl", name = "apiUrl", description = "描述", status = Status.HIDE) |
|
private Conf<String> apiUrl = Holders.simple("http://172.20.0.1:8000/sap/zrestful_test?sap-client=150&RFC=ZRFC_OMP_DATAMASTER"); |
|
|
|
public String getApiUrl() { |
|
return apiUrl.get(); |
|
} |
|
|
|
public void setApiUrl(String apiUrl) { |
|
this.apiUrl.set(apiUrl); |
|
} |
|
|
|
@Override |
|
public Object clone() throws CloneNotSupportedException { |
|
GUANJIAConfig cloned = (GUANJIAConfig) super.clone(); |
|
cloned.apiUrl = (Conf<String>) this.apiUrl.clone(); |
|
cloned.pwd = (Conf<String>) this.pwd.clone(); |
|
cloned.userName = (Conf<String>) this.userName.clone(); |
|
cloned.cusCode = (Conf<String>) this.cusCode.clone(); |
|
cloned.sysCode = (Conf<String>) this.sysCode.clone(); |
|
cloned.sapIp = (Conf<String>) this.sapIp.clone(); |
|
|
|
return cloned; |
|
} |
|
|
|
} |