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.
85 lines
3.3 KiB
85 lines
3.3 KiB
package com.fr.plugin.teshe.conf; |
|
|
|
import com.fr.design.actions.file.export.ExcelExportAction; |
|
import com.fr.stable.StringUtils; |
|
import com.fr.stable.xml.XMLReadable; |
|
import com.fr.stable.xml.XMLableReader; |
|
|
|
public class ConfigXmlReader implements XMLReadable { |
|
|
|
private static ConfigXmlReader instance; |
|
|
|
public static ConfigXmlReader getInstance(){ |
|
if(instance == null){ |
|
instance = new ConfigXmlReader(); |
|
} |
|
return instance; |
|
} |
|
|
|
public String tokenReqUrl = ""; //获取token |
|
public String secondOrgReqUrl = ""; //获取二级单位i |
|
public String orgReqUrl = ""; //获取该provinceId下所有机构 |
|
public String orgNextReqUrl = ""; //获取下级机构 |
|
public String personReqUrl = ""; //获取该机构下的员工 |
|
public String personStationUrl = "";//获取用户岗位 |
|
public String personMainStationUrl = "";//获取用户主岗位 |
|
public String orgPathUrl = "";//根据岗位,部门,机构获取全路径 |
|
public String searchPersonReqUrl = ""; //获取该机构下的员工 |
|
public String getOrgDepUrl = ""; //获取部门信息 |
|
public String getOrgUnit = ""; //获取单位信息 |
|
public String clientId = ""; |
|
public String clientSecret = ""; |
|
public long delay_duration = 1000*60*20; |
|
//public long timer_duration = 1000 * 60 ; |
|
public long timer_duration = 1000 * 60 * 60 * 24; |
|
|
|
@Override |
|
public void readXML(XMLableReader reader) { |
|
if (reader.isChildNode()) { |
|
String name = reader.getTagName(); |
|
if(name.equals("tokenReqUrl")){ |
|
this.tokenReqUrl = StringUtils.trim(reader.getElementValue()); |
|
} |
|
if(name.equals("secondOrgReqUrl")){ |
|
this.secondOrgReqUrl = StringUtils.trim(reader.getElementValue()); |
|
} |
|
if(name.equals("orgReqUrl")){ |
|
this.orgReqUrl = StringUtils.trim(reader.getElementValue()); |
|
} |
|
if(name.equals("orgNextReqUrl")){ |
|
this.orgNextReqUrl = StringUtils.trim(reader.getElementValue()); |
|
} |
|
if(name.equals("personReqUrl")){ |
|
this.personReqUrl = StringUtils.trim(reader.getElementValue()); |
|
} |
|
if(name.equals("personMainStationUrl")){ |
|
this.personMainStationUrl = StringUtils.trim(reader.getElementValue()); |
|
} |
|
|
|
if(name.equals("searchPersonReqUrl")){ |
|
this.searchPersonReqUrl = StringUtils.trim(reader.getElementValue()); |
|
} |
|
|
|
if(name.equals("getOrgDepUrl")){ |
|
this.getOrgDepUrl = StringUtils.trim(reader.getElementValue()); |
|
} |
|
|
|
if(name.equals("getOrgUnit")){ |
|
this.getOrgUnit = StringUtils.trim(reader.getElementValue()); |
|
} |
|
if(name.equals("personStationUrl")){ |
|
this.personStationUrl = StringUtils.trim(reader.getElementValue()); |
|
} |
|
if(name.equals("orgPathUrl")){ |
|
this.orgPathUrl = StringUtils.trim(reader.getElementValue()); |
|
} |
|
|
|
if(name.equals("clientId")){ |
|
this.clientId = StringUtils.trim(reader.getElementValue()); |
|
} |
|
if(name.equals("clientSecret")){ |
|
this.clientSecret = StringUtils.trim(reader.getElementValue()); |
|
} |
|
} |
|
} |
|
}
|
|
|