AppFactory.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JSDoc: Class: AppFactory</title>
  6. <script src="scripts/prettify/prettify.js"> </script>
  7. <script src="scripts/prettify/lang-css.js"> </script>
  8. <!--[if lt IE 9]>
  9. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  10. <![endif]-->
  11. <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
  12. <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
  13. </head>
  14. <body>
  15. <div id="main">
  16. <h1 class="page-title">Class: AppFactory</h1>
  17. <section>
  18. <header>
  19. <h2><span class="attribs"><span class="type-signature"></span></span>AppFactory<span class="signature">(options)</span><span class="type-signature"></span></h2>
  20. <div class="class-description">API class that is used to create a custom dashboard application that is dependent on glass.
  21. Glass refers to an internal Cognos Analytics API that controls the user interface. It allows developers to perform actions on the UI,
  22. such as opening a view or accessing view configurations or services.</div>
  23. </header>
  24. <article>
  25. <div class="container-overview">
  26. <h2>Constructor</h2>
  27. <h4 class="name" id="AppFactory"><span class="type-signature"></span>new AppFactory<span class="signature">(options)</span><span class="type-signature"></span></h4>
  28. <h5>Parameters:</h5>
  29. <table class="params">
  30. <thead>
  31. <tr>
  32. <th>Name</th>
  33. <th>Type</th>
  34. <th class="last">Description</th>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. <tr>
  39. <td class="name"><code>options</code></td>
  40. <td class="type">
  41. <span class="param-type">Object</span>
  42. </td>
  43. <td class="description last">
  44. <h6>Properties</h6>
  45. <table class="params">
  46. <thead>
  47. <tr>
  48. <th>Name</th>
  49. <th>Type</th>
  50. <th class="last">Description</th>
  51. </tr>
  52. </thead>
  53. <tbody>
  54. <tr>
  55. <td class="name"><code>glassContext</code></td>
  56. <td class="type">
  57. <span class="param-type">String</span>
  58. </td>
  59. <td class="description last">Contains the glass context of the application.</td>
  60. </tr>
  61. <tr>
  62. <td class="name"><code>features.name.excludes</code></td>
  63. <td class="type">
  64. <span class="param-type">Array.&lt;String></span>
  65. </td>
  66. <td class="description last">List of feature names to prevent from loading for a feature collection.</td>
  67. </tr>
  68. </tbody>
  69. </table>
  70. </td>
  71. </tr>
  72. </tbody>
  73. </table>
  74. <dl class="details">
  75. </dl>
  76. </div>
  77. <h3 class="subsection-title">Methods</h3>
  78. <h4 class="name" id="create"><span class="type-signature"></span>create<span class="signature">(options)</span><span class="type-signature"> &rarr; {Promise.&lt;<a href="DashboardCoreAPI.html">DashboardCoreAPI</a>>}</span></h4>
  79. <h5>Parameters:</h5>
  80. <table class="params">
  81. <thead>
  82. <tr>
  83. <th>Name</th>
  84. <th>Type</th>
  85. <th class="last">Description</th>
  86. </tr>
  87. </thead>
  88. <tbody>
  89. <tr>
  90. <td class="name"><code>options</code></td>
  91. <td class="type">
  92. <span class="param-type">Object</span>
  93. </td>
  94. <td class="description last">
  95. <h6>Properties</h6>
  96. <table class="params">
  97. <thead>
  98. <tr>
  99. <th>Name</th>
  100. <th>Type</th>
  101. <th class="last">Description</th>
  102. </tr>
  103. </thead>
  104. <tbody>
  105. <tr>
  106. <td class="name"><code>assetId</code></td>
  107. <td class="type">
  108. <span class="param-type">String</span>
  109. </td>
  110. <td class="description last">Specifies the dashboard asset ID.</td>
  111. </tr>
  112. <tr>
  113. <td class="name"><code>spec</code></td>
  114. <td class="type">
  115. <span class="param-type">String</span>
  116. </td>
  117. <td class="description last">Specifies the dashboard specification.</td>
  118. </tr>
  119. <tr>
  120. <td class="name"><code>features.name.excludes</code></td>
  121. <td class="type">
  122. <span class="param-type">Array.&lt;String></span>
  123. </td>
  124. <td class="description last">List of feature names to prevent from loading for a feature collection.</td>
  125. </tr>
  126. </tbody>
  127. </table>
  128. </td>
  129. </tr>
  130. </tbody>
  131. </table>
  132. <dl class="details">
  133. </dl>
  134. <h5>Returns:</h5>
  135. <div class="param-desc">
  136. Dashboard API object
  137. </div>
  138. <dl>
  139. <dt>
  140. Type
  141. </dt>
  142. <dd>
  143. <span class="param-type">Promise.&lt;<a href="DashboardCoreAPI.html">DashboardCoreAPI</a>></span>
  144. </dd>
  145. </dl>
  146. <h4 class="name" id="getFeature"><span class="type-signature"></span>getFeature<span class="signature">(featureName)</span><span class="type-signature"> &rarr; {Object}</span></h4>
  147. <h5>Parameters:</h5>
  148. <table class="params">
  149. <thead>
  150. <tr>
  151. <th>Name</th>
  152. <th>Type</th>
  153. <th class="last">Description</th>
  154. </tr>
  155. </thead>
  156. <tbody>
  157. <tr>
  158. <td class="name"><code>featureName</code></td>
  159. <td class="type">
  160. <span class="param-type">String</span>
  161. </td>
  162. <td class="description last">Name of feature that is supported by the AppFactory, for example 'ContentStore'.</td>
  163. </tr>
  164. </tbody>
  165. </table>
  166. <dl class="details">
  167. </dl>
  168. <h5>Returns:</h5>
  169. <div class="param-desc">
  170. Feature, for example ContentStore object.
  171. </div>
  172. <dl>
  173. <dt>
  174. Type
  175. </dt>
  176. <dd>
  177. <span class="param-type">Object</span>
  178. </dd>
  179. </dl>
  180. </article>
  181. </section>
  182. </div>
  183. <nav>
  184. <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AppFactory.html">AppFactory</a></li></ul><h3>Interfaces</h3><ul><li><a href="CanvasAPI.html">CanvasAPI</a></li><li><a href="ContentAPI.html">ContentAPI</a></li><li><a href="ContentStoreAPI.html">ContentStoreAPI</a></li><li><a href="DashboardCoreAPI.html">DashboardCoreAPI</a></li><li><a href="DashboardPreferencesAPI.html">DashboardPreferencesAPI</a></li><li><a href="DashboardSettingsAPI.html">DashboardSettingsAPI</a></li><li><a href="PropertiesAPI.html">PropertiesAPI</a></li><li><a href="RendererAPI.html">RendererAPI</a></li><li><a href="SaveAPI.html">SaveAPI</a></li><li><a href="SerializerAPI.html">SerializerAPI</a></li><li><a href="StateAPI.html">StateAPI</a></li><li><a href="TransactionAPI.html">TransactionAPI</a></li><li><a href="UserProfileAPI.html">UserProfileAPI</a></li></ul>
  185. </nav>
  186. <br class="clear">
  187. <footer>
  188. Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu May 05 2022 17:56:07 GMT+0000 (UTC)
  189. </footer>
  190. <script> prettyPrint(); </script>
  191. <script src="scripts/linenumber.js"> </script>
  192. </body>
  193. </html>