类 UserConfig

java.lang.Object
com.gdxsoft.easyweb.script.userConfig.UserConfig
所有已实现的接口:
Serializable, Cloneable

public class UserConfig extends Object implements Serializable, Cloneable
用户配置文件定义
作者:
Administrator
另请参阅:
  • 字段详细资料

    • CHECK_CHANG_SPAN_SECONDS

      public static int CHECK_CHANG_SPAN_SECONDS
      检查配置信息检查的间隔(秒)
  • 构造器详细资料

  • 方法详细资料

    • getXItemXmlTemplate

      public static String 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 name
      itemName - the configuration item name
      debugFrames - the DebugFrames
      返回:
      抛出:
      Exception
    • getConfigByPath

      public static IConfig getConfigByPath(String xmlPath)
      Get the configuration from all ScriptPaths
      参数:
      xmlPath - the configuration name
      返回:
      IConfig
    • getConfig

      public static IConfig getConfig(String xmlName, String itemName)
      Get the configuration from all ScriptPaths
      参数:
      xmlName - the configuration name
      itemName - the item name
      返回:
      IConfig
    • createConfig

      public static IConfig createConfig(ConfScriptPath sp, String xmlName, String itemName)
    • fromSerialize

      public static UserConfig fromSerialize(byte[] buf) throws IOException, ClassNotFoundException
      从序列化二进制中获取
      参数:
      buf -
      返回:
      抛出:
      IOException
      ClassNotFoundException
    • filterXmlName

      public static String filterXmlName(String xmlName)
      处理 xmlName 中的特殊字符
      参数:
      xmlName -
      返回:
    • filterXmlNameByJdbc

      public static String filterXmlNameByJdbc(String xmlName)
      处理 xmlName 中的特殊字符, 用于数据库调用
      参数:
      xmlName -
      返回:
    • getConfigType

      public IConfig getConfigType()
    • getConfigStatus

      public ConfigStatus getConfigStatus()
      获取配置文件状态
      返回:
    • loadUserDefined

      public void loadUserDefined() throws Exception
      抛出:
      Exception
    • getItemNodeXml

      public String getItemNodeXml()
    • changeSqlSetSql

      public boolean changeSqlSetSql(String callName, String newSql) throws Exception
      根据SqlSet的callName修改Action的Sql
      参数:
      callName - 例如:OnPageLoad Sql
      newSql - 需要修改的SQL
      返回:
      抛出:
      Exception
    • initXItem

      public void initXItem(Node node, String type) throws Exception
      初始化用户配置中的XItems/XItem中当前XItem信息
      参数:
      node -
      type - xitem,menu,workflow,chart,default
      抛出:
      Exception
    • toSerialize

      public byte[] toSerialize() throws IOException
      序列化表
      返回:
      抛出:
      IOException
    • getUserXItems

      public UserXItems getUserXItems()
      获取用户配置信息
      返回:
      the _Values
    • getXmlName

      public String getXmlName()
      返回:
      the _XmlName
    • setXmlName

      public void setXmlName(String xmlName)
      参数:
      xmlName - the _XmlName to set
    • getItemName

      public String getItemName()
      返回:
      the _ItemName
    • setItemName

      public void setItemName(String itemName)
      参数:
      itemName - the _ItemName to set
    • getUserActionItem

      public UserXItem getUserActionItem()
      返回:
      the _UserActionItem
    • getUserPageItem

      public UserXItem getUserPageItem()
      返回:
      the _UserPageItem
    • getUserMenuItems

      public UserXItems getUserMenuItems()
      返回:
      the _UserMenuItems
    • getUserPageInfos

      public UserXItems getUserPageInfos()
      返回:
      the _UserPageInfos
    • getUserWorkflows

      public UserXItems getUserWorkflows()
      获取工作流定义
      返回:
    • getDebugFrames

      public DebugFrames getDebugFrames()
    • setDebugFrames

      public void setDebugFrames(DebugFrames debugFrames)
    • getUserCharts

      public UserXItems getUserCharts()
      返回:
      the _UserCharts
    • getJS_XML

      public String getJS_XML()
      返回:
      the _JS_XML
    • setJS_XML

      public void setJS_XML(String _js_xml)
      参数:
      _js_xml - the _JS_XML to set
    • getValidXItem

      public UserXItem getValidXItem()
      the valid code item
      返回:
      item or null