![]() |
Infohub JS API
|
COLNEO infohub Web Portal Services
Class PortalServices provides methods to facilitate portal specific functions and services such as creating links to objects in table view or detail view.
Public Member Functions | |
| constructor (ctx, hosturl, path) | |
| getUrlForDetailView (node_shortid) | |
| getUrlForPortal () | |
| getUrlForPropertySchema (CONFIG, node_shortid) | |
| getUrlForTableView (node_shortid) | |
| constructor | ( | ctx, | |
| hosturl, | |||
| path ) |
Create a new object for web portal services.
| {Context} | ctx Infohub context |
| {string} | hosturl URL of server, example "https://colneo.services" |
| {string} | path Path to web portal, e.g. "/cn_portal" |
| getUrlForDetailView | ( | node_shortid | ) |
Generate link to detail view of object/node in portal.
| {string} | node_shortid |
| getUrlForPortal | ( | ) |
Get URL for COLNEO infohub Web Portal.
| getUrlForPropertySchema | ( | CONFIG, | |
| node_shortid ) |
Generate link to propertyschema in portal.
| {string} | CONFIG |
| {string} | node_shortid |
| getUrlForTableView | ( | node_shortid | ) |
Generate link to table view of object/node in portal.
| {string} | node_shortid |