外观
finServerExt 扩展参考
原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793848856/FIN+5.3.1+finServerExt 中文整理基于 FIN 5.3.1
导读: 本页为 FIN 扩展
finServerExt的 API 参考文档。
以下为 API 参考,保留英文以便对照源码;目录已列出(英文标题便于检索);概述已尽量中译。
目录(导读)
- classes
- Slot Details
- make
- web
- mod
- onService
- realm
- finFilteredFuncEval
- finMobilePoints
- finMobilePoll
- finSubEquipFilter
- mapToUI
概述(中译)
const class DailyOpTopMod : SysMod
构造函数
字段
插槽详情
new make()
API 正文(英文)
web
virtual const override DailyOpTopWeb web := DailyOpTopWeb.<ctor>(this)
DailyOpTopWeb
const class DailyOpTopWeb : SysWeb
Constructors
| make |
Fields
| mod |
Methods
| onService | |
| realm |
Slot Details
make
new make(DailyOpTopMod mod)
mod
const DailyOpTopMod mod
onService
virtual override Void onService()
realm
Str? realm()
FINStackErrorMod
const class FINStackErrorMod : WebMod
Methods
| onService |
Slot Details
onService
virtual override Void onService()
FinServerExt
@ExtMeta { name="finServerExt"; depends=["finstack"] } @FinExtMeta { licFeature="finstack"; pngIcon=`fan://finStackExt/res/img/fins_24.png` } const class FinServerExt : FinExt
FinPublish Extension
Slot Details
FinServerLib
const class FinServerLib : Obj
FIN|Stack library functions.
Methods
| finFilteredFuncEval | Filter all functions that match the provided funcFilter expression. |
| finMobilePoints | finMobilePoints |
| finMobilePoll | finMobilePoll |
| finSubEquipFilter | Filter out recursively the equip and sub-equip of the base target Ref. |
| mapToUI |
Slot Details
finFilteredFuncEval
@Axon static Grid finFilteredFuncEval(Expr funcExpr, Expr funcResExpr)
Filter all functions that match the provided funcFilter expression.
Evaluate the matching functions in the order of the order Number tag, if it exists.
Filter the result of each evaluated function according to the funcResFilter expression.
Parameters:
- funcFilter(Obj), an expression like "specialFun and tag==42". The expression should return a list of functions.
- funcResFilter(Obj), an expression like "someMarker and someNumber==8" that will be applied on each function result that has matched the
funcFilter.
Returns:
- a
Gridwith the result of each matching function filtered according to thefuncResFilter
Example:
// call a list of matching functions and filter their result
finFilteredFuncEval(someMarker and type="type1", otherMarker or name="foo bar")finMobilePoints
@Axon static Grid finMobilePoints(Expr filter)
finMobilePoints
finMobilePoll
@Axon static Grid finMobilePoll(Str watchId, Bool coreOnly := false)
finMobilePoll
finSubEquipFilter
@Axon static Grid finSubEquipFilter(Obj? target)
Filter out recursively the equip and sub-equip of the base target Ref.
Fall-back to navFilter for non-equip paths
mapToUI
static Dict? mapToUI(Context cx, Grid? mapping, Dict point)
SystemOneTopMod
const class SystemOneTopMod : SysMod
Constructors
| make |
Fields
| web |
Slot Details
make
new make()
web
virtual const override SystemOneTopWeb web := SystemOneTopWeb.<ctor>(this)
SystemOneTopWeb
const class SystemOneTopWeb : SysWeb
Constructors
| make |
Fields
| mod |
Methods
| onService | |
| realm |
Slot Details
make
new make(SystemOneTopMod mod)
mod
const SystemOneTopMod mod
onService
virtual override Void onService()
realm
Str? realm()