core/router/view-context.service.ts
Properties |
|
Methods |
|
Static services |
Type : ViewContexServiceConfig
|
Default value : {
[ViewContext.Device]: { service: InventoryService, path: ViewContext.Device, autoRoute: true },
[ViewContext.Group]: { service: InventoryService, path: ViewContext.Group, autoRoute: true },
[ViewContext.User]: { service: UserService, path: ViewContext.User, autoRoute: true },
[ViewContext.Application]: {
service: ApplicationService,
path: ViewContext.Application,
autoRoute: true
},
[ViewContext.Microservice]: {
service: ApplicationService,
path: ViewContext.Microservice,
autoRoute: true
},
[ViewContext.Extension]: {
service: ApplicationService,
path: ViewContext.Extension,
autoRoute: true
},
[ViewContext.Feature]: {
service: ApplicationService,
path: ViewContext.Feature,
autoRoute: true
},
[ViewContext.SubscribedApplications]: {
service: ApplicationService,
path: ViewContext.SubscribedApplications,
autoRoute: true
},
[ViewContext.Tenant]: { service: TenantService, path: ViewContext.Tenant, autoRoute: true },
[ViewContext.Report]: { service: InventoryService, path: ViewContext.Report, autoRoute: true },
[ViewContext.Service]: {
service: InventoryService,
path: ViewContext.Service,
autoRoute: true
},
[ViewContext.DatapointLibrary]: {
service: InventoryService,
path: ViewContext.DatapointLibrary,
autoRoute: true
},
[ViewContext.Simulators]: {
service: InventoryService,
path: ViewContext.Simulators,
autoRoute: true
},
[ViewContext.Alarms]: { service: AlarmService, path: ':id', autoRoute: false },
[ViewContext.GroupAlarms]: { service: AlarmService, path: ':id', autoRoute: false },
[ViewContext.DeviceAlarms]: { service: AlarmService, path: ':id', autoRoute: false },
[ViewContext.SimulatorsAlarms]: { service: AlarmService, path: ':id', autoRoute: false },
[ViewContext.ServiceAlarms]: { service: AlarmService, path: ':id', autoRoute: false }
} as const
|
Static contextToService | ||||||
contextToService(context: ViewContext)
|
||||||
Parameters :
Returns :
any
|
Static getPath | ||||||
getPath(context: ViewContext)
|
||||||
Parameters :
Returns :
any
|
Static isAutoRoute | ||||||
isAutoRoute(context: ViewContext)
|
||||||
Parameters :
Returns :
any
|