类 UserConfig
java.lang.Object
com.gdxsoft.easyweb.script.userConfig.UserConfig
- 所有已实现的接口:
Serializable,Cloneable
用户配置文件定义
- 作者:
- Administrator
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanchangeSqlSetSql(String callName, String newSql) 根据SqlSet的callName修改Action的Sqlstatic IConfigcreateConfig(ConfScriptPath sp, String xmlName, String itemName) static StringfilterXmlName(String xmlName) 处理 xmlName 中的特殊字符static StringfilterXmlNameByJdbc(String xmlName) 处理 xmlName 中的特殊字符, 用于数据库调用static UserConfigfromSerialize(byte[] buf) 从序列化二进制中获取static IConfigGet the configuration from all ScriptPathsstatic IConfiggetConfigByPath(String xmlPath) Get the configuration from all ScriptPaths获取配置文件状态获取工作流定义获取用户配置信息the valid code itemstatic String获取默认的XItem的xml模板,用于自定义字段显示,参数:
[NAME]
[DES_INFO_ZHCN]
[DES_MEMO_ZHCN]
[DES_INFO_ENUS]
[DES_MEMO_ENUS]
[DATA_FIELD]
[DATA_TYPE]
[DATA_FORMAT]void初始化用户配置中的XItems/XItem中当前XItem信息static UserConfiginstance(String xmlName, String itemName, DebugFrames debugFrames) Get a UserConfig instance from all configurationsvoidvoidsetDebugFrames(DebugFrames debugFrames) voidsetItemName(String itemName) voidvoidsetXmlName(String xmlName) byte[]序列化表
-
字段详细资料
-
CHECK_CHANG_SPAN_SECONDS
public static int CHECK_CHANG_SPAN_SECONDS检查配置信息检查的间隔(秒)
-
-
构造器详细资料
-
UserConfig
public UserConfig() -
UserConfig
- 抛出:
Exception
-
-
方法详细资料
-
getXItemXmlTemplate
获取默认的XItem的xml模板,用于自定义字段显示,参数:
[NAME]
[DES_INFO_ZHCN]
[DES_MEMO_ZHCN]
[DES_INFO_ENUS]
[DES_MEMO_ENUS]
[DATA_FIELD]
[DATA_TYPE]
[DATA_FORMAT]- 返回:
- XItem的xml模板
-
instance
public static UserConfig instance(String xmlName, String itemName, DebugFrames debugFrames) throws Exception Get a UserConfig instance from all configurations- 参数:
xmlName- the configuration XML file nameitemName- the configuration item namedebugFrames- the DebugFrames- 返回:
- 抛出:
Exception
-
getConfigByPath
Get the configuration from all ScriptPaths- 参数:
xmlPath- the configuration name- 返回:
- IConfig
-
getConfig
Get the configuration from all ScriptPaths- 参数:
xmlName- the configuration nameitemName- the item name- 返回:
- IConfig
-
createConfig
-
fromSerialize
从序列化二进制中获取- 参数:
buf-- 返回:
- 抛出:
IOExceptionClassNotFoundException
-
filterXmlName
处理 xmlName 中的特殊字符- 参数:
xmlName-- 返回:
-
filterXmlNameByJdbc
处理 xmlName 中的特殊字符, 用于数据库调用- 参数:
xmlName-- 返回:
-
getConfigType
-
getConfigStatus
获取配置文件状态- 返回:
-
loadUserDefined
- 抛出:
Exception
-
getItemNodeXml
-
changeSqlSetSql
根据SqlSet的callName修改Action的Sql- 参数:
callName- 例如:OnPageLoad SqlnewSql- 需要修改的SQL- 返回:
- 抛出:
Exception
-
initXItem
初始化用户配置中的XItems/XItem中当前XItem信息- 参数:
node-type- xitem,menu,workflow,chart,default- 抛出:
Exception
-
toSerialize
序列化表- 返回:
- 抛出:
IOException
-
getUserXItems
获取用户配置信息- 返回:
- the _Values
-
getXmlName
- 返回:
- the _XmlName
-
setXmlName
- 参数:
xmlName- the _XmlName to set
-
getItemName
- 返回:
- the _ItemName
-
setItemName
- 参数:
itemName- the _ItemName to set
-
getUserActionItem
- 返回:
- the _UserActionItem
-
getUserPageItem
- 返回:
- the _UserPageItem
-
getUserMenuItems
- 返回:
- the _UserMenuItems
-
getUserPageInfos
- 返回:
- the _UserPageInfos
-
getUserWorkflows
获取工作流定义- 返回:
-
getDebugFrames
-
setDebugFrames
-
getUserCharts
- 返回:
- the _UserCharts
-
getJS_XML
- 返回:
- the _JS_XML
-
setJS_XML
- 参数:
_js_xml- the _JS_XML to set
-
getValidXItem
the valid code item- 返回:
- item or null
-