$vs.propertiesGuthonScript语言中提供配置文件读取算法工具类的对象,具体方法定义如下:

  • $vs.properties.getProperty($key:string):string

    • 函数说明:
      获取配置变量值。
    • 参数说明:
      $key:string: 配置键值,如:spring.application.name
    • 返回说明:
      对应的配置值
  • $vs.properties.getProperty($key:string,$defValue:string):string

    • 函数说明:
      获取配置变量值。
    • 参数说明:
      $key:string: 配置键值,如:spring.application.name
      $defValue:string: 默认值
    • 返回说明:
      对应的配置值
  • $vs.properties.getRegDate():Date

    • 函数说明:
      获取授权日期。
    • 参数说明:
      N/A
    • 返回说明:
      开发环境无法获取
  • $vs.properties.getRegDisabledMenus():Map<String, List>

    • 函数说明:
      获取禁用菜单(null or empty 表示无)。
    • 参数说明:
      N/A
    • 返回说明:
      开发环境无法获取;数据格式:Map<String, List>
  • $vs.properties.getRegLastDate():Date

    • 函数说明:
      获取授权截止日期。
    • 参数说明:
      N/A
    • 返回说明:
      开发环境无法获取
  • $vs.properties.getRegMaxOrg():int

    • 函数说明:
      获取授权文件里的授权最大机构数。
    • 参数说明:
      N/A
    • 返回说明:
      开发环境无法获取;0 表示不限; -1 表示开发环境
  • $vs.properties.getRegMaxUser():int

    • 函数说明:
      获取授权文件里的授权用户数。
    • 参数说明:
      N/A
    • 返回说明:
      开发环境无法获取;0 表示不限; -1 表示开发环境;注意:用户数为启用用户数,对于停用用户不在计数之内;若启用用户数超过规定数,则系统自动禁用相关多余的账户
  • $vs.properties.getRegModels():Map<String, List>

    • 函数说明:
      获取授权模块列表(null or empty 表示所有模块)。
    • 参数说明:
      N/A
    • 返回说明:
      开发环境无法获取;数据格式:Map<String, List>
  • $vs.properties.getRegOtherConfig():map

    • 函数说明:
      获取授权文件中其他配置项。
    • 参数说明:
      N/A
    • 返回说明:
      开发环境无法获取
  • $vs.properties.getRegPublisher():string

    • 函数说明:
      获取授权文件颁发单位名称。
    • 参数说明:
      N/A
    • 返回说明:
      开发环境无法获取
  • $vs.properties.getRegSystems():map

    • 函数说明:
      获取授权文件里授权的系统编码。
    • 参数说明:
      N/A
    • 返回说明:
      开发环境无法获取;数据格式:Map<systemId,systemName>
  • $vs.properties.getRegUnitName():string

    • 函数说明:
      获取授权文件使用单位名称。
    • 参数说明:
      N/A
    • 返回说明:
      开发环境无法获取
  • $vs.properties.getSystemVarValue($varId:string):string

    • 函数说明:
      获取应用参数配置值。
    • 参数说明:
      $varId:string: 参数编码,如:com.golden.bdp.color
    • 返回说明:
      对应的配置值,若参数不存在,则返回null
  • $vs.properties.getSystemVarValue($varId:string,$defValue:string):string

    • 函数说明:
      获取应用参数配置值。
    • 参数说明:
      $varId:string: 参数编码,如:com.golden.bdp.color
      $defValue:string: 默认值
    • 返回说明:
      对应的配置值,若参数不存在,则返回$defValue
文档更新时间: 2022-02-25 15:52   作者:姜一维