Infohub JS API
Loading...
Searching...
No Matches
PortalServices Class Reference

Description

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)

Function Documentation

◆ constructor()

constructor ( ctx,
hosturl,
path )

Create a new object for web portal services.

Parameters
{Context}ctx Infohub context
{string}hosturl URL of server, example "https://colneo.services"
{string}path Path to web portal, e.g. "/cn_portal"
Since
1.0, 09.2025, jh

◆ getUrlForDetailView()

getUrlForDetailView ( node_shortid)

Generate link to detail view of object/node in portal.

Parameters
{string}node_shortid
Returns
{string} Link

◆ getUrlForPortal()

getUrlForPortal ( )

Get URL for COLNEO infohub Web Portal.

Since
1.0, 01.2026, jh

◆ getUrlForPropertySchema()

getUrlForPropertySchema ( CONFIG,
node_shortid )

Generate link to propertyschema in portal.

Parameters
{string}CONFIG
{string}node_shortid
Returns
{string} Link
Since
01.2026

◆ getUrlForTableView()

getUrlForTableView ( node_shortid)

Generate link to table view of object/node in portal.

Parameters
{string}node_shortid
Returns
{string} Link