$vs.properties
是GuthonScript
语言中提供配置文件读取算法工具类的对象,具体方法定义如下:
- $vs.properties.getProperty($key:string):string
- $vs.properties.getProperty($key:string,$defValue:string):string
- $vs.properties.getRegDate():Date
- $vs.properties.getRegDisabledMenus():Map<String, List
> - $vs.properties.getRegLastDate():Date
- $vs.properties.getRegMaxOrg():int
- $vs.properties.getRegMaxUser():int
- $vs.properties.getRegModels():Map<String, List
> - $vs.properties.getRegOtherConfig():map
- $vs.properties.getRegPublisher():string
- $vs.properties.getRegSystems():map
- $vs.properties.getRegUnitName():string
- $vs.properties.getSystemVarValue($varId:string):string
- $vs.properties.getSystemVarValue($varId:string,$defValue:string):string
$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.getRegDisabledMenus():Map<String, List
> - 函数说明:
获取禁用菜单(null or empty 表示无)。 - 参数说明:
N/A - 返回说明:
开发环境无法获取;数据格式:Map<String, List>
- 函数说明:
$vs.properties.getRegMaxUser():int
- 函数说明:
获取授权文件里的授权用户数。 - 参数说明:
N/A - 返回说明:
开发环境无法获取;0 表示不限; -1 表示开发环境;注意:用户数为启用用户数,对于停用用户不在计数之内;若启用用户数超过规定数,则系统自动禁用相关多余的账户
- 函数说明:
$vs.properties.getRegModels():Map<String, List
> - 函数说明:
获取授权模块列表(null or empty 表示所有模块)。 - 参数说明:
N/A - 返回说明:
开发环境无法获取;数据格式:Map<String, List>
- 函数说明:
$vs.properties.getRegSystems():map
- 函数说明:
获取授权文件里授权的系统编码。 - 参数说明:
N/A - 返回说明:
开发环境无法获取;数据格式:Map<systemId,systemName>
- 函数说明:
$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 作者:姜一维