• Quick Start
  • Booting
  • Platform
  • Portals
  • References
    • API Reference TOI3
    • IIP Reference
  • Resources
ARRIS Enterprises, Inc. Confidential Information

Open Source Software notice

Since KreaTV includes Open Source Software, licensed under a variety of licensing terms, the TOI API contains methods for listing and displaying the various license agreements (which some licenses require). The SDK documentation provides a complete list of all the licenses included in the SDK, but the TOI API provides only those licenses used by the components which are installed in the current boot image.

<sdk_root>/examples/example-html-portal/modules/oss/oss.js

var componentsInfo =
   toi.applicationService.getOpenSourceComponentsInfo();

The getOpenSourceComponentsInfo() function returns an array of the different licenses included in the software, and an ID for each one.

For each license, a call to getOpenSourceLicenseText() is performed. Any referred licenses are appended.

<sdk_root>/examples/example-html-portal/modules/oss/oss.js

var license = "<pre>" +
  toi.applicationService.getOpenSourceLicenseText(
    componentInfo.license.id) + "\n\n\n";

if (componentInfo.referencedLicenses.length > 0) {
  license += ">>> Referenced licenses\n\n";
  for (var i=0; i<componentInfo.referencedLicenses.length; i++) {
    license += toi.applicationService.getOpenSourceLicenseText(
      componentInfo.referencedLicenses[i]);
    license += "\n\n";
  }
}

license += "</pre>";

The example portal embeds the license text in a <pre>...</pre> tag, but you are free to change the appearance of the license, as long as the license text itself is not altered.

5.1.1.p8

Copyright (c) 2018 ARRIS Enterprises, LLC. All Rights Reserved. ARRIS Enterprises, LLC. Confidential Information.