@sitevision/api 1.0.19 → 1.1.0-alpha.1

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 (299) hide show
  1. package/common/router/index.d.ts +1 -1
  2. package/hidden/javax/jcr/Binary/index.d.ts +86 -0
  3. package/hidden/javax/jcr/Credentials/index.d.ts +11 -0
  4. package/hidden/javax/jcr/ImportUUIDBehavior/index.d.ts +11 -0
  5. package/hidden/javax/jcr/Item/index.d.ts +353 -0
  6. package/hidden/javax/jcr/ItemVisitor/index.d.ts +41 -0
  7. package/hidden/javax/jcr/NamespaceRegistry/index.d.ts +100 -0
  8. package/hidden/javax/jcr/Node/index.d.ts +2808 -0
  9. package/hidden/javax/jcr/NodeIterator/index.d.ts +18 -0
  10. package/hidden/javax/jcr/Property/index.d.ts +801 -0
  11. package/hidden/javax/jcr/PropertyIterator/index.d.ts +17 -0
  12. package/hidden/javax/jcr/RangeIterator/index.d.ts +75 -0
  13. package/hidden/javax/jcr/Repository/index.d.ts +318 -0
  14. package/hidden/javax/jcr/RepositoryFactory/index.d.ts +90 -0
  15. package/hidden/javax/jcr/Value/index.d.ts +190 -0
  16. package/hidden/javax/jcr/ValueFactory/index.d.ts +179 -0
  17. package/hidden/javax/jcr/Workspace/index.d.ts +1061 -0
  18. package/hidden/javax/jcr/lock/Lock/index.d.ts +142 -0
  19. package/hidden/javax/jcr/lock/LockManager/index.d.ts +217 -0
  20. package/hidden/javax/jcr/nodetype/ItemDefinition/index.d.ts +219 -0
  21. package/hidden/javax/jcr/nodetype/NodeDefinition/index.d.ts +158 -0
  22. package/hidden/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +74 -0
  23. package/hidden/javax/jcr/nodetype/NodeType/index.d.ts +349 -0
  24. package/hidden/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +248 -0
  25. package/hidden/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +16 -0
  26. package/hidden/javax/jcr/nodetype/NodeTypeManager/index.d.ts +218 -0
  27. package/hidden/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +98 -0
  28. package/hidden/javax/jcr/nodetype/PropertyDefinition/index.d.ts +536 -0
  29. package/hidden/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +97 -0
  30. package/hidden/javax/jcr/observation/Event/index.d.ts +133 -0
  31. package/hidden/javax/jcr/observation/EventIterator/index.d.ts +20 -0
  32. package/hidden/javax/jcr/observation/EventJournal/index.d.ts +22 -0
  33. package/hidden/javax/jcr/observation/EventListener/index.d.ts +23 -0
  34. package/hidden/javax/jcr/observation/EventListenerIterator/index.d.ts +20 -0
  35. package/hidden/javax/jcr/observation/ObservationManager/index.d.ts +227 -0
  36. package/hidden/javax/jcr/query/Query/index.d.ts +201 -0
  37. package/hidden/javax/jcr/query/QueryManager/index.d.ts +73 -0
  38. package/hidden/javax/jcr/query/QueryResult/index.d.ts +51 -0
  39. package/hidden/javax/jcr/query/Row/index.d.ts +159 -0
  40. package/hidden/javax/jcr/query/RowIterator/index.d.ts +20 -0
  41. package/hidden/javax/jcr/query/qom/And/index.d.ts +26 -0
  42. package/hidden/javax/jcr/query/qom/BindVariableValue/index.d.ts +15 -0
  43. package/hidden/javax/jcr/query/qom/ChildNode/index.d.ts +27 -0
  44. package/hidden/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +27 -0
  45. package/hidden/javax/jcr/query/qom/Column/index.d.ts +39 -0
  46. package/hidden/javax/jcr/query/qom/Comparison/index.d.ts +82 -0
  47. package/hidden/javax/jcr/query/qom/Constraint/index.d.ts +13 -0
  48. package/hidden/javax/jcr/query/qom/DescendantNode/index.d.ts +31 -0
  49. package/hidden/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +29 -0
  50. package/hidden/javax/jcr/query/qom/DynamicOperand/index.d.ts +9 -0
  51. package/hidden/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +41 -0
  52. package/hidden/javax/jcr/query/qom/FullTextSearch/index.d.ts +89 -0
  53. package/hidden/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +24 -0
  54. package/hidden/javax/jcr/query/qom/Join/index.d.ts +36 -0
  55. package/hidden/javax/jcr/query/qom/JoinCondition/index.d.ts +9 -0
  56. package/hidden/javax/jcr/query/qom/Length/index.d.ts +24 -0
  57. package/hidden/javax/jcr/query/qom/Literal/index.d.ts +18 -0
  58. package/hidden/javax/jcr/query/qom/LowerCase/index.d.ts +26 -0
  59. package/hidden/javax/jcr/query/qom/NodeLocalName/index.d.ts +16 -0
  60. package/hidden/javax/jcr/query/qom/NodeName/index.d.ts +16 -0
  61. package/hidden/javax/jcr/query/qom/Not/index.d.ts +20 -0
  62. package/hidden/javax/jcr/query/qom/Operand/index.d.ts +9 -0
  63. package/hidden/javax/jcr/query/qom/Or/index.d.ts +30 -0
  64. package/hidden/javax/jcr/query/qom/Ordering/index.d.ts +53 -0
  65. package/hidden/javax/jcr/query/qom/PropertyExistence/index.d.ts +24 -0
  66. package/hidden/javax/jcr/query/qom/PropertyValue/index.d.ts +25 -0
  67. package/hidden/javax/jcr/query/qom/QueryObjectModel/index.d.ts +64 -0
  68. package/hidden/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +9 -0
  69. package/hidden/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +638 -0
  70. package/hidden/javax/jcr/query/qom/SameNode/index.d.ts +27 -0
  71. package/hidden/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +36 -0
  72. package/hidden/javax/jcr/query/qom/Selector/index.d.ts +35 -0
  73. package/hidden/javax/jcr/query/qom/Source/index.d.ts +9 -0
  74. package/hidden/javax/jcr/query/qom/StaticOperand/index.d.ts +10 -0
  75. package/hidden/javax/jcr/query/qom/UpperCase/index.d.ts +26 -0
  76. package/hidden/javax/jcr/retention/Hold/index.d.ts +34 -0
  77. package/hidden/javax/jcr/retention/RetentionManager/index.d.ts +189 -0
  78. package/hidden/javax/jcr/retention/RetentionPolicy/index.d.ts +21 -0
  79. package/hidden/javax/jcr/security/AccessControlEntry/index.d.ts +24 -0
  80. package/hidden/javax/jcr/security/AccessControlList/index.d.ts +91 -0
  81. package/hidden/javax/jcr/security/AccessControlManager/index.d.ts +297 -0
  82. package/hidden/javax/jcr/security/AccessControlPolicy/index.d.ts +11 -0
  83. package/hidden/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +20 -0
  84. package/hidden/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +22 -0
  85. package/hidden/javax/jcr/security/Privilege/index.d.ts +117 -0
  86. package/hidden/javax/jcr/version/Version/index.d.ts +121 -0
  87. package/hidden/javax/jcr/version/VersionHistory/index.d.ts +307 -0
  88. package/hidden/javax/jcr/version/VersionIterator/index.d.ts +20 -0
  89. package/hidden/javax/jcr/version/VersionManager/index.d.ts +1082 -0
  90. package/hidden/senselogic/sitevision/api/base/Builder/index.d.ts +102 -0
  91. package/hidden/senselogic/sitevision/api/base/Filter/index.d.ts +25 -0
  92. package/hidden/senselogic/sitevision/api/base/FilterSplit/index.d.ts +50 -0
  93. package/hidden/senselogic/sitevision/api/base/Loadable/index.d.ts +15 -0
  94. package/hidden/senselogic/sitevision/api/base/Resolver/index.d.ts +31 -0
  95. package/hidden/senselogic/sitevision/api/base/Wrapper/index.d.ts +24 -0
  96. package/hidden/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +417 -0
  97. package/hidden/senselogic/sitevision/api/format/NumericFormatter/index.d.ts +80 -0
  98. package/hidden/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +100 -0
  99. package/hidden/senselogic/sitevision/api/i18n/Currency/index.d.ts +120 -0
  100. package/hidden/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +45 -0
  101. package/hidden/senselogic/sitevision/api/link/CustomLinkRenderData/index.d.ts +65 -0
  102. package/hidden/senselogic/sitevision/api/mail/Mail/index.d.ts +32 -0
  103. package/hidden/senselogic/sitevision/api/message/MessageTextLinker/index.d.ts +15 -0
  104. package/hidden/senselogic/sitevision/api/metadata/value/LinkValue/index.d.ts +23 -0
  105. package/hidden/senselogic/sitevision/api/metadata/value/RelatedValue/index.d.ts +23 -0
  106. package/hidden/senselogic/sitevision/api/property/VersionedPropertyUtil/index.d.ts +642 -0
  107. package/hidden/senselogic/sitevision/api/render/BuddyIconRenderer/BuddyIconInfo/index.d.ts +51 -0
  108. package/hidden/senselogic/sitevision/api/render/ImageScaler/index.d.ts +58 -0
  109. package/hidden/senselogic/sitevision/api/render/TextModuleRenderer/index.d.ts +301 -0
  110. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ArticleUtilConstants/index.d.ts +85 -0
  111. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ExceptionSuppressingProxyConstants/index.d.ts +31 -0
  112. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/IndexingUtilConstants/index.d.ts +31 -0
  113. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/LinkPageUtilConstants/index.d.ts +67 -0
  114. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MathInstanceConstants/index.d.ts +25 -0
  115. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MimeTypeUtilConstants/index.d.ts +19 -0
  116. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/NodeTypeUtilConstants/index.d.ts +1243 -0
  117. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/OutputUtilConstants/index.d.ts +31 -0
  118. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PageUtilConstants/index.d.ts +91 -0
  119. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletContextUtilConstants/index.d.ts +27 -0
  120. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletUtilConstants/index.d.ts +19 -0
  121. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/QueryStringUtilConstants/index.d.ts +19 -0
  122. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchHitConstants/index.d.ts +25 -0
  123. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchResultConstants/index.d.ts +37 -0
  124. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/VersionUtilConstants/index.d.ts +25 -0
  125. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/index.d.ts +8 -0
  126. package/hidden/senselogic/sitevision/api/render/velocity/VelocityContext/index.d.ts +50 -0
  127. package/hidden/senselogic/sitevision/api/render/velocity/VelocityEvaluator/index.d.ts +89 -0
  128. package/hidden/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +119 -0
  129. package/hidden/senselogic/sitevision/api/script/app/RestAppInvoker/index.d.ts +272 -0
  130. package/hidden/senselogic/sitevision/api/script/factory/TypedArgument/index.d.ts +43 -0
  131. package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingCollection/index.d.ts +94 -0
  132. package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingIterator/index.d.ts +117 -0
  133. package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +90 -0
  134. package/hidden/senselogic/sitevision/api/search/SearchFieldUtil/index.d.ts +89 -0
  135. package/hidden/senselogic/sitevision/api/search/SearchHighlighter/index.d.ts +45 -0
  136. package/hidden/senselogic/sitevision/api/search/SearchHit/index.d.ts +1176 -0
  137. package/hidden/senselogic/sitevision/api/search/SearchResult/index.d.ts +414 -0
  138. package/hidden/senselogic/sitevision/api/search/facet/SearchFacetField/index.d.ts +27 -0
  139. package/hidden/senselogic/sitevision/api/search/facet/SearchFacetValue/index.d.ts +61 -0
  140. package/hidden/senselogic/sitevision/api/search/searcher/Searcher/index.d.ts +277 -0
  141. package/hidden/senselogic/sitevision/api/search/searcher/component/Filter/index.d.ts +25 -0
  142. package/hidden/senselogic/sitevision/api/search/searcher/component/Highlight/index.d.ts +29 -0
  143. package/hidden/senselogic/sitevision/api/search/searcher/component/Monitor/index.d.ts +25 -0
  144. package/hidden/senselogic/sitevision/api/search/searcher/component/Parser/index.d.ts +35 -0
  145. package/hidden/senselogic/sitevision/api/search/searcher/component/Sort/index.d.ts +25 -0
  146. package/hidden/senselogic/sitevision/api/search/searcher/component/SpellCheck/index.d.ts +29 -0
  147. package/hidden/senselogic/sitevision/api/search/sort/CustomSort/index.d.ts +82 -0
  148. package/hidden/senselogic/sitevision/api/search/suggestion/SearchSuggestion/index.d.ts +21 -0
  149. package/hidden/senselogic/sitevision/api/security/DirectoryAttributes/index.d.ts +70 -0
  150. package/hidden/senselogic/sitevision/api/security/MessageDigester/index.d.ts +50 -0
  151. package/hidden/senselogic/sitevision/api/security/RoleAssignment/index.d.ts +72 -0
  152. package/hidden/senselogic/sitevision/api/security/RoleMatcher/index.d.ts +29 -0
  153. package/hidden/senselogic/sitevision/api/security/SecretStore/index.d.ts +55 -0
  154. package/hidden/senselogic/sitevision/api/security/UserUtil/index.d.ts +80 -0
  155. package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +36 -0
  156. package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilterChain/index.d.ts +32 -0
  157. package/hidden/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +599 -0
  158. package/hidden/senselogic/sitevision/api/webresource/LinkTarget/index.d.ts +20 -0
  159. package/hidden/senselogic/sitevision/api/xml/XmlElement/index.d.ts +55 -0
  160. package/hidden/senselogic/sitevision/api/xml/XmlElementHandler/index.d.ts +17 -0
  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
@@ -1,107 +1,184 @@
1
- import Calendar from '../../builtins/Calendar';
2
- import Date from '../../builtins/Date';
3
- import Locale from '../../builtins/Locale';
4
-
5
1
  /**
6
- * Formats a calendar according to the ISO8601 specification.
7
- * @returns {string} aString the calendar date formatted as a ISO8601 string, or null if aCalendar is null
8
- * @param {Calendar} aCalendar - a Calendar that needs to be formatted
9
- */
10
- export function getCalendarAsISO8601String(aCalendar: Calendar): string;
2
+ * Formats a date according to the ISO8601 specification.
3
+ *
4
+ * <p>
5
+ * <em>An example:</em> A date representing february 3, 2001 at 04:45 in an +1h UTC timezone offset would be
6
+ * ISO8601 formatted as <code>2001-02-03T04:05+01:00</code>.
7
+ * </p>
8
+ * @param aDate a <code>Date</code> that needs to be formatted
9
+ * @return the date formatted as a ISO8601 string, or <code>null</code> if <code>aDate</code> is <code>null</code>
10
+ */
11
+ export function getDateAsISO8601String(aDate: unknown): string;
11
12
 
12
13
  /**
13
- * Formats the date of a Calendar according to a SimpleDateFormat pattern.
14
- * @returns {string} returns a String representation of aCalendar according to aFormatPattern (and resolved Locale).Returns null if formatting fails or aCalendar is null
15
- * @param {string} aFormatPattern - date to string pattern according to SimpleDateFormat. Default pattern will be used if aFormatPattern is null or blank
16
- * @param {Calendar} aCalendar - the Calendar
17
- */
18
- export function getCalendarAsString(aFormatPattern: string, aCalendar: Calendar): string;
14
+ * Formats a calendar according to the ISO8601 specification.
15
+ *
16
+ * <p>
17
+ * <em>An example:</em> A calendar representing february 3, 2001 at 04:45 in an +1h UTC timezone offset would be
18
+ * ISO8601 formatted as <code>2001-02-03T04:05+01:00</code>.
19
+ * </p>
20
+ * @param aCalendar a <code>Calendar</code> that needs to be formatted
21
+ * @return aString the calendar date formatted as a ISO8601 string, or <code>null</code> if <code>aCalendar</code> is <code>null</code>
22
+ */
23
+ export function getCalendarAsISO8601String(aCalendar: unknown): string;
19
24
 
20
25
  /**
21
- * Formats the date of a Calendar according to a SimpleDateFormat pattern and a given Locale.
22
- * @returns {string} returns a String representation of aCalendar according to aFormatPattern (and resolved Locale).Returns null if formatting fails or aCalendar or aLocale is null
23
- * @param {string} aFormatPattern - date to string pattern according to SimpleDateFormat. Default pattern will be used if aFormatPattern is null or blank
24
- * @param {Calendar} aCalendar - the Calendar
25
- * @param {Locale} aLocale - the Locale
26
- */
27
- export function getCalendarAsString(aFormatPattern: string, aCalendar: Calendar, aLocale: Locale): string;
26
+ * Gets the date format pattern used in the Sitevision editor for a specific Locale.
27
+ * @param aLocale the <code>Locale</code> that specifies the date format pattern
28
+ * @return the date format pattern used in the Sitevision editor that corresponds to <code>aLocale</code>. If <code>aLocale</code> is <code>null</code> then the current locale (as of {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()}) is used to locate the format pattern. If no pattern exist for <code>aLocale</code> then the pattern that corresponds to <code>Locale.ENGLISH</code> will be returned.
29
+ */
30
+ export function getEditorFormatPattern(aLocale: unknown): string;
28
31
 
29
32
  /**
30
- * Formats a date according to the ISO8601 specification.
31
- * @returns {string} the date formatted as a ISO8601 string, or null if aDate is null
32
- * @param {Date} aDate - a Date that needs to be formatted
33
- */
34
- export function getDateAsISO8601String(aDate: Date): string;
33
+ * Formats a Date according to a <code>SimpleDateFormat</code> pattern.
34
+ *
35
+ * <p>
36
+ * <em>Note!</em> The current locale as of {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()} will be used.
37
+ * If current locale is unavailable, <code>Locale.getDefault()</code> will be used.
38
+ * </p>
39
+ * @param aFormatPattern date to string pattern according to SimpleDateFormat. Default pattern will be used if aFormatPattern is null or blank
40
+ * @param aDate the Date
41
+ * @return returns a String representation of aDate according to aFormatPattern (and resolved Locale). Returns null if formatting fails or aDate is null
42
+ * @see #getDateAsString(String, Date, Locale)
43
+ */
44
+ export function getDateAsString(aFormatPattern: string, aDate: unknown): string;
35
45
 
36
46
  /**
37
- * Formats a Date according to a SimpleDateFormat pattern.
38
- * @returns {string} returns a String representation of aDate according to aFormatPattern (and resolved Locale).Returns null if formatting fails or aDate is null
39
- * @param {string} aFormatPattern - date to string pattern according to SimpleDateFormat. Default pattern will be used if aFormatPattern is null or blank
40
- * @param {Date} aDate - the Date
41
- */
42
- export function getDateAsString(aFormatPattern: string, aDate: Date): string;
47
+ * Formats a Date according to a <code>SimpleDateFormat</code> pattern using a given Locale.
48
+ * @param aFormatPattern date to string pattern according to SimpleDateFormat. Default pattern will be used if aFormatPattern is null or blank
49
+ * @param aDate the Date
50
+ * @param aLocale the Locale
51
+ * @return returns a String representation of aDate according to aFormatPattern (and resolved Locale). Returns null if formatting fails or aDate or aLocale is null
52
+ * @since Sitevision 8.2
53
+ */
54
+ export function getDateAsString(
55
+ aFormatPattern: string,
56
+ aDate: unknown,
57
+ aLocale: unknown
58
+ ): string;
43
59
 
44
60
  /**
45
- * Formats a Date according to a SimpleDateFormat pattern using a given Locale.
46
- * @returns {string} returns a String representation of aDate according to aFormatPattern (and resolved Locale).Returns null if formatting fails or aDate or aLocale is null
47
- * @param {string} aFormatPattern - date to string pattern according to SimpleDateFormat. Default pattern will be used if aFormatPattern is null or blank
48
- * @param {Date} aDate - the Date
49
- * @param {Locale} aLocale - the Locale
50
- */
51
- export function getDateAsString(aFormatPattern: string, aDate: Date, aLocale: Locale): string;
61
+ * Formats the date of a Calendar according to a <code>SimpleDateFormat</code> pattern.
62
+ *
63
+ * <p>
64
+ * <em>Note!</em> The current locale as of {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()} will be used.
65
+ * If current locale is unavailable, <code>Locale.getDefault()</code> will be used.
66
+ * </p>
67
+ * @param aFormatPattern date to string pattern according to SimpleDateFormat. Default pattern will be used if aFormatPattern is null or blank
68
+ * @param aCalendar the Calendar
69
+ * @return returns a String representation of aCalendar according to aFormatPattern (and resolved Locale). Returns null if formatting fails or aCalendar is null
70
+ * @see #getCalendarAsString(String, Calendar, Locale)
71
+ */
72
+ export function getCalendarAsString(
73
+ aFormatPattern: string,
74
+ aCalendar: unknown
75
+ ): string;
52
76
 
53
77
  /**
54
- * Gets the date format pattern used in the Sitevision editor for a specific Locale.
55
- * @returns {string} the date format pattern used in the Sitevision editor that corresponds to aLocale.If aLocale is null then the current locale (as ofPortletContextUtil.getCurrentLocale())is used to locate the format pattern. If no pattern exist for aLocale then the pattern that corresponds toLocale.ENGLISH will be returned.
56
- * @param {Locale} aLocale - the Locale that specifies the date format pattern
57
- */
58
- export function getEditorFormatPattern(aLocale: Locale): string;
78
+ * Formats the date of a Calendar according to a <code>SimpleDateFormat</code> pattern and a given Locale.
79
+ * @param aFormatPattern date to string pattern according to SimpleDateFormat. Default pattern will be used if aFormatPattern is null or blank
80
+ * @param aCalendar the Calendar
81
+ * @param aLocale the Locale
82
+ * @return returns a String representation of aCalendar according to aFormatPattern (and resolved Locale). Returns null if formatting fails or aCalendar or aLocale is null
83
+ * @since Sitevision 8.2
84
+ */
85
+ export function getCalendarAsString(
86
+ aFormatPattern: string,
87
+ aCalendar: unknown,
88
+ aLocale: unknown
89
+ ): string;
59
90
 
60
91
  /**
61
- * Converts a date string to a Date using a SimpleDateFormat pattern.
62
- * @returns {Date} a Date representation of aDateStr, or null if parsing fails or any method argument (aDateStr, aFormatPattern) is null or blank
63
- * @param {string} aDateStr - the string representation of a Date
64
- * @param {string} aFormatPattern - string to date pattern according to SimpleDateFormat
65
- */
66
- export function parseDate(aDateStr: string, aFormatPattern: string): Date;
92
+ * Converts a Date to a Calendar.
93
+ * @param aDate a Date
94
+ * @return a Calendar representing aDate, or null if aDate is null
95
+ * @since Sitevision 4.5.5
96
+ */
97
+ export function toCalendar(aDate: unknown): unknown;
67
98
 
68
99
  /**
69
- * Converts a date string to a Date using a SimpleDateFormat pattern and a given Locale.
70
- * @returns {Date} a Date representation of aDateStr, or null if parsing fails or any method argument (aDateStr, aFormatPattern, aLocale) is null or blank
71
- * @param {string} aDateStr - the string representation of a Date
72
- * @param {string} aFormatPattern - string to date pattern according to SimpleDateFormat
73
- * @param {Locale} aLocale - the Locale
74
- */
75
- export function parseDate(aDateStr: string, aFormatPattern: string, aLocale: Locale): Date;
100
+ * Converts a Calendar to a Date.
101
+ * @param aCalendar a Calendar
102
+ * @return a Date representing aCalendar, or null if aCalendar is null
103
+ * @since Sitevision 4.5.5
104
+ */
105
+ export function toDate(aCalendar: unknown): unknown;
76
106
 
77
107
  /**
78
- * Converts a Date to a Calendar.
79
- * @returns {Calendar} a Calendar representing aDate, or null if aDate is null
80
- * @param {Date} aDate - a Date
81
- */
82
- export function toCalendar(aDate: Date): Calendar;
108
+ * Converts a date string to a Date using a <code>SimpleDateFormat</code> pattern.
109
+ *
110
+ * <p>
111
+ * <em>Note!</em> The current locale as of {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()} will be used.
112
+ * If current locale is unavailable, <code>Locale.getDefault()</code> will be used.
113
+ * </p>
114
+ * @param aDateStr the string representation of a Date
115
+ * @param aFormatPattern string to date pattern according to SimpleDateFormat
116
+ * @return a Date representation of aDateStr, or null if parsing fails or any method argument (aDateStr, aFormatPattern) is null or blank
117
+ * @since Sitevision 5.1
118
+ * @see #parseDate(String, String, Locale)
119
+ */
120
+ export function parseDate(aDateStr: string, aFormatPattern: string): unknown;
83
121
 
84
122
  /**
85
- * Converts a Calendar to a Date.
86
- * @returns {Date} a Date representing aCalendar, or null if aCalendar is null
87
- * @param {Calendar} aCalendar - a Calendar
88
- */
89
- export function toDate(aCalendar: Calendar): Date;
123
+ * Converts a date string to a Date using a <code>SimpleDateFormat</code> pattern and a given Locale.
124
+ * @param aDateStr the string representation of a Date
125
+ * @param aFormatPattern string to date pattern according to SimpleDateFormat
126
+ * @param aLocale the Locale
127
+ * @return a Date representation of aDateStr, or null if parsing fails or any method argument (aDateStr, aFormatPattern, aLocale) is null or blank
128
+ * @since Sitevision 8.2
129
+ */
130
+ export function parseDate(
131
+ aDateStr: string,
132
+ aFormatPattern: string,
133
+ aLocale: unknown
134
+ ): unknown;
90
135
 
91
- declare namespace dateUtil {
136
+ /**
137
+ * Date utility interface.
138
+ *
139
+ * <p>
140
+ * An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getDateUtil()}.
141
+ * See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
142
+ * </p>Formats a date according to the ISO8601 specification.
143
+ *
144
+ * <p>
145
+ * <em>An example:</em> A date representing february 3, 2001 at 04:45 in an +1h UTC timezone offset would be
146
+ * ISO8601 formatted as <code>2001-02-03T04:05+01:00</code>.
147
+ * </p>Formats a calendar according to the ISO8601 specification.
148
+ *
149
+ * <p>
150
+ * <em>An example:</em> A calendar representing february 3, 2001 at 04:45 in an +1h UTC timezone offset would be
151
+ * ISO8601 formatted as <code>2001-02-03T04:05+01:00</code>.
152
+ * </p>Gets the date format pattern used in the Sitevision editor for a specific Locale.Formats a Date according to a <code>SimpleDateFormat</code> pattern.
153
+ *
154
+ * <p>
155
+ * <em>Note!</em> The current locale as of {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()} will be used.
156
+ * If current locale is unavailable, <code>Locale.getDefault()</code> will be used.
157
+ * </p>Formats a Date according to a <code>SimpleDateFormat</code> pattern using a given Locale.Formats the date of a Calendar according to a <code>SimpleDateFormat</code> pattern.
158
+ *
159
+ * <p>
160
+ * <em>Note!</em> The current locale as of {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()} will be used.
161
+ * If current locale is unavailable, <code>Locale.getDefault()</code> will be used.
162
+ * </p>Formats the date of a Calendar according to a <code>SimpleDateFormat</code> pattern and a given Locale.Converts a Date to a Calendar.Converts a Calendar to a Date.Converts a date string to a Date using a <code>SimpleDateFormat</code> pattern.
163
+ *
164
+ * <p>
165
+ * <em>Note!</em> The current locale as of {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()} will be used.
166
+ * If current locale is unavailable, <code>Locale.getDefault()</code> will be used.
167
+ * </p>Converts a date string to a Date using a <code>SimpleDateFormat</code> pattern and a given Locale.
168
+ * @author Albin Öhrn
169
+ * @since Sitevision 3.5
170
+ */
171
+ declare namespace DateUtil {
92
172
  export {
93
- getCalendarAsISO8601String,
94
- getCalendarAsString,
95
- getCalendarAsString,
96
173
  getDateAsISO8601String,
97
- getDateAsString,
98
- getDateAsString,
174
+ getCalendarAsISO8601String,
99
175
  getEditorFormatPattern,
100
- parseDate,
101
- parseDate,
176
+ getDateAsString,
177
+ getCalendarAsString,
102
178
  toCalendar,
103
179
  toDate,
180
+ parseDate,
104
181
  };
105
182
  }
106
183
 
107
- export default dateUtil;
184
+ export default DateUtil;
@@ -0,0 +1,23 @@
1
+ import Node from "../../hidden/javax/jcr/Node";
2
+
3
+ /**
4
+ * Gets the decoration with a given name
5
+ * @param aDecorationName the name of the decoration
6
+ * @return the first decoration with name aDecorationName, or <code>null</code> if no decoration matches
7
+ */
8
+ export function getDecorationByName(aDecorationName: string): Node;
9
+
10
+ /**
11
+ * Utility interface for Decorations.
12
+ *
13
+ * <p>
14
+ * An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getDecorationUtil()}.
15
+ * See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
16
+ * </p>Gets the decoration with a given name
17
+ * @author Magnus Lövgren
18
+ */
19
+ declare namespace DecorationUtil {
20
+ export { getDecorationByName };
21
+ }
22
+
23
+ export default DecorationUtil;
@@ -0,0 +1,36 @@
1
+ import Node from "../../hidden/javax/jcr/Node";
2
+
3
+ /**
4
+ * Checks if current execution/rendering is in a mobile view.
5
+ * @return <code>true</code> if current execution is rendering in a mobile view, <code>false</code> if not
6
+ * @deprecated As of Sitevision 10 this method always returns <code>false</code>
7
+ */
8
+ export function isRenderingMobileView(): boolean;
9
+
10
+ /**
11
+ * Checks if currently executing client is a mobile device.
12
+ * @param aPageNode a page node, typically the currently executing page (see {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentPage()}). Null is allowed but device checking will be more extensive with a proper value since it will also match against all configured devices for the site of the <code>aPageNode</code>.
13
+ * @return <code>true</code> if currently executing client is a mobile device, <code>false</code> if not
14
+ * @deprecated As of Sitevision 10 the parameter aPageNode is no longer used
15
+ */
16
+ export function isMobileDevice(aPageNode: Node): boolean;
17
+
18
+ /**
19
+ * Device utility interface.
20
+ *
21
+ * <p>
22
+ * Contains methods for retrieving device-related information.
23
+ * </p>
24
+ *
25
+ * <p>
26
+ * An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getDeviceUtil()}.
27
+ * See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
28
+ * </p>Checks if current execution/rendering is in a mobile view.Checks if currently executing client is a mobile device.
29
+ * @author Magnus Lövgren
30
+ * @since Sitevision 3.0
31
+ */
32
+ declare namespace DeviceUtil {
33
+ export { isRenderingMobileView, isMobileDevice };
34
+ }
35
+
36
+ export default DeviceUtil;
@@ -1,61 +1,121 @@
1
- import Property from "../../builtins/Property";
1
+ import Node from "../../hidden/javax/jcr/Node";
2
+ import Property from "../../hidden/javax/jcr/Property";
2
3
 
3
4
  /**
4
- * Gets a directory attribute value for a directory node object as Property.
5
- * @param {Node} aDirectoryObjectNode - a directory object node that has an attribute
6
- * @param {string} anAttributeName - the attribute name
7
- * @returns {Property} the attribute value as Property, or null if indeterminate(e.g. aDirectoryObjectNode is not a directory object nodeor aDirectoryObjectNode has no attribute named anAttributeName)
8
- */
9
- export function getAttributeAsProperty(aDirectoryObjectNode: Node, anAttributeName: string): Property;
5
+ * Searches for objects in all LDAP directories that are accessible in current context (i.e. current page).
6
+ * <p>
7
+ * Some examples of <a href="http://www.ietf.org/rfc/rfc2254.txt">RFC 2254</a> valid values for <code>aSearchFilter</code>:
8
+ * <ul>
9
+ * <li><code>"magnus"</code> - find all <em>magnus</em>, using the search base specified by the directories (usually common name) </li>
10
+ * <li><code>"(cn=magnus)"</code> - find all with common name (cn) <em>magnus</em></li>
11
+ * <li><code>"(cn=magnus*)"</code> - find all that has a common name (cn) that starts with <em>magnus</em></li>
12
+ * <li><code>"(&amp;(cn=magnus)(mail=*))"</code> - find all that has a mail address and <em>magnus</em> as common name (cn)</li>
13
+ * <li><code>"(|(cn=magnus)((sn=L*)))"</code> - find all with common name (cn) <em>magnus</em> or a surname (sn) that starts with <em>L</em></li>
14
+ * </ul>
15
+ * @param aSearchFilter LDAP search filter (as specified by <a href="http://www.ietf.org/rfc/rfc2254.txt">RFC 2254</a>)
16
+ * @return the search result as a <code>List</code>. If there are no hits, an empty <code>List</code> is returned.
17
+ * @see #search(String,Node)
18
+ */
19
+ export function search(aSearchFilter: string): unknown[];
10
20
 
11
21
  /**
12
- * Gets a directory node object with a specific distinguished name, dn.
13
- * @param {string} aDirectoryObjectDN - the directory dn for a directory object
14
- * @returns {Node} the directory object Node, or null if indeterminate
15
- */
16
- export function getNodeByDN(aDirectoryObjectDN: string): Node;
22
+ * Searches for objects in a specified LDAP directory.
23
+ * <p>
24
+ * <em>Tip!</em> The repository for all LDAP directory nodes can be located via the
25
+ * {@link senselogic.sitevision.api.resource.ResourceLocatorUtil#getDirectoryRepository() getDirectoryRepository()}
26
+ * method in {@link senselogic.sitevision.api.resource.ResourceLocatorUtil}
27
+ * </p>
28
+ * @param aSearchFilter LDAP search filter (as specified by <a href="http://www.ietf.org/rfc/rfc2254.txt">RFC 2254</a>)
29
+ * @param aDirectoryNode a LDAP directory <code>Node</code>
30
+ * @return the search result as a <code>List</code>. If there are no hits, an empty <code>List</code> is returned.
31
+ * @see #search(String)
32
+ */
33
+ export function search(aSearchFilter: string, aDirectoryNode: Node): unknown[];
17
34
 
18
35
  /**
19
- * Searches for objects in all LDAP directories that are accessible in current context (i.e. current page).
20
- * @param {string} aSearchFilter - LDAP search filter (as specified by RFC 2254)
21
- * @returns {List<Node>} the search result as a List. If there are no hits, an empty List is returned.
22
- */
23
- export function search(aSearchFilter: string): List<Node>;
36
+ * Searches for objects in a specified search base in a specified LDAP directory.
37
+ * @param aSearchFilter LDAP search filter (as specified by <a href="http://www.ietf.org/rfc/rfc2254.txt">RFC 2254</a>)
38
+ * @param aDirectoryNode a LDAP directory <code>Node</code>
39
+ * @param aSearchBase a search base that exist in <code>aDirectoryNode</code>
40
+ * @return the search result as a <code>List</code>. If there are no hits, an empty <code>List</code> is returned.
41
+ * @see #search(String,Node)
42
+ */
43
+ export function search(
44
+ aSearchFilter: string,
45
+ aDirectoryNode: Node,
46
+ aSearchBase: string
47
+ ): unknown[];
24
48
 
25
49
  /**
26
- * Searches for objects in a specified LDAP directory.
27
- * @param {string} aSearchFilter - LDAP search filter (as specified by RFC 2254)
28
- * @param {Node} aDirectoryNode - a LDAP directory Node
29
- * @returns {List<Node>} the search result as a List. If there are no hits, an empty List is returned.
30
- */
31
- export function search(aSearchFilter: string, aDirectoryNode: Node): List<Node>;
50
+ * Gets a directory node object with a specific distinguished name, dn.
51
+ * @param aDirectoryObjectDN the directory dn for a directory object
52
+ * @return the directory object <code>Node</code>, or null if indeterminate
53
+ */
54
+ export function getNodeByDN(aDirectoryObjectDN: string): Node;
32
55
 
33
56
  /**
34
- * Searches for objects in a specified search base in a specified LDAP directory.
35
- * @param {string} aSearchFilter - LDAP search filter (as specified by RFC 2254)
36
- * @param {Node} aDirectoryNode - a LDAP directory Node
37
- * @param {string} aSearchBase - a search base that exist in aDirectoryNode
38
- * @returns {List<Node>} the search result as a List. If there are no hits, an empty List is returned.
39
- */
40
- export function search(aSearchFilter: string, aDirectoryNode: Node, aSearchBase: string): List<Node>;
57
+ * Gets a directory attribute value for a directory node object as <code>Property</code>.
58
+ * <p>
59
+ * The default properties for a directory node object adheres/corresponds to the attributes defined in the directory scheme.
60
+ * All attributes that are defined in the scheme are exposed as properties in the Sitevision JCR model. This method tries to
61
+ * find the attribute via the Sitevision JCR model but if no property can be found it executes LDAP queries
62
+ * to find the attribute. This makes it possible to find scheme-defined attributes, but also custom-defined ones.
63
+ * </p>
64
+ * @param aDirectoryObjectNode a directory object node that has an attribute
65
+ * @param anAttributeName the attribute name
66
+ * @return the attribute value as <code>Property</code>, or <code>null</code> if indeterminate (e.g. <code>aDirectoryObjectNode</code> is not a directory object node or <code>aDirectoryObjectNode</code> has no attribute named <code>anAttributeName</code>)
67
+ */
68
+ export function getAttributeAsProperty(
69
+ aDirectoryObjectNode: Node,
70
+ anAttributeName: string
71
+ ): Property;
41
72
 
42
73
  /**
43
- * Searches for ids in a specified search base in all directories.
44
- * @param {string} aSearchFilter - LDAP search filter (as specified by RFC 2254)
45
- * @param {string} searchBase - search base for the search, if null all directories for current node will be searched
46
- * @param {List<string>} attributes - a List of return attributes
47
- * @returns {Map<string,Map<string,string>>} the search result as a Map. If there are no hits, an empty Map is returned.The Map contains ids as keys and a Map as values containing the returned attributes.
48
- */
49
- export function simpleSearch(aSearchFilter: string, searchBase: string, attributes: List<string>): Map<string, Map<string, string>>;
50
-
51
- declare namespace directoryUtil {
52
- export {
53
- getAttributeAsProperty,
54
- getNodeByDN,
55
- search,
56
- simpleSearch,
57
- };
58
- }
74
+ * Searches for ids in a specified search base in all directories.
75
+ * @param aSearchFilter LDAP search filter (as specified by <a href="http://www.ietf.org/rfc/rfc2254.txt">RFC 2254</a>)
76
+ * @param searchBase search base for the search, if <code>null</code> all directories for current node will be searched
77
+ * @param attributes a <code>List</code> of return attributes
78
+ * @return the search result as a <code>Map</code>. If there are no hits, an empty <code>Map</code> is returned. The <code>Map</code> contains ids as keys and a <code>Map</code> as values containing the returned attributes.
79
+ * @since Sitevision 2.6.1_02
80
+ */
81
+ export function simpleSearch(
82
+ aSearchFilter: string,
83
+ searchBase: string,
84
+ attributes: unknown[]
85
+ ): Record<unknown, unknown>;
59
86
 
60
- export default directoryUtil;
87
+ /**
88
+ * LDAP directory utility interface.
89
+ *
90
+ * <p>
91
+ * An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getDirectoryUtil()}.
92
+ * See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
93
+ * </p>Searches for objects in all LDAP directories that are accessible in current context (i.e. current page).
94
+ * <p>
95
+ * Some examples of <a href="http://www.ietf.org/rfc/rfc2254.txt">RFC 2254</a> valid values for <code>aSearchFilter</code>:
96
+ * <ul>
97
+ * <li><code>"magnus"</code> - find all <em>magnus</em>, using the search base specified by the directories (usually common name) </li>
98
+ * <li><code>"(cn=magnus)"</code> - find all with common name (cn) <em>magnus</em></li>
99
+ * <li><code>"(cn=magnus*)"</code> - find all that has a common name (cn) that starts with <em>magnus</em></li>
100
+ * <li><code>"(&amp;(cn=magnus)(mail=*))"</code> - find all that has a mail address and <em>magnus</em> as common name (cn)</li>
101
+ * <li><code>"(|(cn=magnus)((sn=L*)))"</code> - find all with common name (cn) <em>magnus</em> or a surname (sn) that starts with <em>L</em></li>
102
+ * </ul>Searches for objects in a specified LDAP directory.
103
+ * <p>
104
+ * <em>Tip!</em> The repository for all LDAP directory nodes can be located via the
105
+ * {@link senselogic.sitevision.api.resource.ResourceLocatorUtil#getDirectoryRepository() getDirectoryRepository()}
106
+ * method in {@link senselogic.sitevision.api.resource.ResourceLocatorUtil}
107
+ * </p>Searches for objects in a specified search base in a specified LDAP directory.Gets a directory node object with a specific distinguished name, dn.Gets a directory attribute value for a directory node object as <code>Property</code>.
108
+ * <p>
109
+ * The default properties for a directory node object adheres/corresponds to the attributes defined in the directory scheme.
110
+ * All attributes that are defined in the scheme are exposed as properties in the Sitevision JCR model. This method tries to
111
+ * find the attribute via the Sitevision JCR model but if no property can be found it executes LDAP queries
112
+ * to find the attribute. This makes it possible to find scheme-defined attributes, but also custom-defined ones.
113
+ * </p>Searches for ids in a specified search base in all directories.
114
+ * @author Magnus Lövgren
115
+ * @since Sitevision 2.6
116
+ */
117
+ declare namespace DirectoryUtil {
118
+ export { search, getNodeByDN, getAttributeAsProperty, simpleSearch };
119
+ }
61
120
 
121
+ export default DirectoryUtil;