@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,34 +1,27 @@
1
- /** Name of the property specifying the creator of an article. */
2
- export const PROPERTY_CREATED_BY: string;
3
- /** Name of the property specifying the creation date of an article. */
4
- export const PROPERTY_CREATION_DATE: string;
5
- /** Name of the property specifying the last modifier of an article. */
6
- export const PROPERTY_LAST_MODIFIED_BY: string;
7
- /** Name of the property specifying the last modified date of an article. */
8
- export const PROPERTY_LAST_MODIFIED_DATE: string;
9
- /** Name of the property specifying the last published date of an article. */
10
- export const PROPERTY_LAST_PUBLISH_DATE: string;
11
- /** Name of the property specifying the last publisher of an article. */
12
- export const PROPERTY_LAST_PUBLISHED_BY: string;
13
- /** Name of the property specifying the locale used by an article. */
14
- export const PROPERTY_LOCALE: string;
15
- /** Name of the property specifying the published date of an article. */
16
- export const PROPERTY_PUBLISH_DATE: string;
17
- /** Name of the property specifying the publisher of an article. */
18
- export const PROPERTY_PUBLISHED_BY: string;
19
- /** Name of the property specifying if an article is indexable. */
20
- export const PROPERTY_ROBOTS_INDEX: string;
21
- /** Name of the property specifying the short id of an article. */
22
- export const PROPERTY_SHORTID: string;
23
- /** Name of the property specifying if an article is visible in menus. */
24
- export const PROPERTY_VISIBLE_IN_MENUS: string;
1
+ import Node from "../../hidden/javax/jcr/Node";
25
2
 
26
3
  /**
27
- * Creates an article as sub node to a specified parent.
28
- * @returns {Node} a sv:article node corresponding to the newly created article. Will never return null
29
- * @param {Node} aParent - the parent node of the article. May not be null
30
- * @param {Node} aTemplate - the template used for the article. May not be null
31
- * @param {string} aName - the name of the sv:article. May not be null
4
+ * <p>Creates an article as sub node to a specified parent. The parent must be a node with primary
5
+ * node type sv:archive. If other parent is specified a <code>ConstraintViolationException</code> is thrown.</p>
6
+ *
7
+ * <p>Any name can be given a article, it should however not contain the character '/'.</p>
8
+ *
9
+ * <p>If no parent, no template or no name is specified a <code>NullPointerException</code> is thrown.</p>
10
+ *
11
+ * <p>The current user must be authorized to create pages, layouts and to do write operations on the parent node. A
12
+ * <code>ConstraintViolationException</code> will be thrown if not.</p>
13
+ *
14
+ * <p>Note that a new article inherits metadata and permissions from its parent.</p>
15
+ *
16
+ * <p>Use {@link senselogic.sitevision.api.webresource.webcontent.WebContentUtil#updateContent(javax.jcr.Node, java.util.Map)}
17
+ * to add content to the new article.</p>
18
+ * @param aParent the parent node of the article. May not be <code>null</code>
19
+ * @param aTemplate the template used for the article. May not be <code>null</code>
20
+ * @param aName the name of the sv:article. May not be <code>null</code>
21
+ * @return a sv:article node corresponding to the newly created article. Will never return <code>null</code>
22
+ * @throws javax.jcr.nodetype.ConstraintViolationException if an invalid parent is specified or if the current user is not authorized to create the article
23
+ * @throws RepositoryException if something else goes wrong
24
+ * @see #createArticle(javax.jcr.Node, javax.jcr.Node, String, java.util.Map, java.util.Map)
32
25
  */
33
26
  export function createArticle(
34
27
  aParent: Node,
@@ -37,58 +30,377 @@ export function createArticle(
37
30
  ): Node;
38
31
 
39
32
  /**
40
- * Creates an article with properties and web content.
41
- * @returns {Node} a sv:article node corresponding to the newly created article. Will never return null
42
- * @param {Node} aParent - the parent node of the article. May not be null
43
- * @param {Node} aTemplate - the sv:template node to be used for the article. May not be null
44
- * @param {string} aName - the name of the sv:article. May not be null
45
- * @param {Map<string, any>} properties - the article properties. May be null
46
- * @param {Map<string, string>} content - a map containing the HTML content. The keys must correspond to layout names on the node. May be null
33
+ * <p>Creates an article with properties and web content. The parent must be a node with primary node type sv:archive.
34
+ * If other parent is specified a <code>ConstraintViolationException</code> is thrown. It is possible to provide the web content for the article
35
+ * as well as article properties.</p>
36
+ *
37
+ * <p>Properties:</p>
38
+ * <ul>
39
+ * <li>
40
+ * {@link #PROPERTY_VISIBLE_IN_MENUS}
41
+ * </li>
42
+ * <li>
43
+ * {@link #PROPERTY_SHORTID} - If the short id is already used by an other Sitevision node an <code>IllegalArgumentException</code> is thrown
44
+ * </li>
45
+ * <li>
46
+ * {@link #PROPERTY_LOCALE}
47
+ * </li>
48
+ * <li>
49
+ * {@link #PROPERTY_ROBOTS_INDEX}
50
+ * </li>
51
+ * <li>
52
+ * {@link #PROPERTY_CREATION_DATE}
53
+ * </li>
54
+ * <li>
55
+ * {@link #PROPERTY_CREATED_BY}
56
+ * </li>
57
+ * <li>
58
+ * {@link #PROPERTY_LAST_MODIFIED_DATE}
59
+ * </li>
60
+ * <li>
61
+ * {@link #PROPERTY_LAST_MODIFIED_BY}
62
+ * </li>
63
+ * <li>
64
+ * {@link #PROPERTY_LAST_PUBLISH_DATE}
65
+ * </li>
66
+ * <li>
67
+ * {@link #PROPERTY_LAST_PUBLISHED_BY}
68
+ * </li>
69
+ * <li>
70
+ * {@link #PROPERTY_PUBLISH_DATE}
71
+ * </li>
72
+ * <li>
73
+ * {@link #PROPERTY_PUBLISHED_BY}
74
+ * </li>
75
+ * </ul>
76
+ * <p>
77
+ * If an invalid value is provided for a property, an <code>IllegalArgumentException</code> is thrown
78
+ * </p>
79
+ *
80
+ * <p>
81
+ * Default values:
82
+ * </p>
83
+ * <ul>
84
+ * <li>{@link #PROPERTY_VISIBLE_IN_MENUS} - true</li>
85
+ * <li>{@link #PROPERTY_SHORTID} - "" (a short id will be generated by Sitevision)</li>
86
+ * <li>{@link #PROPERTY_LOCALE} - parent locale</li>
87
+ * <li>{@link #PROPERTY_ROBOTS_INDEX} - true</li>
88
+ * <li>{@link #PROPERTY_CREATION_DATE} - current time stamp</li>
89
+ * <li>{@link #PROPERTY_CREATED_BY} - current user</li>
90
+ * <li>{@link #PROPERTY_LAST_MODIFIED_DATE} - current time stamp</li>
91
+ * <li>{@link #PROPERTY_LAST_MODIFIED_BY} - current user</li>
92
+ * <li>{@link #PROPERTY_LAST_PUBLISH_DATE} - null (will not have a value)</li>
93
+ * <li>{@link #PROPERTY_LAST_PUBLISHED_BY} - null (will not have a value)</li>
94
+ * <li>{@link #PROPERTY_PUBLISH_DATE} - null (will not have a value)</li>
95
+ * <li>{@link #PROPERTY_PUBLISHED_BY} - null (will not have a value)</li>
96
+ * </ul>
97
+ *
98
+ * <p>The article content is specified using the
99
+ * content map containing keys corresponding to layout names (e.g. "mittenspalt") on the articel and values containing the
100
+ * HTML used to generate a portlet structure in the layout. The provided content is converted to
101
+ * Sitevision text, table and image modules. It is also possible to specify that a horizontal or a vertical
102
+ * layout should be created. For more information about the HTML to portlet mapping can be found in the
103
+ * {@link senselogic.sitevision.api.webresource.webcontent.WebContentUtil} javadoc.
104
+ *
105
+ * <p>If no parent, no template or no name is specified a <code>NullPointerException</code> is thrown.</p>
106
+ *
107
+ * <p>The current user must be authorized to create pages, layouts and to do write operations on the parent node or
108
+ * a <code>ConstraintViolationException</code> will be thrown.</p>
109
+ *
110
+ * <p>Note that a new page inherits metadata and permissions from its parent.</p>
111
+ * @param aParent the parent node of the article. May not be <code>null</code>
112
+ * @param aTemplate the sv:template node to be used for the article. May not be <code>null</code>
113
+ * @param aName the name of the sv:article. May not be <code>null</code>
114
+ * @param properties the article properties. May be <code>null</code>
115
+ * @param content a map containing the HTML content. The keys must correspond to layout names on the node. May be <code>null</code>
116
+ * @return a sv:article node corresponding to the newly created article. Will never return <code>null</code>
117
+ * @throws javax.jcr.nodetype.ConstraintViolationException if an invalid parent is specified or if the current user is not authorized to create the article
118
+ * @throws RepositoryException if something else goes wrong
119
+ * @see #createArticle(javax.jcr.Node, javax.jcr.Node, String)
47
120
  */
48
121
  export function createArticle(
49
122
  aParent: Node,
50
123
  aTemplate: Node,
51
124
  aName: string,
52
- properties: Map<string, any>,
53
- content: Map<string, string>
125
+ properties: Record<unknown, unknown>,
126
+ content: Record<unknown, unknown>
54
127
  ): Node;
55
128
 
56
129
  /**
57
- * Alters the name of an article.
58
- * @param {Node} anArticle - the article that should be renamed. May not be null
59
- * @param {string} aName - the new name of the article. May not be null
60
- */
61
- export function renameArticle(anArticle: Node, aName: string): void;
62
-
63
- /**
64
- * Updates the properties of an article.
65
- * @param {Node} anArticle - the sv:article that will be altered. May not be null
66
- * @param {Map<string, any>} properties - the article properties. May not be null
130
+ * <p>Updates the properties of an article. If no article is specified a <code>NullPointerException</code>
131
+ * is thrown. If the node is not a sv:article an <code>IllegalArgumentException</code> is thrown.</p>
132
+ *
133
+ * <p>
134
+ * Properties:
135
+ * </p>
136
+ * <ul>
137
+ * <li>
138
+ * {@link #PROPERTY_VISIBLE_IN_MENUS}
139
+ * </li>
140
+ * <li>
141
+ * {@link #PROPERTY_SHORTID} - If the short id is already used by an other Sitevision node an <code>IllegalArgumentException</code> is thrown
142
+ * </li>
143
+ * <li>
144
+ * {@link #PROPERTY_LOCALE}
145
+ * </li>
146
+ * <li>
147
+ * {@link #PROPERTY_ROBOTS_INDEX}
148
+ * </li>
149
+ * <li>
150
+ * {@link #PROPERTY_CREATION_DATE}
151
+ * </li>
152
+ * <li>
153
+ * {@link #PROPERTY_CREATED_BY}
154
+ * </li>
155
+ * <li>
156
+ * {@link #PROPERTY_LAST_MODIFIED_DATE}
157
+ * </li>
158
+ * <li>
159
+ * {@link #PROPERTY_LAST_MODIFIED_BY}
160
+ * </li>
161
+ * <li>
162
+ * {@link #PROPERTY_LAST_PUBLISH_DATE}
163
+ * </li>
164
+ * <li>
165
+ * {@link #PROPERTY_LAST_PUBLISHED_BY}
166
+ * </li>
167
+ * <li>
168
+ * {@link #PROPERTY_PUBLISH_DATE}
169
+ * </li>
170
+ * <li>
171
+ * {@link #PROPERTY_PUBLISHED_BY}
172
+ * </li>
173
+ * </ul>
174
+ * <p>
175
+ * If an invalid value is provided for a property, an <code>IllegalArgumentException</code> is thrown.
176
+ * </p>
177
+ *
178
+ * <p>The current user must be authorized to do write operations on the article or
179
+ * a <code>ConstraintViolationException</code> will be thrown.</p>
180
+ *
181
+ * <p>If no properties map is specified a <code>NullPointerException</code> is thrown.</p>
182
+ * @param anArticle the sv:article that will be altered. May not be <code>null</code>
183
+ * @param properties the article properties. May not be <code>null</code>
184
+ * @throws javax.jcr.nodetype.ConstraintViolationException if the current user is not authorized to alter the article
185
+ * @throws RepositoryException if something else goes wrong
67
186
  */
68
187
  export function updateArticle(
69
188
  anArticle: Node,
70
- properties: Map<string, any>
189
+ properties: Record<unknown, unknown>
71
190
  ): void;
72
191
 
73
- declare namespace articleUtil {
74
- export {
75
- PROPERTY_CREATED_BY,
76
- PROPERTY_CREATION_DATE,
77
- PROPERTY_LAST_MODIFIED_BY,
78
- PROPERTY_LAST_MODIFIED_DATE,
79
- PROPERTY_LAST_PUBLISH_DATE,
80
- PROPERTY_LAST_PUBLISHED_BY,
81
- PROPERTY_LOCALE,
82
- PROPERTY_PUBLISH_DATE,
83
- PROPERTY_PUBLISHED_BY,
84
- PROPERTY_ROBOTS_INDEX,
85
- PROPERTY_SHORTID,
86
- PROPERTY_VISIBLE_IN_MENUS,
87
- createArticle,
88
- createArticle,
89
- renameArticle,
90
- updateArticle,
91
- };
192
+ /**
193
+ * <p>Alters the name of an article. If no article is specified a <code>NullPointerException</code>
194
+ * is thrown. If the node is not an sv:article an <code>IllegalArgumentException</code> is thrown.</p>
195
+ *
196
+ * <p>Any name can be given an article, it should however not contain the character '/'. If null is
197
+ * provided a <code>NullPointerException</code> is thrown.</p>
198
+ *
199
+ * <p>The current user must be authorized to do write operations on the article or
200
+ * a <code>ConstraintViolationException</code> will be thrown.</p>
201
+ * @param anArticle the article that should be renamed. May not be <code>null</code>
202
+ * @param aName the new name of the article. May not be <code>null</code>
203
+ * @throws javax.jcr.nodetype.ConstraintViolationException if the current user is not authorized to alter the name of the article
204
+ * @throws RepositoryException if something else goes wrong
205
+ */
206
+ export function renameArticle(anArticle: Node, aName: string): void;
207
+
208
+ /**
209
+ * Article utility interface that handles nodes with primary node type <code>sv:article</code>.
210
+ *
211
+ * <p>
212
+ * <em>Note!</em> This interface is used to <em>create</em> and <em>update</em> articles. You would typically use
213
+ * {@link senselogic.sitevision.api.webresource.structure.StructureUtil} to <em>move</em> an article
214
+ * and {@link senselogic.sitevision.api.webresource.structure.TrashcanUtil} to <em>delete</em> an article.
215
+ * {@link senselogic.sitevision.api.webresource.webcontent.WebContentUtil} can be used to update the <em>content</em>
216
+ * of an article.
217
+ * </p>
218
+ *
219
+ * <p>
220
+ * <strong>Important note!</strong> Methods in this interface operates in the
221
+ * {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}.
222
+ * Hence, if you create an article, updates the name of a article or such, the article must be published
223
+ * (see {@link senselogic.sitevision.api.versioning.PublishingUtil})
224
+ * to have any effect in the {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}
225
+ * </p>
226
+ *
227
+ * <p>
228
+ * An instance of the Sitevision class implementing this interface can be obtained via
229
+ * {@link senselogic.sitevision.api.Utils#getArticleUtil()}.
230
+ * See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
231
+ * </p><p>Creates an article as sub node to a specified parent. The parent must be a node with primary
232
+ * node type sv:archive. If other parent is specified a <code>ConstraintViolationException</code> is thrown.</p>
233
+ *
234
+ * <p>Any name can be given a article, it should however not contain the character '/'.</p>
235
+ *
236
+ * <p>If no parent, no template or no name is specified a <code>NullPointerException</code> is thrown.</p>
237
+ *
238
+ * <p>The current user must be authorized to create pages, layouts and to do write operations on the parent node. A
239
+ * <code>ConstraintViolationException</code> will be thrown if not.</p>
240
+ *
241
+ * <p>Note that a new article inherits metadata and permissions from its parent.</p>
242
+ *
243
+ * <p>Use {@link senselogic.sitevision.api.webresource.webcontent.WebContentUtil#updateContent(javax.jcr.Node, java.util.Map)}
244
+ * to add content to the new article.</p><p>Creates an article with properties and web content. The parent must be a node with primary node type sv:archive.
245
+ * If other parent is specified a <code>ConstraintViolationException</code> is thrown. It is possible to provide the web content for the article
246
+ * as well as article properties.</p>
247
+ *
248
+ * <p>Properties:</p>
249
+ * <ul>
250
+ * <li>
251
+ * {@link #PROPERTY_VISIBLE_IN_MENUS}
252
+ * </li>
253
+ * <li>
254
+ * {@link #PROPERTY_SHORTID} - If the short id is already used by an other Sitevision node an <code>IllegalArgumentException</code> is thrown
255
+ * </li>
256
+ * <li>
257
+ * {@link #PROPERTY_LOCALE}
258
+ * </li>
259
+ * <li>
260
+ * {@link #PROPERTY_ROBOTS_INDEX}
261
+ * </li>
262
+ * <li>
263
+ * {@link #PROPERTY_CREATION_DATE}
264
+ * </li>
265
+ * <li>
266
+ * {@link #PROPERTY_CREATED_BY}
267
+ * </li>
268
+ * <li>
269
+ * {@link #PROPERTY_LAST_MODIFIED_DATE}
270
+ * </li>
271
+ * <li>
272
+ * {@link #PROPERTY_LAST_MODIFIED_BY}
273
+ * </li>
274
+ * <li>
275
+ * {@link #PROPERTY_LAST_PUBLISH_DATE}
276
+ * </li>
277
+ * <li>
278
+ * {@link #PROPERTY_LAST_PUBLISHED_BY}
279
+ * </li>
280
+ * <li>
281
+ * {@link #PROPERTY_PUBLISH_DATE}
282
+ * </li>
283
+ * <li>
284
+ * {@link #PROPERTY_PUBLISHED_BY}
285
+ * </li>
286
+ * </ul>
287
+ * <p>
288
+ * If an invalid value is provided for a property, an <code>IllegalArgumentException</code> is thrown
289
+ * </p>
290
+ *
291
+ * <p>
292
+ * Default values:
293
+ * </p>
294
+ * <ul>
295
+ * <li>{@link #PROPERTY_VISIBLE_IN_MENUS} - true</li>
296
+ * <li>{@link #PROPERTY_SHORTID} - "" (a short id will be generated by Sitevision)</li>
297
+ * <li>{@link #PROPERTY_LOCALE} - parent locale</li>
298
+ * <li>{@link #PROPERTY_ROBOTS_INDEX} - true</li>
299
+ * <li>{@link #PROPERTY_CREATION_DATE} - current time stamp</li>
300
+ * <li>{@link #PROPERTY_CREATED_BY} - current user</li>
301
+ * <li>{@link #PROPERTY_LAST_MODIFIED_DATE} - current time stamp</li>
302
+ * <li>{@link #PROPERTY_LAST_MODIFIED_BY} - current user</li>
303
+ * <li>{@link #PROPERTY_LAST_PUBLISH_DATE} - null (will not have a value)</li>
304
+ * <li>{@link #PROPERTY_LAST_PUBLISHED_BY} - null (will not have a value)</li>
305
+ * <li>{@link #PROPERTY_PUBLISH_DATE} - null (will not have a value)</li>
306
+ * <li>{@link #PROPERTY_PUBLISHED_BY} - null (will not have a value)</li>
307
+ * </ul>
308
+ *
309
+ * <p>The article content is specified using the
310
+ * content map containing keys corresponding to layout names (e.g. "mittenspalt") on the articel and values containing the
311
+ * HTML used to generate a portlet structure in the layout. The provided content is converted to
312
+ * Sitevision text, table and image modules. It is also possible to specify that a horizontal or a vertical
313
+ * layout should be created. For more information about the HTML to portlet mapping can be found in the
314
+ * {@link senselogic.sitevision.api.webresource.webcontent.WebContentUtil} javadoc.
315
+ *
316
+ * <p>If no parent, no template or no name is specified a <code>NullPointerException</code> is thrown.</p>
317
+ *
318
+ * <p>The current user must be authorized to create pages, layouts and to do write operations on the parent node or
319
+ * a <code>ConstraintViolationException</code> will be thrown.</p>
320
+ *
321
+ * <p>Note that a new page inherits metadata and permissions from its parent.</p><p>Updates the properties of an article. If no article is specified a <code>NullPointerException</code>
322
+ * is thrown. If the node is not a sv:article an <code>IllegalArgumentException</code> is thrown.</p>
323
+ *
324
+ * <p>
325
+ * Properties:
326
+ * </p>
327
+ * <ul>
328
+ * <li>
329
+ * {@link #PROPERTY_VISIBLE_IN_MENUS}
330
+ * </li>
331
+ * <li>
332
+ * {@link #PROPERTY_SHORTID} - If the short id is already used by an other Sitevision node an <code>IllegalArgumentException</code> is thrown
333
+ * </li>
334
+ * <li>
335
+ * {@link #PROPERTY_LOCALE}
336
+ * </li>
337
+ * <li>
338
+ * {@link #PROPERTY_ROBOTS_INDEX}
339
+ * </li>
340
+ * <li>
341
+ * {@link #PROPERTY_CREATION_DATE}
342
+ * </li>
343
+ * <li>
344
+ * {@link #PROPERTY_CREATED_BY}
345
+ * </li>
346
+ * <li>
347
+ * {@link #PROPERTY_LAST_MODIFIED_DATE}
348
+ * </li>
349
+ * <li>
350
+ * {@link #PROPERTY_LAST_MODIFIED_BY}
351
+ * </li>
352
+ * <li>
353
+ * {@link #PROPERTY_LAST_PUBLISH_DATE}
354
+ * </li>
355
+ * <li>
356
+ * {@link #PROPERTY_LAST_PUBLISHED_BY}
357
+ * </li>
358
+ * <li>
359
+ * {@link #PROPERTY_PUBLISH_DATE}
360
+ * </li>
361
+ * <li>
362
+ * {@link #PROPERTY_PUBLISHED_BY}
363
+ * </li>
364
+ * </ul>
365
+ * <p>
366
+ * If an invalid value is provided for a property, an <code>IllegalArgumentException</code> is thrown.
367
+ * </p>
368
+ *
369
+ * <p>The current user must be authorized to do write operations on the article or
370
+ * a <code>ConstraintViolationException</code> will be thrown.</p>
371
+ *
372
+ * <p>If no properties map is specified a <code>NullPointerException</code> is thrown.</p><p>Alters the name of an article. If no article is specified a <code>NullPointerException</code>
373
+ * is thrown. If the node is not an sv:article an <code>IllegalArgumentException</code> is thrown.</p>
374
+ *
375
+ * <p>Any name can be given an article, it should however not contain the character '/'. If null is
376
+ * provided a <code>NullPointerException</code> is thrown.</p>
377
+ *
378
+ * <p>The current user must be authorized to do write operations on the article or
379
+ * a <code>ConstraintViolationException</code> will be thrown.</p>Name of the property specifying if an article is visible in menus. It corresponds to the sv:article property <code>visibleInMenus</code>.
380
+ * <p>The property value must be of type <code>Boolean</code>.</p>Name of the property specifying the short id of an article. It corresponds to the sv:article property <code>shortId</code>.
381
+ * <p>The property value must be of type <code>String</code>.</p>Name of the property specifying the locale used by an article. It corresponds to the sv:article property <code>locale</code>.
382
+ * <p>
383
+ * The property value must be of type <code>Locale</code> or a <code>String</code> that can be resolved to a non-null Locale
384
+ * via {@link senselogic.sitevision.api.i18n.LocaleUtil#getLocaleByString(String)}.
385
+ * </p>Name of the property specifying if an article is indexable. It corresponds to the sv:article property <code>robotsIndex</code>.
386
+ * <p>The property value must be of type <code>Boolean</code>.</p>Name of the property specifying the creation date of an article. It corresponds to the sv:article property <code>creationDate</code>.
387
+ * <p>The property value must be of type <code>Date</code> or a <code>String</code> on format yyyy-MM-dd HH:mm:ss where
388
+ * HH:mm:ss is optional (defaults to 00:00:00).</p>Name of the property specifying the creator of an article. It corresponds to the sv:article property <code>createdBy</code>.
389
+ * <p>The property value must be a {@link javax.jcr.Node} with primary node type sv:user or sv:systemUser.</p>Name of the property specifying the last modified date of an article. It corresponds to the sv:article property <code>lastModifiedDate</code>.
390
+ * <p>The property value must be of type <code>Date</code> or a <code>String</code> on format yyyy-MM-dd HH:mm:ss, where
391
+ * HH:mm:ss is optional (defaults to 00:00:00).</p>Name of the property specifying the last modifier of an article. It corresponds to the sv:article property <code>lastModifiedBy</code>.
392
+ * <p>The property value must be a {@link javax.jcr.Node} with primary node type sv:user or sv:systemUser.</p>Name of the property specifying the last published date of an article. It corresponds to the sv:article property <code>lastPublishDate</code>.
393
+ * <p>The property value must be of type <code>Date</code> or a <code>String</code> on format yyyy-MM-dd HH:mm:ss, where
394
+ * HH:mm:ss is optional (defaults to 00:00:00).</p>Name of the property specifying the last publisher of an article. It corresponds to the sv:article property <code>lastPublishedBy</code>.
395
+ * <p>The property value must be a {@link javax.jcr.Node} with primary node type sv:user or sv:systemUser.</p>Name of the property specifying the published date of an article. It corresponds to the sv:article property <code>publishDate</code>.
396
+ * <p>The property value must be of type <code>Date</code> or a <code>String</code> on format yyyy-MM-dd HH:mm:ss, where
397
+ * HH:mm:ss is optional (defaults to 00:00:00).</p>Name of the property specifying the publisher of an article. It corresponds to the sv:article property <code>publishedBy</code>.
398
+ * <p>The property value must be a {@link javax.jcr.Node} with primary node type sv:user or sv:systemUser.</p>
399
+ * @author Mikael Wikblom
400
+ * @since Sitevision 2.6.2
401
+ */
402
+ declare namespace ArticleUtil {
403
+ export { createArticle, updateArticle, renameArticle };
92
404
  }
93
405
 
94
- export default articleUtil;
406
+ export default ArticleUtil;
@@ -0,0 +1,106 @@
1
+ /**
2
+ * Logout current user based on a HttpServletRequest.
3
+ * @param aServletRequest the current servlet request
4
+ * @param invalidateHttpSession whether or not the session should be invalidated. This is normally not the case
5
+ */
6
+ export function logout(
7
+ aServletRequest: unknown,
8
+ invalidateHttpSession: boolean
9
+ ): void;
10
+
11
+ /**
12
+ * Logout current user based on a PortletRequest.
13
+ * @param aPortletRequest the current portlet request
14
+ * @param invalidateHttpSession whether or not the session should be invalidated. This is normally not the case
15
+ */
16
+ export function logout(
17
+ aPortletRequest: unknown,
18
+ invalidateHttpSession: boolean
19
+ ): void;
20
+
21
+ /**
22
+ * Authenticates a user based on a shared state map.
23
+ * @param aServletRequest the current servlet request
24
+ * @param sharedState a map containing "javax.security.auth.login.name" and "javax.security.auth.login.password"
25
+ * @throws LoginException if login fails
26
+ * @since Sitevision 2.6.2_06
27
+ */
28
+ export function login(
29
+ aServletRequest: unknown,
30
+ sharedState: Record<unknown, unknown>
31
+ ): void;
32
+
33
+ /**
34
+ * Authenticates a user based on username and password.
35
+ * @param aServletRequest the current servlet request
36
+ * @param name a username
37
+ * @param password a password
38
+ * @throws LoginException if login fails
39
+ * @since Sitevision 2.6.2_06
40
+ */
41
+ export function login(
42
+ aServletRequest: unknown,
43
+ name: string,
44
+ password: string
45
+ ): void;
46
+
47
+ /**
48
+ * Re-authenticates a user based on a Subject already in the session.
49
+ * @param aServletRequest the current servlet request
50
+ * @throws LoginException if login fails
51
+ * @since Sitevision 2.6.2_06
52
+ */
53
+ export function reLogin(aServletRequest: unknown): void;
54
+
55
+ /**
56
+ * Authenticates a user based on a shared state map.
57
+ * @param aPortletRequest the current portlet request
58
+ * @param sharedState a map containing "javax.security.auth.login.name" and "javax.security.auth.login.password"
59
+ * @throws LoginException if login fails
60
+ * @since Sitevision 2.6.2_06
61
+ */
62
+ export function login(
63
+ aPortletRequest: unknown,
64
+ sharedState: Record<unknown, unknown>
65
+ ): void;
66
+
67
+ /**
68
+ * Authenticates a user based on username and password.
69
+ * @param aPortletRequest the current portlet request
70
+ * @param name a username
71
+ * @param password a password
72
+ * @throws LoginException if login fails
73
+ * @since Sitevision 2.6.2_06
74
+ */
75
+ export function login(
76
+ aPortletRequest: unknown,
77
+ name: string,
78
+ password: string
79
+ ): void;
80
+
81
+ /**
82
+ * Re-authenticates a user based on a Subject already in the session.
83
+ * @param aPortletRequest the current portlet request
84
+ * @throws LoginException if login fails
85
+ * @since Sitevision 2.6.2_06
86
+ */
87
+ export function reLogin(aPortletRequest: unknown): void;
88
+
89
+ /**
90
+ * <p>
91
+ * Authentication utility interface.
92
+ * </p>
93
+ *
94
+ * <p>
95
+ * An instance of the Sitevision class implementing this interface can be obtained via
96
+ * {@link senselogic.sitevision.api.Utils#getAuthenticationUtil()}.
97
+ * See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
98
+ * </p>Logout current user based on a HttpServletRequest.Logout current user based on a PortletRequest.Authenticates a user based on a shared state map.Authenticates a user based on username and password.Re-authenticates a user based on a Subject already in the session.Authenticates a user based on a shared state map.Authenticates a user based on username and password.Re-authenticates a user based on a Subject already in the session.
99
+ * @author Mikael Wikblom
100
+ * @since Sitevision 2.6.1_03, Sitevision 2.7_01
101
+ */
102
+ declare namespace AuthenticationUtil {
103
+ export { logout, login, reLogin };
104
+ }
105
+
106
+ export default AuthenticationUtil;