@sitevision/api 1.0.20 → 1.1.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (307) hide show
  1. package/hidden/javax/jcr/Binary/index.d.ts +86 -0
  2. package/hidden/javax/jcr/Credentials/index.d.ts +11 -0
  3. package/hidden/javax/jcr/ImportUUIDBehavior/index.d.ts +11 -0
  4. package/hidden/javax/jcr/Item/index.d.ts +353 -0
  5. package/hidden/javax/jcr/ItemVisitor/index.d.ts +41 -0
  6. package/hidden/javax/jcr/NamespaceRegistry/index.d.ts +100 -0
  7. package/hidden/javax/jcr/Node/index.d.ts +2808 -0
  8. package/hidden/javax/jcr/NodeIterator/index.d.ts +18 -0
  9. package/hidden/javax/jcr/Property/index.d.ts +801 -0
  10. package/hidden/javax/jcr/PropertyIterator/index.d.ts +17 -0
  11. package/hidden/javax/jcr/RangeIterator/index.d.ts +75 -0
  12. package/hidden/javax/jcr/Repository/index.d.ts +318 -0
  13. package/hidden/javax/jcr/RepositoryFactory/index.d.ts +90 -0
  14. package/hidden/javax/jcr/Value/index.d.ts +190 -0
  15. package/hidden/javax/jcr/ValueFactory/index.d.ts +179 -0
  16. package/hidden/javax/jcr/Workspace/index.d.ts +1061 -0
  17. package/hidden/javax/jcr/lock/Lock/index.d.ts +142 -0
  18. package/hidden/javax/jcr/lock/LockManager/index.d.ts +217 -0
  19. package/hidden/javax/jcr/nodetype/ItemDefinition/index.d.ts +219 -0
  20. package/hidden/javax/jcr/nodetype/NodeDefinition/index.d.ts +158 -0
  21. package/hidden/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +74 -0
  22. package/hidden/javax/jcr/nodetype/NodeType/index.d.ts +349 -0
  23. package/hidden/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +248 -0
  24. package/hidden/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +16 -0
  25. package/hidden/javax/jcr/nodetype/NodeTypeManager/index.d.ts +218 -0
  26. package/hidden/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +98 -0
  27. package/hidden/javax/jcr/nodetype/PropertyDefinition/index.d.ts +536 -0
  28. package/hidden/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +97 -0
  29. package/hidden/javax/jcr/observation/Event/index.d.ts +133 -0
  30. package/hidden/javax/jcr/observation/EventIterator/index.d.ts +20 -0
  31. package/hidden/javax/jcr/observation/EventJournal/index.d.ts +22 -0
  32. package/hidden/javax/jcr/observation/EventListener/index.d.ts +23 -0
  33. package/hidden/javax/jcr/observation/EventListenerIterator/index.d.ts +20 -0
  34. package/hidden/javax/jcr/observation/ObservationManager/index.d.ts +227 -0
  35. package/hidden/javax/jcr/query/Query/index.d.ts +201 -0
  36. package/hidden/javax/jcr/query/QueryManager/index.d.ts +73 -0
  37. package/hidden/javax/jcr/query/QueryResult/index.d.ts +51 -0
  38. package/hidden/javax/jcr/query/Row/index.d.ts +159 -0
  39. package/hidden/javax/jcr/query/RowIterator/index.d.ts +20 -0
  40. package/hidden/javax/jcr/query/qom/And/index.d.ts +26 -0
  41. package/hidden/javax/jcr/query/qom/BindVariableValue/index.d.ts +15 -0
  42. package/hidden/javax/jcr/query/qom/ChildNode/index.d.ts +27 -0
  43. package/hidden/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +27 -0
  44. package/hidden/javax/jcr/query/qom/Column/index.d.ts +39 -0
  45. package/hidden/javax/jcr/query/qom/Comparison/index.d.ts +82 -0
  46. package/hidden/javax/jcr/query/qom/Constraint/index.d.ts +13 -0
  47. package/hidden/javax/jcr/query/qom/DescendantNode/index.d.ts +31 -0
  48. package/hidden/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +29 -0
  49. package/hidden/javax/jcr/query/qom/DynamicOperand/index.d.ts +9 -0
  50. package/hidden/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +41 -0
  51. package/hidden/javax/jcr/query/qom/FullTextSearch/index.d.ts +89 -0
  52. package/hidden/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +24 -0
  53. package/hidden/javax/jcr/query/qom/Join/index.d.ts +36 -0
  54. package/hidden/javax/jcr/query/qom/JoinCondition/index.d.ts +9 -0
  55. package/hidden/javax/jcr/query/qom/Length/index.d.ts +24 -0
  56. package/hidden/javax/jcr/query/qom/Literal/index.d.ts +18 -0
  57. package/hidden/javax/jcr/query/qom/LowerCase/index.d.ts +26 -0
  58. package/hidden/javax/jcr/query/qom/NodeLocalName/index.d.ts +16 -0
  59. package/hidden/javax/jcr/query/qom/NodeName/index.d.ts +16 -0
  60. package/hidden/javax/jcr/query/qom/Not/index.d.ts +20 -0
  61. package/hidden/javax/jcr/query/qom/Operand/index.d.ts +9 -0
  62. package/hidden/javax/jcr/query/qom/Or/index.d.ts +30 -0
  63. package/hidden/javax/jcr/query/qom/Ordering/index.d.ts +53 -0
  64. package/hidden/javax/jcr/query/qom/PropertyExistence/index.d.ts +24 -0
  65. package/hidden/javax/jcr/query/qom/PropertyValue/index.d.ts +25 -0
  66. package/hidden/javax/jcr/query/qom/QueryObjectModel/index.d.ts +64 -0
  67. package/hidden/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +9 -0
  68. package/hidden/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +638 -0
  69. package/hidden/javax/jcr/query/qom/SameNode/index.d.ts +27 -0
  70. package/hidden/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +36 -0
  71. package/hidden/javax/jcr/query/qom/Selector/index.d.ts +35 -0
  72. package/hidden/javax/jcr/query/qom/Source/index.d.ts +9 -0
  73. package/hidden/javax/jcr/query/qom/StaticOperand/index.d.ts +10 -0
  74. package/hidden/javax/jcr/query/qom/UpperCase/index.d.ts +26 -0
  75. package/hidden/javax/jcr/retention/Hold/index.d.ts +34 -0
  76. package/hidden/javax/jcr/retention/RetentionManager/index.d.ts +189 -0
  77. package/hidden/javax/jcr/retention/RetentionPolicy/index.d.ts +21 -0
  78. package/hidden/javax/jcr/security/AccessControlEntry/index.d.ts +24 -0
  79. package/hidden/javax/jcr/security/AccessControlList/index.d.ts +91 -0
  80. package/hidden/javax/jcr/security/AccessControlManager/index.d.ts +297 -0
  81. package/hidden/javax/jcr/security/AccessControlPolicy/index.d.ts +11 -0
  82. package/hidden/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +20 -0
  83. package/hidden/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +22 -0
  84. package/hidden/javax/jcr/security/Privilege/index.d.ts +117 -0
  85. package/hidden/javax/jcr/version/Version/index.d.ts +121 -0
  86. package/hidden/javax/jcr/version/VersionHistory/index.d.ts +307 -0
  87. package/hidden/javax/jcr/version/VersionIterator/index.d.ts +20 -0
  88. package/hidden/javax/jcr/version/VersionManager/index.d.ts +1082 -0
  89. package/hidden/senselogic/sitevision/api/base/Builder/index.d.ts +102 -0
  90. package/hidden/senselogic/sitevision/api/base/Filter/index.d.ts +25 -0
  91. package/hidden/senselogic/sitevision/api/base/FilterSplit/index.d.ts +50 -0
  92. package/hidden/senselogic/sitevision/api/base/Loadable/index.d.ts +15 -0
  93. package/hidden/senselogic/sitevision/api/base/Resolver/index.d.ts +31 -0
  94. package/hidden/senselogic/sitevision/api/base/Wrapper/index.d.ts +24 -0
  95. package/hidden/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +417 -0
  96. package/hidden/senselogic/sitevision/api/format/NumericFormatter/index.d.ts +80 -0
  97. package/hidden/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +100 -0
  98. package/hidden/senselogic/sitevision/api/i18n/Currency/index.d.ts +120 -0
  99. package/hidden/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +45 -0
  100. package/hidden/senselogic/sitevision/api/link/CustomLinkRenderData/index.d.ts +65 -0
  101. package/hidden/senselogic/sitevision/api/mail/Mail/index.d.ts +32 -0
  102. package/hidden/senselogic/sitevision/api/message/MessageTextLinker/index.d.ts +15 -0
  103. package/hidden/senselogic/sitevision/api/metadata/value/LinkValue/index.d.ts +23 -0
  104. package/hidden/senselogic/sitevision/api/metadata/value/RelatedValue/index.d.ts +23 -0
  105. package/hidden/senselogic/sitevision/api/property/VersionedPropertyUtil/index.d.ts +642 -0
  106. package/hidden/senselogic/sitevision/api/render/BuddyIconRenderer/BuddyIconInfo/index.d.ts +51 -0
  107. package/hidden/senselogic/sitevision/api/render/ImageScaler/index.d.ts +58 -0
  108. package/hidden/senselogic/sitevision/api/render/TextModuleRenderer/index.d.ts +301 -0
  109. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ArticleUtilConstants/index.d.ts +85 -0
  110. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ExceptionSuppressingProxyConstants/index.d.ts +31 -0
  111. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/IndexingUtilConstants/index.d.ts +31 -0
  112. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/LinkPageUtilConstants/index.d.ts +67 -0
  113. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MathInstanceConstants/index.d.ts +25 -0
  114. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MimeTypeUtilConstants/index.d.ts +19 -0
  115. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/NodeTypeUtilConstants/index.d.ts +1243 -0
  116. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/OutputUtilConstants/index.d.ts +31 -0
  117. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PageUtilConstants/index.d.ts +91 -0
  118. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletContextUtilConstants/index.d.ts +27 -0
  119. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletUtilConstants/index.d.ts +19 -0
  120. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/QueryStringUtilConstants/index.d.ts +19 -0
  121. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchHitConstants/index.d.ts +25 -0
  122. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchResultConstants/index.d.ts +37 -0
  123. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/VersionUtilConstants/index.d.ts +25 -0
  124. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/index.d.ts +8 -0
  125. package/hidden/senselogic/sitevision/api/render/velocity/VelocityContext/index.d.ts +50 -0
  126. package/hidden/senselogic/sitevision/api/render/velocity/VelocityEvaluator/index.d.ts +89 -0
  127. package/hidden/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +119 -0
  128. package/hidden/senselogic/sitevision/api/script/app/RestAppInvoker/index.d.ts +272 -0
  129. package/hidden/senselogic/sitevision/api/script/factory/TypedArgument/index.d.ts +43 -0
  130. package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingCollection/index.d.ts +94 -0
  131. package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingIterator/index.d.ts +117 -0
  132. package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +90 -0
  133. package/hidden/senselogic/sitevision/api/search/SearchFieldUtil/index.d.ts +89 -0
  134. package/hidden/senselogic/sitevision/api/search/SearchHighlighter/index.d.ts +45 -0
  135. package/hidden/senselogic/sitevision/api/search/SearchHit/index.d.ts +1176 -0
  136. package/hidden/senselogic/sitevision/api/search/SearchResult/index.d.ts +414 -0
  137. package/hidden/senselogic/sitevision/api/search/facet/SearchFacetField/index.d.ts +27 -0
  138. package/hidden/senselogic/sitevision/api/search/facet/SearchFacetValue/index.d.ts +61 -0
  139. package/hidden/senselogic/sitevision/api/search/searcher/Searcher/index.d.ts +277 -0
  140. package/hidden/senselogic/sitevision/api/search/searcher/component/Filter/index.d.ts +25 -0
  141. package/hidden/senselogic/sitevision/api/search/searcher/component/Highlight/index.d.ts +29 -0
  142. package/hidden/senselogic/sitevision/api/search/searcher/component/Monitor/index.d.ts +25 -0
  143. package/hidden/senselogic/sitevision/api/search/searcher/component/Parser/index.d.ts +35 -0
  144. package/hidden/senselogic/sitevision/api/search/searcher/component/Sort/index.d.ts +25 -0
  145. package/hidden/senselogic/sitevision/api/search/searcher/component/SpellCheck/index.d.ts +29 -0
  146. package/hidden/senselogic/sitevision/api/search/sort/CustomSort/index.d.ts +82 -0
  147. package/hidden/senselogic/sitevision/api/search/suggestion/SearchSuggestion/index.d.ts +21 -0
  148. package/hidden/senselogic/sitevision/api/security/DirectoryAttributes/index.d.ts +70 -0
  149. package/hidden/senselogic/sitevision/api/security/MessageDigester/index.d.ts +50 -0
  150. package/hidden/senselogic/sitevision/api/security/RoleAssignment/index.d.ts +72 -0
  151. package/hidden/senselogic/sitevision/api/security/RoleMatcher/index.d.ts +29 -0
  152. package/hidden/senselogic/sitevision/api/security/SecretStore/index.d.ts +55 -0
  153. package/hidden/senselogic/sitevision/api/security/UserUtil/index.d.ts +80 -0
  154. package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +36 -0
  155. package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilterChain/index.d.ts +32 -0
  156. package/hidden/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +599 -0
  157. package/hidden/senselogic/sitevision/api/webresource/LinkTarget/index.d.ts +20 -0
  158. package/hidden/senselogic/sitevision/api/xml/XmlElement/index.d.ts +55 -0
  159. package/hidden/senselogic/sitevision/api/xml/XmlElementHandler/index.d.ts +17 -0
  160. package/index.d.ts +103 -4
  161. package/package.json +2 -4
  162. package/server/AliasUtil/index.d.ts +25 -0
  163. package/server/AliasUtil/index.js +10 -0
  164. package/server/ArchiveUtil/index.d.ts +65 -11
  165. package/server/ArraysInstance/index.d.ts +1846 -0
  166. package/server/ArticleUtil/index.d.ts +381 -69
  167. package/server/AuthenticationUtil/index.d.ts +106 -0
  168. package/server/BookmarkUtil/index.d.ts +36 -28
  169. package/server/BuddyIconRenderer/index.d.ts +240 -0
  170. package/server/ClientUtil/index.d.ts +18 -4
  171. package/server/CollaborationFactory/index.d.ts +42 -25
  172. package/server/CollaborationGroupFolderUtil/index.d.ts +40 -29
  173. package/server/CollaborationGroupTemplateUtil/index.d.ts +71 -39
  174. package/server/CollaborationGroupUtil/index.d.ts +128 -55
  175. package/server/CollectionsInstance/index.d.ts +738 -0
  176. package/server/ColorUtil/index.d.ts +22 -17
  177. package/server/CompoundAndFilterBuilder/index.d.ts +60 -0
  178. package/server/CompoundComparatorBuilder/index.d.ts +63 -0
  179. package/server/CompoundOrFilterBuilder/index.d.ts +59 -0
  180. package/server/ContentNodeUtil/index.d.ts +76 -0
  181. package/server/CurrencyFactory/index.d.ts +135 -0
  182. package/server/DateUtil/index.d.ts +154 -77
  183. package/server/DecorationUtil/index.d.ts +23 -0
  184. package/server/DeviceUtil/index.d.ts +36 -0
  185. package/server/DirectoryUtil/index.d.ts +107 -47
  186. package/server/DocTypeUtil/index.d.ts +149 -0
  187. package/server/EndecUtil/index.d.ts +537 -91
  188. package/server/ExtendedDismaxParserBuilder/index.d.ts +311 -0
  189. package/server/FileIconRenderer/index.d.ts +346 -0
  190. package/server/FileUtil/index.d.ts +462 -0
  191. package/server/FilterBuilder/index.d.ts +120 -0
  192. package/server/FolderUtil/index.d.ts +161 -0
  193. package/server/FontUtil/index.d.ts +49 -0
  194. package/server/FormatterBuilderFactory/index.d.ts +129 -0
  195. package/server/HighlightBuilder/index.d.ts +194 -0
  196. package/server/IconUtil/index.d.ts +37 -0
  197. package/server/ImageLinkRenderer/index.d.ts +134 -0
  198. package/server/ImageRenderer/index.d.ts +613 -231
  199. package/server/ImageUtil/index.d.ts +430 -0
  200. package/server/IndexUtil/index.d.ts +71 -0
  201. package/server/IndexingUtil/index.d.ts +92 -0
  202. package/server/InstanceCreatorUtil/index.d.ts +661 -0
  203. package/server/InstanceTypeUtil/index.d.ts +202 -0
  204. package/server/JwtUtil/index.d.ts +217 -0
  205. package/server/LandingPageUtil/index.d.ts +67 -50
  206. package/server/LinkPageUtil/index.d.ts +468 -0
  207. package/server/LinkRenderer/index.d.ts +1157 -0
  208. package/server/LinkTargetBuilder/index.d.ts +146 -0
  209. package/server/LinkValueBuilder/index.d.ts +129 -52
  210. package/server/ListWrapper/index.d.ts +172 -0
  211. package/server/LocaleUtil/index.d.ts +695 -61
  212. package/server/LogUtil/index.d.ts +118 -77
  213. package/server/MailBuilder/index.d.ts +238 -0
  214. package/server/MailUtil/index.d.ts +98 -0
  215. package/server/MathInstance/index.d.ts +681 -0
  216. package/server/MessageDigesterFactory/index.d.ts +49 -0
  217. package/server/MetadataDefinitionUtil/index.d.ts +118 -0
  218. package/server/MetadataUtil/index.d.ts +524 -79
  219. package/server/MimeTypeUtil/index.d.ts +316 -0
  220. package/server/MonitorBuilder/index.d.ts +51 -0
  221. package/server/NodeComparatorUtil/index.d.ts +397 -0
  222. package/server/NodeFactoryUtil/index.d.ts +32 -0
  223. package/server/NodeFilterUtil/index.d.ts +924 -0
  224. package/server/NodeIteratorUtil/index.d.ts +322 -72
  225. package/server/NodeResolverUtil/index.d.ts +767 -0
  226. package/server/NodeTreeUtil/index.d.ts +339 -63
  227. package/server/NodeTypeUtil/index.d.ts +391 -197
  228. package/server/OfflineVersionPropertyUtil/index.d.ts +30 -0
  229. package/server/OnlineVersionPropertyUtil/index.d.ts +30 -0
  230. package/server/OutputUtil/index.d.ts +641 -0
  231. package/server/PageUtil/index.d.ts +330 -0
  232. package/server/PermissionUtil/index.d.ts +650 -0
  233. package/server/PortletContextUtil/index.d.ts +118 -37
  234. package/server/PortletContextUtil/index.js +1 -0
  235. package/server/PortletUtil/index.d.ts +40 -0
  236. package/server/PrincipalUtil/index.d.ts +51 -0
  237. package/server/Properties/index.d.ts +185 -38
  238. package/server/PropertyUtil/index.d.ts +2330 -406
  239. package/server/PublishingUtil/index.d.ts +385 -49
  240. package/server/QueryStringUtil/index.d.ts +737 -0
  241. package/server/RedirectUtil/index.d.ts +98 -0
  242. package/server/RelatedValueBuilder/index.d.ts +81 -39
  243. package/server/Requester/index.d.ts +441 -65
  244. package/server/ResourceLocatorUtil/index.d.ts +483 -227
  245. package/server/RestApi/index.d.ts +208 -23
  246. package/server/RestAppInvokerFactory/index.d.ts +73 -0
  247. package/server/RoleAssignmentBuilder/index.d.ts +60 -0
  248. package/server/RoleMatcherBuilder/index.d.ts +59 -0
  249. package/server/RoleUtil/index.d.ts +57 -0
  250. package/server/ScriptUtil/index.d.ts +625 -143
  251. package/server/SearchFactory/index.d.ts +133 -0
  252. package/server/SearchUtil/index.d.ts +164 -0
  253. package/server/SearcherBuilder/index.d.ts +260 -0
  254. package/server/Session/index.d.ts +1758 -0
  255. package/server/SimpleUserUtil/index.d.ts +39 -30
  256. package/server/SiteCookieUtil/index.d.ts +78 -53
  257. package/server/SortBuilder/index.d.ts +111 -0
  258. package/server/SpellCheckBuilder/index.d.ts +68 -0
  259. package/server/StandardParserBuilder/index.d.ts +112 -0
  260. package/server/StructureUtil/index.d.ts +167 -0
  261. package/server/SubscriberUtil/index.d.ts +122 -0
  262. package/server/SubscriptionUtil/index.d.ts +197 -0
  263. package/server/SystemUserUtil/index.d.ts +201 -98
  264. package/server/TagUtil/index.d.ts +193 -0
  265. package/server/TemplateUtil/index.d.ts +217 -0
  266. package/server/TemporaryFileNodeBuilder/index.d.ts +63 -0
  267. package/server/TemporaryNodeBuilder/index.d.ts +241 -0
  268. package/server/TextModuleRendererBuilder/index.d.ts +68 -0
  269. package/server/TimestampUtil/index.d.ts +98 -82
  270. package/server/TranslationUtil/index.d.ts +175 -0
  271. package/server/TrashcanUtil/index.d.ts +193 -24
  272. package/server/UserDataUtil/index.d.ts +167 -85
  273. package/server/UserFactory/index.d.ts +45 -30
  274. package/server/UserFieldRenderer/index.d.ts +258 -0
  275. package/server/UserIdentityUtil/index.d.ts +61 -29
  276. package/server/UserUtil/index.d.ts +69 -28
  277. package/server/Utils/index.d.ts +870 -12
  278. package/server/VelocityRenderer/index.d.ts +248 -0
  279. package/server/VersionUtil/index.d.ts +15 -12
  280. package/server/WebContentUtil/index.d.ts +644 -0
  281. package/server/WebResourceFactory/index.d.ts +66 -0
  282. package/server/XSLTUtil/index.d.ts +49 -10
  283. package/server/XmlParserUtil/index.d.ts +82 -81
  284. package/builtins/Binary/index.d.ts +0 -3
  285. package/builtins/Calendar/index.d.ts +0 -3
  286. package/builtins/Collection/index.d.ts +0 -3
  287. package/builtins/Date/index.d.ts +0 -3
  288. package/builtins/InputStream/index.d.ts +0 -3
  289. package/builtins/Instant/index.d.ts +0 -3
  290. package/builtins/List/index.d.ts +0 -3
  291. package/builtins/LocalDateTime/index.d.ts +0 -3
  292. package/builtins/Locale/index.d.ts +0 -3
  293. package/builtins/Node/index.d.ts +0 -3
  294. package/builtins/NodeIterator/index.d.ts +0 -27
  295. package/builtins/Property/index.d.ts +0 -3
  296. package/builtins/Serializable/index.d.ts +0 -3
  297. package/builtins/Set/index.d.ts +0 -3
  298. package/builtins/Throwable/index.d.ts +0 -3
  299. package/builtins/byte/index.d.ts +0 -3
  300. package/server/CollaborationGroupState/index.d.ts +0 -6
  301. package/server/CollaborationGroupState/index.js +0 -1
  302. package/server/CollaborationGroupType/index.d.ts +0 -7
  303. package/server/CollaborationGroupType/index.js +0 -1
  304. package/server/CollaborationGroupWrapper/index.d.ts +0 -136
  305. package/server/CollaborationGroupWrapper/index.js +0 -1
  306. package/server/DimensionMode/index.d.ts +0 -7
  307. package/server/DimensionMode/index.js +0 -1
@@ -0,0 +1,661 @@
1
+ import TypedArgument from "../../hidden/senselogic/sitevision/api/script/factory/TypedArgument";
2
+ import ListWrapper from "../ListWrapper";
3
+ import ArraysInstance from "../ArraysInstance";
4
+ import CollectionsInstance from "../CollectionsInstance";
5
+ import MathInstance from "../MathInstance";
6
+
7
+ /**
8
+ * Creates and returns an instance of a specified Java class using the default constructor.
9
+ *
10
+ * <p>
11
+ * Example of how to create a <code>Date</code> instance in Velocity:
12
+ * </p>
13
+ * <pre><code>
14
+ * #set ($instanceCreatorUtil = $sitevisionUtils.instanceCreatorUtil)
15
+ * #set ($now = $instanceCreatorUtil.getDefaultInstance('java.util.Date'))
16
+ * </code></pre>
17
+ *
18
+ * <p>
19
+ * <strong>Note!</strong> This method will <em>not</em> create any objects of any classes that has a fully qualified class name
20
+ * that starts with <code>senselogic.sitevision</code> and resides outside the <code>api</code> package.
21
+ * </p>
22
+ * @param aQualifiedClassName a fully qualified name of the class (i.e. including packages)
23
+ * @return an instance of the class, or <code>null</code> if an instance can not be created
24
+ * @see InstanceCreatorUtil#getArgumentInstance(String, TypedArgument)
25
+ * @see InstanceCreatorUtil#getArgumentsInstance(String, java.util.List)
26
+ */
27
+ export function getDefaultInstance(aQualifiedClassName: string): unknown;
28
+
29
+ /**
30
+ * Creates and returns an instance of a specified Java class using a single argument constructor.
31
+ *
32
+ * <p>
33
+ * Example of how to create an <code>StringBuilder</code> instance with the initial capacity 500 in Velocity
34
+ * (i.e. invoke the StringBuilder(int) constructor):
35
+ * </p>
36
+ * <pre><code>
37
+ * #set ($instanceCreatorUtil = $sitevisionUtils.instanceCreatorUtil)
38
+ * #set ($capacityIntArgument = $instanceCreatorUtil.getIntArgument(500))
39
+ * #set ($buffer = $instanceCreatorUtil.getArgumentInstance('java.lang.StringBuilder', $capacityIntArgument))
40
+ * </code></pre>
41
+ *
42
+ * <p>
43
+ * <strong>Note!</strong> This method will <em>not</em> create any objects of any classes that has a fully qualified class name that starts with
44
+ * <code>senselogic.sitevision</code> and resides outside the <code>api</code> package.
45
+ * </p>
46
+ * @param aQualifiedClassName a fully qualified name of the class (i.e. including packages)
47
+ * @param aConstructorArgument a typed argument that describes the value and the type of the constructor argument
48
+ * @return an instance of the class, or <code>null</code> if an instance can not be created
49
+ * @see InstanceCreatorUtil#getDefaultInstance(String)
50
+ * @see InstanceCreatorUtil#getArgumentsInstance(String, java.util.List)
51
+ */
52
+ export function getArgumentInstance(
53
+ aQualifiedClassName: string,
54
+ aConstructorArgument: TypedArgument
55
+ ): unknown;
56
+
57
+ /**
58
+ * Creates and returns an instance of a specified Java class using a multiple argument constructor.
59
+ *
60
+ * <p>
61
+ * Example of how to create an <code>Locale</code> instance with language "en" and country "US" in Velocity
62
+ * (i.e. invoke the Locale(String,String) constructor):
63
+ * </p>
64
+ * <pre><code>
65
+ * #set ($instanceCreatorUtil = $sitevisionUtils.instanceCreatorUtil)
66
+ *
67
+ * <em>## Set up arguments</em>
68
+ * #set ($args = $instanceCreatorUtil.listWrapper) <em>## Use ListWrapper to prohibit output when invoking the "add" method...</em>
69
+ * $args.add($instanceCreatorUtil.getObjectArgument('en')) <em>## Add first argument (language)</em>
70
+ * $args.add($instanceCreatorUtil.getObjectArgument('US')) <em>## Add second argument (country)</em>
71
+ *
72
+ * <em>## Create instance with arguments</em>
73
+ * #set ($americanLocale = $instanceCreatorUtil.getArgumentsInstance('java.util.Locale', $args.unwrap())) <em>## unwrap() to get actual List</em>
74
+ * </code></pre>
75
+ *
76
+ * <p>
77
+ * <strong>Note!</strong> This method will <em>not</em> create any objects of any classes that has a fully qualified class name that
78
+ * starts with <code>senselogic.sitevision</code> and resides outside the <code>api</code> package.
79
+ * </p>
80
+ * @param aQualifiedClassName a fully qualified name of the class (i.e. including packages)
81
+ * @param aConstructorArguments a list of typed arguments that describes the values and types of the constructor arguments
82
+ * @return an instance of the class, or <code>null</code> if an instance can not be created
83
+ * @see InstanceCreatorUtil#getDefaultInstance(String)
84
+ * @see InstanceCreatorUtil#getArgumentInstance(String, TypedArgument)
85
+ */
86
+ export function getArgumentsInstance(
87
+ aQualifiedClassName: string,
88
+ aConstructorArguments: unknown[]
89
+ ): unknown;
90
+
91
+ /**
92
+ * Gets a typed argument for a <code>byte</code> primitive.
93
+ * @param aByte a byte value
94
+ * @return a typed argument for the <code>byte</code> primitive.
95
+ */
96
+ export function getByteArgument(aByte: unknown): TypedArgument;
97
+
98
+ /**
99
+ * Gets a typed argument for a <code>short</code> primitive.
100
+ * @param aShort a short value
101
+ * @return a typed argument for the <code>short</code> primitive.
102
+ */
103
+ export function getShortArgument(aShort: number): TypedArgument;
104
+
105
+ /**
106
+ * Gets a typed argument for a <code>int</code> primitive.
107
+ * @param anInt an int value
108
+ * @return a typed argument for the <code>int</code> primitive.
109
+ */
110
+ export function getIntArgument(anInt: number): TypedArgument;
111
+
112
+ /**
113
+ * Gets a typed argument for a <code>long</code> primitive.
114
+ * @param aLong a long value
115
+ * @return a typed argument for the <code>long</code> primitive.
116
+ */
117
+ export function getLongArgument(aLong: number): TypedArgument;
118
+
119
+ /**
120
+ * Gets a typed argument for a <code>float</code> primitive.
121
+ * @param aFloat a float value
122
+ * @return a typed argument for the <code>float</code> primitive.
123
+ */
124
+ export function getFloatArgument(aFloat: number): TypedArgument;
125
+
126
+ /**
127
+ * Gets a typed argument for a <code>double</code> primitive.
128
+ * @param aDouble a double value
129
+ * @return a typed argument for the <code>double</code> primitive.
130
+ */
131
+ export function getDoubleArgument(aDouble: number): TypedArgument;
132
+
133
+ /**
134
+ * Gets a typed argument for a <code>char</code> primitive.
135
+ * @param aChar a char value
136
+ * @return a typed argument for the <code>char</code> primitive.
137
+ */
138
+ export function getCharArgument(aChar: string): TypedArgument;
139
+
140
+ /**
141
+ * Gets a typed argument for a <code>boolean</code> primitive.
142
+ * @param aBoolean a boolean value
143
+ * @return a typed argument for the <code>boolean</code> primitive.
144
+ */
145
+ export function getBooleanArgument(aBoolean: boolean): TypedArgument;
146
+
147
+ /**
148
+ * Gets a typed argument for an <code>Object</code>.
149
+ *
150
+ * <p>
151
+ * <strong>Note!</strong> This method can <strong>only</strong> be used if the class of your actual
152
+ * <em>instance exactly match the type required</em> by the constructor you are trying to invoke! If types mismatch, you must use
153
+ * {@link #getCustomArgument(String, Object)} instead.
154
+ * </p>
155
+ * @param aValue an object, not <code>null</code>
156
+ * @return a typed argument for <code>aValue</code> object, <code>null</code> if <code>aValue</code> is <code>null</code>. The class value of <code>TypedArgument</code> will be set via <code>aValue.getClass()</code>.
157
+ * @see InstanceCreatorUtil#getNullArgument(String)
158
+ * @see InstanceCreatorUtil#getCustomArgument(String, Object)
159
+ */
160
+ export function getObjectArgument(aValue: unknown): TypedArgument;
161
+
162
+ /**
163
+ * Gets a typed argument for a <code>null</code> value for a specified class/interface.
164
+ *
165
+ * <p>
166
+ * <strong>Note!</strong> This method <strong>must</strong> be used if you should pass a <code>null</code> value to a constructor!
167
+ * </p>
168
+ * @param aQualifiedClassName a fully qualified name of the class (i.e. including packages)
169
+ * @return a null argument that uses a specified class/interface as type, or <code>null</code> if an <code>aQualifiedClassName</code> is invalid)
170
+ */
171
+ export function getNullArgument(aQualifiedClassName: string): TypedArgument;
172
+
173
+ /**
174
+ * Gets a typed argument that specifies a certain class/interface for an object.
175
+ *
176
+ * <p>
177
+ * <strong>Note!</strong> This method <strong>must</strong> be used if the class of your actual
178
+ * <em>instance doesn't exactly match the type required</em> by the constructor you are trying to invoke! Typical cases for when to use
179
+ * this method are:
180
+ * </p>
181
+ * <ul>
182
+ * <li>The class of your instance <em>extends</em> the type required (class) by the constructor</li>
183
+ * <li>The class of your instance <em>implements</em> the type required (interface) by the constructor</li>
184
+ * </ul>
185
+ *
186
+ * <p>
187
+ * Example of how to create a <code>ArrayList</code> instance in Velocity via the <code>ArrayList(Collection)</code> constructor:
188
+ * </p>
189
+ * <pre><code>
190
+ * #set ($myList = ...) <em>## $myList.class is NOT Collection, it's ArrayList, Vector or another Collection implementation...</em>
191
+ *
192
+ * #set ($instanceCreatorUtil = $sitevisionUtils.instanceCreatorUtil)
193
+ * #set ($aCollectionsTypeArgument = $instanceCreatorUtil.getCustomArgument('java.util.Collection', $myList))
194
+ * #set ($anArrayList = $instanceCreatorUtil.getArgumentInstance('java.util.ArrayList', $aCollectionsTypeArgument))
195
+ * </code></pre>
196
+ * @param aQualifiedClassName a fully qualified name of the class (i.e. including packages)
197
+ * @param aValue an object
198
+ * @return a typed argument that uses a specified class/interface as type, or <code>null</code> if an <code>aQualifiedClassName</code> is invalid
199
+ * @see InstanceCreatorUtil#getObjectArgument(Object)
200
+ * @see InstanceCreatorUtil#getNullArgument(String)
201
+ */
202
+ export function getCustomArgument(
203
+ aQualifiedClassName: string,
204
+ aValue: unknown
205
+ ): TypedArgument;
206
+
207
+ /**
208
+ * Gets a typed argument for an <code>Enum</code> value for a specified enum class.
209
+ * @param aQualifiedEnumClassName a fully qualified name of the enum class (i.e. including packages)
210
+ * @param anEnum an Enum instance or a String with the name of the Enum
211
+ * @return a typed argument that uses a specified enum as type, or <code>null</code> if an <code>aQualifiedEnumClassName</code> or <code>anEnum</code> is invalid
212
+ * @see #getEnumInstance(String, String)
213
+ */
214
+ export function getEnumArgument(
215
+ aQualifiedEnumClassName: string,
216
+ anEnum: unknown
217
+ ): TypedArgument;
218
+
219
+ /**
220
+ * Gets an enum instance for a specified enum class.
221
+ *
222
+ * <p>
223
+ * Example of how to create the {@link senselogic.sitevision.api.webresource.doctype.DocType#HTML5} instance
224
+ * of {@link senselogic.sitevision.api.webresource.doctype.DocType} in Velocity:
225
+ * </p>
226
+ * <pre><code>
227
+ * #set ($instanceCreatorUtil = $sitevisionUtils.instanceCreatorUtil)
228
+ * #set ($html5Enum = $instanceCreatorUtil.getEnumInstance('senselogic.sitevision.api.webresource.doctype.DocType', 'HTML5'))
229
+ * </code></pre>
230
+ *
231
+ * <p>
232
+ * Example of how to create the <code>SECONDS</code> instance of <code>java.util.concurrent.TimeUnit</code> in Velocity:
233
+ * </p>
234
+ * <pre><code>
235
+ * #set ($instanceCreatorUtil = $sitevisionUtils.instanceCreatorUtil)
236
+ * #set ($secondsEnum = $instanceCreatorUtil.getEnumInstance('java.util.concurrent.TimeUnit', 'SECONDS'))
237
+ * </code></pre>
238
+ *
239
+ * <p>
240
+ * Example of how to create the {@link senselogic.sitevision.api.search.index.IndexUtil.IndexType#USER_IDENTITY} instance
241
+ * of {@link senselogic.sitevision.api.search.index.IndexUtil.IndexType} (note that <code>IndexType</code> is an "inner"
242
+ * enum of <code>IndexUtil</code>) in Velocity:
243
+ * </p>
244
+ * <pre><code>
245
+ * #set ($instanceCreatorUtil = $sitevisionUtils.instanceCreatorUtil)
246
+ *
247
+ * <em>## Note that '$' is used to separate outer class from inner enum</em>
248
+ * #set ($enumClassName = 'senselogic.sitevision.api.search.index.IndexUtil$IndexType')
249
+ * #set ($userIdentityType = $instanceCreatorUtil.getEnumInstance($enumClassName, 'USER_IDENTITY'))
250
+ * </code></pre>
251
+ * @param aQualifiedEnumClassName a fully qualified name of the enum class (i.e. including packages)
252
+ * @param anEnumName the name of the enum value
253
+ * @return an Enum instance, or <code>null</code> if an <code>aQualifiedEnumClassName</code> or <code>anEnumName</code> is invalid
254
+ */
255
+ export function getEnumInstance(
256
+ aQualifiedEnumClassName: string,
257
+ anEnumName: string
258
+ ): unknown;
259
+
260
+ /**
261
+ * Convenience method to get an <code>ArrayList</code> instance.
262
+ * @return a <code>java.util.ArrayList</code> instance
263
+ * @see #getListWrapper()
264
+ */
265
+ export function getList(): unknown[];
266
+
267
+ /**
268
+ * Convenience method to get a <code>HashSet</code> instance.
269
+ * @return a <code>java.util.HashSet</code> instance
270
+ */
271
+ export function getSet(): Set<unknown>;
272
+
273
+ /**
274
+ * Convenience method to get a <code>HashMap</code> instance.
275
+ * @return a <code>java.util.HashMap</code> instance
276
+ */
277
+ export function getMap(): Record<unknown, unknown>;
278
+
279
+ /**
280
+ * Convenience method to get a <code>LinkedHashMap</code> instance.
281
+ * @return a <code>java.util.LinkedHashMap</code> instance
282
+ * @since Sitevision 4.5.4.1
283
+ */
284
+ export function getLinkedMap(): Record<unknown, unknown>;
285
+
286
+ /**
287
+ * Gets a <code>ListWrapper</code> instance.
288
+ *
289
+ * <p>
290
+ * <em>The <code>java.util.List</code> interface specifies that the <code>add</code> method should return a <code>boolean</code>.
291
+ * This is a problem if your scripting language (e.g. Velocity) requires you to suppress the returned value so it won't end up
292
+ * in the resulting output. A <code>ListWrapper</code> instance enables such suppressing.</em>
293
+ * </p>
294
+ * @return a ListWrapper instance
295
+ * @since Sitevision 3.5
296
+ */
297
+ export function getListWrapper(): ListWrapper;
298
+
299
+ /**
300
+ * Gets a <code>java.util.Arrays</code> wrapper instance.
301
+ *
302
+ * <p>
303
+ * <em>The <code>Arrays</code> class contains static methods only and can't be instantiated. This is a problem if your
304
+ * scripting language (e.g. Velocity) doesn't support static class access (i.e. need an instance/object to invoke methods).
305
+ * An <code>ArraysInstance</code> instance enables <code>Arrays</code> method invocations.</em>
306
+ * </p>
307
+ * @return a wrapper instance for <code>java.util.Arrays</code>
308
+ */
309
+ export function getArraysInstance(): ArraysInstance;
310
+
311
+ /**
312
+ * Gets a <code>java.util.Collections</code> wrapper instance.
313
+ *
314
+ * <p>
315
+ * <em>The <code>Collections</code> class contains static methods only and can't be instantiated. This is a problem if your
316
+ * scripting language (e.g. Velocity) doesn't support static class access (i.e. need an instance/object to invoke methods).
317
+ * A <code>CollectionsInstance</code> instance enables <code>Collections</code> method invocations.</em>
318
+ * </p>
319
+ * @return a wrapper instance for <code>java.util.Collections</code>
320
+ */
321
+ export function getCollectionsInstance(): CollectionsInstance;
322
+
323
+ /**
324
+ * Gets a <code>java.lang.Math</code> wrapper instance.
325
+ *
326
+ * <p>
327
+ * <em>The <code>Math</code> class contains static methods only and can't be instantiated. This is a problem if your
328
+ * scripting language (e.g. Velocity) doesn't support static class access (i.e. need an instance/object to invoke methods).
329
+ * A <code>MathInstance</code> instance enables <code>Math</code> method invocations.</em>
330
+ * </p>
331
+ * @return a wrapper instance for <code>java.lang.Math</code>
332
+ */
333
+ export function getMathInstance(): MathInstance;
334
+
335
+ /**
336
+ * Creates a boolean array with a given size.
337
+ * @param aSize the array size
338
+ * @return a boolean array with aSize length, or empty array if aSize is zero or negative
339
+ * @see ArraysInstance
340
+ * @since Sitevision 4.5.5
341
+ */
342
+ export function getBooleanArray(aSize: number): boolean;
343
+
344
+ /**
345
+ * Creates a byte array with a given size.
346
+ * @param aSize the array size
347
+ * @return a byte array with aSize length, or empty array if aSize is zero or negative
348
+ * @see ArraysInstance
349
+ * @since Sitevision 4.5.5
350
+ */
351
+ export function getByteArray(aSize: number): unknown;
352
+
353
+ /**
354
+ * Creates a char array with a given size.
355
+ * @param aSize the array size
356
+ * @return a char array with aSize length, or empty array if aSize is zero or negative
357
+ * @see ArraysInstance
358
+ * @since Sitevision 4.5.5
359
+ */
360
+ export function getCharArray(aSize: number): string;
361
+
362
+ /**
363
+ * Creates a double array with a given size.
364
+ * @param aSize the array size
365
+ * @return a double array with aSize length, or empty array if aSize is zero or negative
366
+ * @see ArraysInstance
367
+ * @since Sitevision 4.5.5
368
+ */
369
+ export function getDoubleArray(aSize: number): number;
370
+
371
+ /**
372
+ * Creates a float array with a given size.
373
+ * @param aSize the array size
374
+ * @return a float array with aSize length, or empty array if aSize is zero or negative
375
+ * @see ArraysInstance
376
+ * @since Sitevision 4.5.5
377
+ */
378
+ export function getFloatArray(aSize: number): number;
379
+
380
+ /**
381
+ * Creates a int array with a given size.
382
+ * @param aSize the array size
383
+ * @return a int array with aSize length, or empty array if aSize is zero or negative
384
+ * @see ArraysInstance
385
+ * @since Sitevision 4.5.5
386
+ */
387
+ export function getIntArray(aSize: number): number;
388
+
389
+ /**
390
+ * Creates a long array with a given size.
391
+ * @param aSize the array size
392
+ * @return a long array with aSize length, or empty array if aSize is zero or negative
393
+ * @see ArraysInstance
394
+ * @since Sitevision 4.5.5
395
+ */
396
+ export function getLongArray(aSize: number): number;
397
+
398
+ /**
399
+ * Creates a short array with a given size.
400
+ * @param aSize the array size
401
+ * @return a short array with aSize length, or empty array if aSize is zero or negative
402
+ * @see ArraysInstance
403
+ * @since Sitevision 4.5.5
404
+ */
405
+ export function getShortArray(aSize: number): number;
406
+
407
+ /**
408
+ * Creates a String array with a given size.
409
+ * @param aSize the array size
410
+ * @return a String array with aSize length, or empty array if aSize is zero or negative
411
+ * @see ArraysInstance
412
+ * @since Sitevision 4.5.5
413
+ */
414
+ export function getStringArray(aSize: number): string;
415
+
416
+ /**
417
+ * Creates a Object array with a given size.
418
+ * @param aSize the array size
419
+ * @return a Object array with aSize length, or empty array if aSize is zero or negative
420
+ * @see ArraysInstance
421
+ * @since Sitevision 4.5.5
422
+ */
423
+ export function getObjectArray(aSize: number): unknown;
424
+
425
+ /**
426
+ * Instance creation utility that can be used in limited scripting languages (such as Velocity).
427
+ *
428
+ * <p>
429
+ * This interface contains 5 categories of methods:
430
+ * </p>
431
+ * <ol>
432
+ * <li>
433
+ * Methods for creating an object instance via a constructor (or an Enum instance via an enum name), e.g. see:<br>
434
+ * {@link InstanceCreatorUtil#getDefaultInstance(String)}<br>
435
+ * {@link InstanceCreatorUtil#getArgumentInstance(String, TypedArgument)}<br>
436
+ * {@link InstanceCreatorUtil#getArgumentsInstance(String, java.util.List)}<br>
437
+ * {@link InstanceCreatorUtil#getEnumInstance(String, String)}<br>
438
+ * &nbsp;
439
+ * </li>
440
+ * <li>
441
+ * Methods needed to properly describe constructor arguments for the first category above, e.g see:<br>
442
+ * {@link InstanceCreatorUtil#getObjectArgument(Object)}<br>
443
+ * {@link InstanceCreatorUtil#getNullArgument(String)}<br>
444
+ * {@link InstanceCreatorUtil#getCustomArgument(String, Object)}<br>
445
+ * {@link InstanceCreatorUtil#getIntArgument(int)}<br>
446
+ * ...<br>
447
+ * &nbsp;
448
+ * </li>
449
+ * <li>
450
+ * Methods that creates wrappers for certain non-instantiable classes (enables instance-level invocation on their static methods), e.g. see:<br>
451
+ * {@link InstanceCreatorUtil#getArraysInstance()}<br>
452
+ * {@link InstanceCreatorUtil#getCollectionsInstance()}<br>
453
+ * {@link InstanceCreatorUtil#getMathInstance()}<br>
454
+ * &nbsp;
455
+ * </li>
456
+ * <li>
457
+ * Convenience methods for creating common object instances or helpers, e.g. see:<br>
458
+ * {@link InstanceCreatorUtil#getList()}<br>
459
+ * {@link InstanceCreatorUtil#getMap()}<br>
460
+ * {@link InstanceCreatorUtil#getLinkedMap()}<br>
461
+ * {@link InstanceCreatorUtil#getSet()}<br>
462
+ * {@link InstanceCreatorUtil#getListWrapper()}<br>
463
+ * &nbsp;
464
+ * </li>
465
+ * <li>
466
+ * Methods to create Java arrays, e.g see:<br>
467
+ * {@link InstanceCreatorUtil#getBooleanArray(int)}<br>
468
+ * {@link InstanceCreatorUtil#getByteArray(int)}<br>
469
+ * {@link InstanceCreatorUtil#getCharArray(int)}<br>
470
+ * {@link InstanceCreatorUtil#getDoubleArray(int)}<br>
471
+ * {@link InstanceCreatorUtil#getFloatArray(int)} <br>
472
+ * {@link InstanceCreatorUtil#getIntArray(int)}<br>
473
+ * {@link InstanceCreatorUtil#getLongArray(int)}<br>
474
+ * {@link InstanceCreatorUtil#getObjectArray(int)} <br>
475
+ * {@link InstanceCreatorUtil#getShortArray(int)} <br>
476
+ * {@link InstanceCreatorUtil#getStringArray(int)}<br>
477
+ * </li>
478
+ * </ol>
479
+ *
480
+ * <p>
481
+ * An instance of the Sitevision class implementing this interface can be obtained via
482
+ * {@link senselogic.sitevision.api.Utils#getInstanceCreatorUtil()}.
483
+ * See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
484
+ * </p>Creates and returns an instance of a specified Java class using the default constructor.
485
+ *
486
+ * <p>
487
+ * Example of how to create a <code>Date</code> instance in Velocity:
488
+ * </p>
489
+ * <pre><code>
490
+ * #set ($instanceCreatorUtil = $sitevisionUtils.instanceCreatorUtil)
491
+ * #set ($now = $instanceCreatorUtil.getDefaultInstance('java.util.Date'))
492
+ * </code></pre>
493
+ *
494
+ * <p>
495
+ * <strong>Note!</strong> This method will <em>not</em> create any objects of any classes that has a fully qualified class name
496
+ * that starts with <code>senselogic.sitevision</code> and resides outside the <code>api</code> package.
497
+ * </p>Creates and returns an instance of a specified Java class using a single argument constructor.
498
+ *
499
+ * <p>
500
+ * Example of how to create an <code>StringBuilder</code> instance with the initial capacity 500 in Velocity
501
+ * (i.e. invoke the StringBuilder(int) constructor):
502
+ * </p>
503
+ * <pre><code>
504
+ * #set ($instanceCreatorUtil = $sitevisionUtils.instanceCreatorUtil)
505
+ * #set ($capacityIntArgument = $instanceCreatorUtil.getIntArgument(500))
506
+ * #set ($buffer = $instanceCreatorUtil.getArgumentInstance('java.lang.StringBuilder', $capacityIntArgument))
507
+ * </code></pre>
508
+ *
509
+ * <p>
510
+ * <strong>Note!</strong> This method will <em>not</em> create any objects of any classes that has a fully qualified class name that starts with
511
+ * <code>senselogic.sitevision</code> and resides outside the <code>api</code> package.
512
+ * </p>Creates and returns an instance of a specified Java class using a multiple argument constructor.
513
+ *
514
+ * <p>
515
+ * Example of how to create an <code>Locale</code> instance with language "en" and country "US" in Velocity
516
+ * (i.e. invoke the Locale(String,String) constructor):
517
+ * </p>
518
+ * <pre><code>
519
+ * #set ($instanceCreatorUtil = $sitevisionUtils.instanceCreatorUtil)
520
+ *
521
+ * <em>## Set up arguments</em>
522
+ * #set ($args = $instanceCreatorUtil.listWrapper) <em>## Use ListWrapper to prohibit output when invoking the "add" method...</em>
523
+ * $args.add($instanceCreatorUtil.getObjectArgument('en')) <em>## Add first argument (language)</em>
524
+ * $args.add($instanceCreatorUtil.getObjectArgument('US')) <em>## Add second argument (country)</em>
525
+ *
526
+ * <em>## Create instance with arguments</em>
527
+ * #set ($americanLocale = $instanceCreatorUtil.getArgumentsInstance('java.util.Locale', $args.unwrap())) <em>## unwrap() to get actual List</em>
528
+ * </code></pre>
529
+ *
530
+ * <p>
531
+ * <strong>Note!</strong> This method will <em>not</em> create any objects of any classes that has a fully qualified class name that
532
+ * starts with <code>senselogic.sitevision</code> and resides outside the <code>api</code> package.
533
+ * </p>Gets a typed argument for a <code>byte</code> primitive.Gets a typed argument for a <code>short</code> primitive.Gets a typed argument for a <code>int</code> primitive.Gets a typed argument for a <code>long</code> primitive.Gets a typed argument for a <code>float</code> primitive.Gets a typed argument for a <code>double</code> primitive.Gets a typed argument for a <code>char</code> primitive.Gets a typed argument for a <code>boolean</code> primitive.Gets a typed argument for an <code>Object</code>.
534
+ *
535
+ * <p>
536
+ * <strong>Note!</strong> This method can <strong>only</strong> be used if the class of your actual
537
+ * <em>instance exactly match the type required</em> by the constructor you are trying to invoke! If types mismatch, you must use
538
+ * {@link #getCustomArgument(String, Object)} instead.
539
+ * </p>Gets a typed argument for a <code>null</code> value for a specified class/interface.
540
+ *
541
+ * <p>
542
+ * <strong>Note!</strong> This method <strong>must</strong> be used if you should pass a <code>null</code> value to a constructor!
543
+ * </p>Gets a typed argument that specifies a certain class/interface for an object.
544
+ *
545
+ * <p>
546
+ * <strong>Note!</strong> This method <strong>must</strong> be used if the class of your actual
547
+ * <em>instance doesn't exactly match the type required</em> by the constructor you are trying to invoke! Typical cases for when to use
548
+ * this method are:
549
+ * </p>
550
+ * <ul>
551
+ * <li>The class of your instance <em>extends</em> the type required (class) by the constructor</li>
552
+ * <li>The class of your instance <em>implements</em> the type required (interface) by the constructor</li>
553
+ * </ul>
554
+ *
555
+ * <p>
556
+ * Example of how to create a <code>ArrayList</code> instance in Velocity via the <code>ArrayList(Collection)</code> constructor:
557
+ * </p>
558
+ * <pre><code>
559
+ * #set ($myList = ...) <em>## $myList.class is NOT Collection, it's ArrayList, Vector or another Collection implementation...</em>
560
+ *
561
+ * #set ($instanceCreatorUtil = $sitevisionUtils.instanceCreatorUtil)
562
+ * #set ($aCollectionsTypeArgument = $instanceCreatorUtil.getCustomArgument('java.util.Collection', $myList))
563
+ * #set ($anArrayList = $instanceCreatorUtil.getArgumentInstance('java.util.ArrayList', $aCollectionsTypeArgument))
564
+ * </code></pre>Gets a typed argument for an <code>Enum</code> value for a specified enum class.Gets an enum instance for a specified enum class.
565
+ *
566
+ * <p>
567
+ * Example of how to create the {@link senselogic.sitevision.api.webresource.doctype.DocType#HTML5} instance
568
+ * of {@link senselogic.sitevision.api.webresource.doctype.DocType} in Velocity:
569
+ * </p>
570
+ * <pre><code>
571
+ * #set ($instanceCreatorUtil = $sitevisionUtils.instanceCreatorUtil)
572
+ * #set ($html5Enum = $instanceCreatorUtil.getEnumInstance('senselogic.sitevision.api.webresource.doctype.DocType', 'HTML5'))
573
+ * </code></pre>
574
+ *
575
+ * <p>
576
+ * Example of how to create the <code>SECONDS</code> instance of <code>java.util.concurrent.TimeUnit</code> in Velocity:
577
+ * </p>
578
+ * <pre><code>
579
+ * #set ($instanceCreatorUtil = $sitevisionUtils.instanceCreatorUtil)
580
+ * #set ($secondsEnum = $instanceCreatorUtil.getEnumInstance('java.util.concurrent.TimeUnit', 'SECONDS'))
581
+ * </code></pre>
582
+ *
583
+ * <p>
584
+ * Example of how to create the {@link senselogic.sitevision.api.search.index.IndexUtil.IndexType#USER_IDENTITY} instance
585
+ * of {@link senselogic.sitevision.api.search.index.IndexUtil.IndexType} (note that <code>IndexType</code> is an "inner"
586
+ * enum of <code>IndexUtil</code>) in Velocity:
587
+ * </p>
588
+ * <pre><code>
589
+ * #set ($instanceCreatorUtil = $sitevisionUtils.instanceCreatorUtil)
590
+ *
591
+ * <em>## Note that '$' is used to separate outer class from inner enum</em>
592
+ * #set ($enumClassName = 'senselogic.sitevision.api.search.index.IndexUtil$IndexType')
593
+ * #set ($userIdentityType = $instanceCreatorUtil.getEnumInstance($enumClassName, 'USER_IDENTITY'))
594
+ * </code></pre>Convenience method to get an <code>ArrayList</code> instance.Convenience method to get a <code>HashSet</code> instance.Convenience method to get a <code>HashMap</code> instance.Convenience method to get a <code>LinkedHashMap</code> instance.Gets a <code>ListWrapper</code> instance.
595
+ *
596
+ * <p>
597
+ * <em>The <code>java.util.List</code> interface specifies that the <code>add</code> method should return a <code>boolean</code>.
598
+ * This is a problem if your scripting language (e.g. Velocity) requires you to suppress the returned value so it won't end up
599
+ * in the resulting output. A <code>ListWrapper</code> instance enables such suppressing.</em>
600
+ * </p>Gets a <code>java.util.Arrays</code> wrapper instance.
601
+ *
602
+ * <p>
603
+ * <em>The <code>Arrays</code> class contains static methods only and can't be instantiated. This is a problem if your
604
+ * scripting language (e.g. Velocity) doesn't support static class access (i.e. need an instance/object to invoke methods).
605
+ * An <code>ArraysInstance</code> instance enables <code>Arrays</code> method invocations.</em>
606
+ * </p>Gets a <code>java.util.Collections</code> wrapper instance.
607
+ *
608
+ * <p>
609
+ * <em>The <code>Collections</code> class contains static methods only and can't be instantiated. This is a problem if your
610
+ * scripting language (e.g. Velocity) doesn't support static class access (i.e. need an instance/object to invoke methods).
611
+ * A <code>CollectionsInstance</code> instance enables <code>Collections</code> method invocations.</em>
612
+ * </p>Gets a <code>java.lang.Math</code> wrapper instance.
613
+ *
614
+ * <p>
615
+ * <em>The <code>Math</code> class contains static methods only and can't be instantiated. This is a problem if your
616
+ * scripting language (e.g. Velocity) doesn't support static class access (i.e. need an instance/object to invoke methods).
617
+ * A <code>MathInstance</code> instance enables <code>Math</code> method invocations.</em>
618
+ * </p>Creates a boolean array with a given size.Creates a byte array with a given size.Creates a char array with a given size.Creates a double array with a given size.Creates a float array with a given size.Creates a int array with a given size.Creates a long array with a given size.Creates a short array with a given size.Creates a String array with a given size.Creates a Object array with a given size.
619
+ * @author Magnus Lövgren
620
+ * @since Sitevision 3.1
621
+ */
622
+ declare namespace InstanceCreatorUtil {
623
+ export {
624
+ getDefaultInstance,
625
+ getArgumentInstance,
626
+ getArgumentsInstance,
627
+ getByteArgument,
628
+ getShortArgument,
629
+ getIntArgument,
630
+ getLongArgument,
631
+ getFloatArgument,
632
+ getDoubleArgument,
633
+ getCharArgument,
634
+ getBooleanArgument,
635
+ getObjectArgument,
636
+ getNullArgument,
637
+ getCustomArgument,
638
+ getEnumArgument,
639
+ getEnumInstance,
640
+ getList,
641
+ getSet,
642
+ getMap,
643
+ getLinkedMap,
644
+ getListWrapper,
645
+ getArraysInstance,
646
+ getCollectionsInstance,
647
+ getMathInstance,
648
+ getBooleanArray,
649
+ getByteArray,
650
+ getCharArray,
651
+ getDoubleArray,
652
+ getFloatArray,
653
+ getIntArray,
654
+ getLongArray,
655
+ getShortArray,
656
+ getStringArray,
657
+ getObjectArray,
658
+ };
659
+ }
660
+
661
+ export default InstanceCreatorUtil;