@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
@@ -0,0 +1,644 @@
1
+ import Node from "../../hidden/javax/jcr/Node";
2
+
3
+ /**
4
+ * <p>
5
+ * Alters the content of a sv:page, sv:article or a sv:template.
6
+ * </p>
7
+ *
8
+ * <p>
9
+ * If an invalid node type is specified a <code>IllegalArgumentException</code> is thrown. The page content is specified as a
10
+ * HTML string used to generate a portlet structure in the <strong>first</strong> layout available. The provided
11
+ * content is converted to Sitevision text, table and image modules. It is also possible to specify that a horizontal
12
+ * or a vertical layout should be created.
13
+ * </p>
14
+ *
15
+ * <p>
16
+ * <strong>Note that the content (i.e portlets and layouts) of the first layout will be replaced, not appended.</strong>
17
+ * </p>
18
+ *
19
+ * <p>
20
+ * The current user must be authorized to alter the node or a <code>ConstraintViolationException</code> is thrown.
21
+ * </p>
22
+ *
23
+ * <p>
24
+ * If no node or no content is specified a <code>NullPointerException</code> is thrown.
25
+ * </p>
26
+ * @param aNode aNode the node that will be altered, typically a node with primary node type <code>sv:page</code> or <code>sv:article</code>. May not be <code>null</code> and may not be the site page.
27
+ * @param aContent the HTML content. May not be <code>null</code>
28
+ * @throws ConstraintViolationException if the current user is not allowed to alter the node
29
+ * @throws RepositoryException if something else goes wrong
30
+ * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectiveWritePermission(Node, Node)
31
+ */
32
+ export function updateContent(aNode: Node, aContent: string): void;
33
+
34
+ /**
35
+ * <p>
36
+ * Alters the content of a sv:page, sv:article or a sv:template.
37
+ * </p>
38
+ *
39
+ * <p>
40
+ * If an invalid node type is specified a <code>IllegalArgumentException</code> is thrown. The page content is specified using the
41
+ * content map containing keys corresponding to layout names (e.g. "mittenspalt") on the page and values containing the
42
+ * HTML used to generate a portlet structure in the layout. The provided content is converted to
43
+ * Sitevision text, table and image modules. It is also possible to specify that a horizontal or a vertical
44
+ * layout should be created.
45
+ * </p>
46
+ *
47
+ * <p>
48
+ * The names of the content map must correspond to layout names on the page.
49
+ * </p>
50
+ *
51
+ * <p>
52
+ * <strong>Note that the content of the specified layouts (i.e portlets and layouts) will be replaced, not appended.</strong>
53
+ * </p>
54
+ *
55
+ * <p>
56
+ * The current user must be authorized to alter the node or a <code>ConstraintViolationException</code> is thrown.
57
+ * </p>
58
+ *
59
+ * <p>
60
+ * If no node or no content is specified a <code>NullPointerException</code> is thrown.
61
+ * </p>
62
+ * @param aNode the node that will be altered, typically a node with primary node type <code>sv:page</code> or <code>sv:article</code>. May not be <code>null</code> and may not be the site page.
63
+ * @param aContent a map containing the HTML content. The keys must correspond to layout names on the node. May not be <code>null</code>
64
+ * @throws ConstraintViolationException if the current user is not allowed to alter the node
65
+ * @throws RepositoryException if something else goes wrong
66
+ * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectiveWritePermission(Node, Node)
67
+ */
68
+ export function updateContent(
69
+ aNode: Node,
70
+ aContent: Record<unknown, unknown>
71
+ ): void;
72
+
73
+ /**
74
+ * Alters the content of a sv:page, sv:article or a sv:template with raw HTML (a HTML portlet is created).
75
+ *
76
+ * <p>
77
+ * <strong>Note!</strong> This method creates a single HTML portlet that contains all supplied content. This method
78
+ * is intended to be used as a <em>temporary solution</em> when the proper {@link #updateContent(javax.jcr.Node, java.util.Map)}
79
+ * and {@link #updateContent(javax.jcr.Node, String)} methods for some reason can't be used. Typically when converting badly formatted
80
+ * legacy CMS data into Sitevision content. I.e. this method enables creation of content that later on ought to be manually converted
81
+ * to proper Sitevision portlets.
82
+ * </p>
83
+ *
84
+ * <p>
85
+ * <strong>Note!</strong> Content is treated <em>as-is</em>, hence no internal links or references to local resources will be resolved
86
+ * as with the {@link #updateContent(javax.jcr.Node, java.util.Map)} and {@link #updateContent(javax.jcr.Node, String)} methods.
87
+ * The {@link #resolveToResourceURL(javax.jcr.Node, String)} can be used to manually try to resolve "old" resource url to a "new"
88
+ * Sitevision resource url.
89
+ * </p>
90
+ * @param aNode the node that will be altered, typically a node with primary node type <code>sv:page</code> or <code>sv:article</code>. May not be <code>null</code> and may not be the site page
91
+ * @param aContent the HTML content. May not be <code>null</code>
92
+ * @throws NullPointerException if aNode is null or if aContent is null
93
+ * @throws IllegalArgumentException if aNode is of invalid type
94
+ * @throws ConstraintViolationException if current user is not allowed to alter aNode
95
+ * @throws RepositoryException if something else goes wrong
96
+ * @since Sitevision 3.6
97
+ * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectiveWritePermission(Node, Node)
98
+ */
99
+ export function updateContentWithRawHtml(aNode: Node, aContent: string): void;
100
+
101
+ /**
102
+ * Alters the content of a sv:page, sv:article or a sv:template with raw HTML (a HTML portlet is created).
103
+ *
104
+ * <p>
105
+ * <strong>Note!</strong> This method creates a single HTML portlet for each supplied content entry. This method
106
+ * is intended to be used as a <em>temporary solution</em> when the proper {@link #updateContent(javax.jcr.Node, java.util.Map)}
107
+ * and {@link #updateContent(javax.jcr.Node, String)} methods for some reason can't be used. Typically when converting badly formatted
108
+ * legacy CMS data into Sitevision content. I.e. this method enables creation of content that later on ought to be manually converted
109
+ * to proper Sitevision portlets.
110
+ * </p>
111
+ *
112
+ * <p>
113
+ * <strong>Note!</strong> Content is treated <em>as-is</em>, hence no internal links or references to local resources will be resolved
114
+ * as with the {@link #updateContent(javax.jcr.Node, java.util.Map)} and {@link #updateContent(javax.jcr.Node, String)} methods.
115
+ * The {@link #resolveToResourceURL(javax.jcr.Node, String)} can be used to manually try to resolve "old" resource url to a "new"
116
+ * Sitevision resource url.
117
+ * </p>
118
+ * @param aNode the node that will be altered, typically a node with primary node type <code>sv:page</code> or <code>sv:article</code>. May not be <code>null</code> and may not be the site page
119
+ * @param aContent a map containing the HTML content. The keys must correspond to layout names on the node. May not be <code>null</code>
120
+ * @throws NullPointerException if aNode is null or if aContent is null
121
+ * @throws IllegalArgumentException if aNode is of invalid type
122
+ * @throws ConstraintViolationException if current user is not allowed to alter aNode
123
+ * @throws RepositoryException if something else goes wrong
124
+ * @since Sitevision 3.6
125
+ * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectiveWritePermission(Node, Node)
126
+ */
127
+ export function updateContentWithRawHtml(
128
+ aNode: Node,
129
+ aContent: Record<unknown, unknown>
130
+ ): void;
131
+
132
+ /**
133
+ * Appends the content to the existing node.
134
+ *
135
+ * <p>
136
+ * If an invalid node type is specified a <code>IllegalArgumentException</code> is thrown. The page content is specified as a
137
+ * HTML string used to generate a portlet structure in the <strong>first</strong> layout available. The provided
138
+ * content is converted to Sitevision text, table and image modules. It is also possible to specify that a horizontal
139
+ * or a vertical layout should be created.
140
+ * </p>
141
+ *
142
+ * <p>
143
+ * <strong>Note that the content (i.e portlets and layouts) of the first layout will be appended, not replaced.</strong>
144
+ * </p>
145
+ *
146
+ * <p>
147
+ * The current user must be authorized to alter the node or a <code>ConstraintViolationException</code> is thrown.
148
+ * </p>
149
+ *
150
+ * <p>
151
+ * If no node or no content is specified a <code>NullPointerException</code> is thrown.
152
+ * </p>
153
+ * @param aNode aNode the node that will be altered, typically a node with primary node type <code>sv:page</code> or <code>sv:article</code>. May not be <code>null</code> and may not be the site page.
154
+ * @param aContent the HTML content. May not be <code>null</code>
155
+ * @throws NullPointerException if aNode is null or if aContent is null
156
+ * @throws IllegalArgumentException if aNode is of invalid type
157
+ * @throws ConstraintViolationException if the current user is not allowed to alter the node
158
+ * @throws RepositoryException if something else goes wrong
159
+ * @since Sitevision 2022.08.1
160
+ * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectiveWritePermission(Node, Node)
161
+ */
162
+ export function appendContent(aNode: Node, aContent: string): void;
163
+
164
+ /**
165
+ * <p>
166
+ * Append the content to the existing node.
167
+ * </p>
168
+ *
169
+ * <p>
170
+ * If an invalid node type is specified a <code>IllegalArgumentException</code> is thrown. The page content is specified using the
171
+ * content map containing keys corresponding to layout names (e.g. "mittenspalt") on the page and values containing the
172
+ * HTML used to generate a portlet structure in the layout. The provided content is converted to
173
+ * Sitevision text, table and image modules. It is also possible to specify that a horizontal or a vertical
174
+ * layout should be created.
175
+ * </p>
176
+ *
177
+ * <p>
178
+ * The names of the content map must correspond to layout names on the page.
179
+ * </p>
180
+ *
181
+ * <p>
182
+ * <strong>Note that the content of the specified layouts (i.e portlets and layouts) will be appended, not replaced.</strong>
183
+ * </p>
184
+ *
185
+ * <p>
186
+ * The current user must be authorized to alter the node or a <code>ConstraintViolationException</code> is thrown.
187
+ * </p>
188
+ *
189
+ * <p>
190
+ * If no node or no content is specified a <code>NullPointerException</code> is thrown.
191
+ * </p>
192
+ * @param aNode the node that will be altered, typically a node with primary node type <code>sv:page</code> or <code>sv:article</code>. May not be <code>null</code> and may not be the site page.
193
+ * @param aContent a map containing the HTML content. The keys must correspond to layout names on the node. May not be <code>null</code>
194
+ * @throws NullPointerException if aNode is null or if aContent is null
195
+ * @throws IllegalArgumentException if aNode is of invalid type
196
+ * @throws ConstraintViolationException if the current user is not allowed to alter the node
197
+ * @throws RepositoryException if something else goes wrong
198
+ * @since Sitevision 2022.08.1
199
+ * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectiveWritePermission(Node, Node)
200
+ */
201
+ export function appendContent(
202
+ aNode: Node,
203
+ aContent: Record<unknown, unknown>
204
+ ): void;
205
+
206
+ /**
207
+ * Appends raw HTML (a HTML portlet is created) to the existing content of a node.
208
+ *
209
+ * <p>
210
+ * <strong>Note!</strong> This method creates a single HTML portlet that contains all supplied content and appends it to the existing content.
211
+ * This method is intended to be used as a <em>temporary solution</em> when the proper {@link #updateContent(javax.jcr.Node, java.util.Map)}
212
+ * and {@link #updateContent(javax.jcr.Node, String)} methods for some reason can't be used. Typically when converting badly formatted legacy
213
+ * CMS data into Sitevision content. I.e. this method enables creation of content that later on ought to be manually converted to proper
214
+ * Sitevision portlets.
215
+ * </p>
216
+ *
217
+ * <p>
218
+ * <strong>Note!</strong> Content is treated <em>as-is</em>, hence no internal links or references to local resources will be resolved
219
+ * as with the {@link #updateContent(javax.jcr.Node, java.util.Map)} and {@link #updateContent(javax.jcr.Node, String)} methods.
220
+ * The {@link #resolveToResourceURL(javax.jcr.Node, String)} can be used to manually try to resolve "old" resource url to a "new"
221
+ * Sitevision resource url.
222
+ * </p>
223
+ * @param aNode the node that will be altered, typically a node with primary node type <code>sv:page</code> or <code>sv:article</code>. May not be <code>null</code> and may not be the site page
224
+ * @param aContent the HTML content. May not be <code>null</code>
225
+ * @throws NullPointerException if aNode is null or if aContent is null
226
+ * @throws IllegalArgumentException if aNode is of invalid type
227
+ * @throws ConstraintViolationException if current user is not allowed to alter aNode
228
+ * @throws RepositoryException if something else goes wrong
229
+ * @since Sitevision 3.6
230
+ * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectiveWritePermission(Node, Node)
231
+ */
232
+ export function appendContentWithRawHtml(aNode: Node, aContent: string): void;
233
+
234
+ /**
235
+ * Appends raw HTML (a HTML portlet is created) to the existing content of a node.
236
+ *
237
+ * <p>
238
+ * <strong>Note!</strong> This method creates a single HTML portlet that contains all supplied content and appends it to the existing content.
239
+ * This method is intended to be used as a <em>temporary solution</em> when the proper {@link #updateContent(javax.jcr.Node, java.util.Map)}
240
+ * and {@link #updateContent(javax.jcr.Node, String)} methods for some reason can't be used. Typically when converting badly formatted legacy
241
+ * CMS data into Sitevision content. I.e. this method enables creation of content that later on ought to be manually converted to proper
242
+ * Sitevision portlets.
243
+ * </p>
244
+ *
245
+ * <p>
246
+ * <strong>Note!</strong> Content is treated <em>as-is</em>, hence no internal links or references to local resources will be resolved
247
+ * as with the {@link #updateContent(javax.jcr.Node, java.util.Map)} and {@link #updateContent(javax.jcr.Node, String)} methods.
248
+ * The {@link #resolveToResourceURL(javax.jcr.Node, String)} can be used to manually try to resolve "old" resource url to a "new"
249
+ * Sitevision resource url.
250
+ * </p>
251
+ * @param aNode the node that will be altered, typically a node with primary node type <code>sv:page</code> or <code>sv:article</code>. May not be <code>null</code> and may not be the site page
252
+ * @param aContent a map containing the HTML content. The keys must correspond to layout names on the node. May not be <code>null</code>
253
+ * @throws NullPointerException if aNode is null or if aContent is null
254
+ * @throws IllegalArgumentException if aNode is of invalid type
255
+ * @throws ConstraintViolationException if current user is not allowed to alter aNode
256
+ * @throws RepositoryException if something else goes wrong
257
+ * @since Sitevision 3.6
258
+ * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectiveWritePermission(Node, Node)
259
+ */
260
+ export function appendContentWithRawHtml(
261
+ aNode: Node,
262
+ aContent: Record<unknown, unknown>
263
+ ): void;
264
+
265
+ /**
266
+ * Resolves an unresolved URL to a resource (potentially needed for all resource references in HTML content that later is
267
+ * updated or appended as raw HTML).
268
+ *
269
+ * <p>
270
+ * <strong>Note!</strong> HTML content is treated <em>as-is</em> when using the
271
+ * {@link #appendContentWithRawHtml(javax.jcr.Node, java.util.Map)}, {@link #appendContentWithRawHtml(javax.jcr.Node, String)},
272
+ * {@link #updateContentWithRawHtml(javax.jcr.Node, java.util.Map)} or {@link #updateContentWithRawHtml(javax.jcr.Node, String)}.
273
+ * Hence no internal links or references to local resources will be resolved as with the {@link #updateContent(javax.jcr.Node, java.util.Map)}
274
+ * and {@link #updateContent(javax.jcr.Node, String)} methods.
275
+ * This method can be used to manually try to resolve "old" resource url to a "new" Sitevision resource url.
276
+ * </p>
277
+ * @param aNode the node that <code>aUnresolvedURL</code> should be resolved for, typically a node with primary node type <code>sv:page</code> or <code>sv:article</code>. May not be <code>null</code> and may not be the site page
278
+ * @param aUnresolvedURL an unresolved URL
279
+ * @return the potentially resolved URL
280
+ * @throws NullPointerException if aNode is null or if aUnresolvedURL is null
281
+ * @throws IllegalArgumentException if aNode is of invalid type
282
+ * @since Sitevision 3.6
283
+ */
284
+ export function resolveToResourceURL(
285
+ aNode: Node,
286
+ aUnresolvedURL: string
287
+ ): string;
288
+
289
+ /**
290
+ * Utility interface for content manipulation of a sv:page, sv:article or a sv:template.
291
+ *
292
+ * <p>
293
+ * The provided HTML content is converted to Sitevision text, table and image portlets. It is also possible to specify
294
+ * that a horizontal or a vertical layout should be created. Class and styles can be specified. A class must correspond
295
+ * to a Sitevision site font or exists in an external CSS to have any effect. It is possible to specify a name of the
296
+ * subsequent portlet by using a named anchor (<code>&lt;a name="the_name_of_the_portlet"&gt;&lt;/a&gt;</code>).
297
+ * The name of a layout can also be specified by adding a name attribute to the layout div, se examples below.
298
+ * </p>
299
+ *
300
+ * <p>
301
+ * <strong>Note!</strong> Content is per default considered as "text". This means that all content will be put in a single
302
+ * text portlet until the html code indicates something else. An indication can be any of the following:
303
+ * </p>
304
+ * <ul>
305
+ * <li>a layout is specified (a layout will be created)</li>
306
+ * <li>a named anchor is specified (a new portlet with that name will be created)</li>
307
+ * <li>content of another type is encountered (i.e. html for an image or a table)</li>
308
+ * </ul>
309
+ *
310
+ * <p>
311
+ * <em>Below are some detailed examples that should explain the format more precise:</em>
312
+ * </p>
313
+ * <hr>
314
+ * <p>
315
+ * <strong>Image portlet:</strong> Image references are resolved against the images on local page repository and
316
+ * fall-backs to the image repository.
317
+ * </p>
318
+ *
319
+ * <p>
320
+ * <em>Example 1: an image portlet with name "anImage" is created.</em>
321
+ * </p>
322
+ * <pre><code>
323
+ * &lt;a name="anImage" /&gt;&lt;img src="logo.jpg" /&gt;
324
+ * </code></pre>
325
+ *
326
+ * <p>
327
+ * <em>Example 2: an image portlet is created with alt text and class. Sitevision will decide the name of the portlet.</em>
328
+ * </p>
329
+ * <pre><code>
330
+ * &lt;img alt="Sitevision AB logo" class="aClass" src="templates/sitevision_logo.png" /&gt;
331
+ * </code></pre>
332
+ *
333
+ * <p>
334
+ * <strong>Table portlet:</strong> Table summary and table caption are optional. Table headings (th) will be recognized.
335
+ * A style attribute containing the css property <em>text-align</em> (left, right or center)
336
+ * and <em>background-color</em> will be recognized for table cells (td/th). Note that the background-color property value
337
+ * must start with a hash and match a color that exists on the site (for example #FFFFFF).
338
+ * </p>
339
+ * <em>Example: a table portlet with two columns and one row is created.</em>
340
+ * <pre><code>
341
+ * &lt;table summary="This is an example table"&gt;
342
+ * &lt;caption&gt;A caption&lt;/caption&gt;
343
+ * &lt;tr&gt;
344
+ * &lt;th&gt;A header&lt;/th&gt;
345
+ * &lt;th&gt;Another header&lt;/th&gt;
346
+ * &lt;/tr&gt;
347
+ * &lt;tr&gt;
348
+ * &lt;td&gt;A cell&lt;/td&gt;
349
+ * &lt;td style="text-align:right"&gt;Another cell&lt;/td&gt;
350
+ * &lt;/tr&gt;
351
+ * &lt;/table&gt;
352
+ * </code></pre>
353
+ *
354
+ * <p>
355
+ * <strong>Text portlet:</strong> All subsequent text content (i.e. not images or tables) will be placed in a text portlet.
356
+ * It is possible to create links and to provide style and class information to text sections. Links will be resolved
357
+ * to real / internal Sitevision pages if possible. Links to files and images will be resolved from the local image / file
358
+ * repositories and fall-back to the site image / file repository.
359
+ * Text sections specified with <code>&lt;em&gt;</code> or <code>&lt;i&gt;</code> will be handled as emphasized and
360
+ * sections specified with <code>&lt;strong&gt;</code> or <code>&lt;b&gt;</code> will be handled as strong.
361
+ * </p>
362
+ * <p>
363
+ * <em>Example 1: a text portlet with name "aText" containing text and a link.</em>
364
+ * </p>
365
+ * <pre><code>
366
+ * &lt;div&gt;
367
+ * &lt;a name="aText" /&gt;
368
+ * &lt;p&gt;What a &lt;em&gt;nice&lt;/em&gt; content management and &lt;a href="/portal.html"&gt;portal&lt;/a&gt; solution I have
369
+ * built today.&lt;/p&gt;
370
+ * &lt;/div&gt;
371
+ * </code></pre>
372
+ *
373
+ * <p>
374
+ * <em>Example 2: two text portlets, one header and one body like text.</em>
375
+ * </p>
376
+ * <pre><code>
377
+ * &lt;h2 title="aDecoration"&gt;Welcome&lt;/h2&gt;
378
+ * &lt;div&gt;
379
+ * &lt;a name="aText" /&gt;
380
+ * &lt;p&gt;Welcome to the Sitevision days!&lt;/p&gt;
381
+ * &lt;/div&gt;
382
+ * </code></pre>
383
+ *
384
+ * <p>
385
+ * <strong>Layouts:</strong> by specifying a div with the attribute layout <code>horizontal</code> or <code>vertical</code> a
386
+ * layout can be created. It is also possible to specify name of the layout and a decoration. Note that the decoration must be
387
+ * a Sitevision site decoration. If both decoration and style is specified the style information will be ignored.
388
+ * </p>
389
+ * <ul>
390
+ * <li><code>horizontal</code> - Left-to-right layouting, i.e. a <em>Horizontal/Column</em> layout will be created</li>
391
+ * <li><code>vertical</code> - Top-to-bottom layouting, i.e. a <em>Vertical/Row</em> layout will be created</li>
392
+ * </ul>
393
+ *
394
+ * <p>
395
+ * <em>Example 1: create a horizontal layout with decoration "aDecoration" and name "aName".</em>
396
+ * </p>
397
+ * <pre><code>
398
+ * &lt;div layout="horizontal" decoration="aDecoration" name="aName"&gt;
399
+ * &lt;!-- layout content --&gt;
400
+ * ...
401
+ * &lt;/div&gt;
402
+ * </code></pre>
403
+ *
404
+ * <p>
405
+ * <em>Example 2: create vertical layout with style information and name "aName".</em>
406
+ * </p>
407
+ * <pre><code>
408
+ * &lt;div layout="vertical" style="margin: 10px; border: thin solid black" name="aName"&gt;
409
+ * &lt;!-- layout content --&gt;
410
+ * ...
411
+ * &lt;/div&gt;
412
+ * </code></pre>
413
+ *
414
+ * <p>
415
+ * Here is a more <strong>extensive example</strong>
416
+ * </p>
417
+ * <pre><code>
418
+ * &lt;a name="aHeader" /&gt;
419
+ * &lt;h2 title="aH2SiteFont"&gt;Welcome to Sitevision&lt;/h2&gt;
420
+ * &lt;img name="anImage" alt="Sitevision AB logo" class="aClass" src="templates/sitevision_logo.png" /&gt;
421
+ * &lt;div layout="horizontal" decoration="aSiteDecoration" name="aHorizontalLayout"&gt;
422
+ * &lt;a name="aText" /&gt;
423
+ * &lt;p class="aTextSiteFont"&gt;
424
+ * &lt;strong&gt;Sitevision AB&lt;/strong&gt; is the company behind the CMS and portal system &lt;em&gt;Sitevision&lt;/em&gt;
425
+ * &lt;/p&gt;
426
+ * &lt;div layout="vertical" style="border: thin solid black" name="aVerticalLayout"&gt;
427
+ * &lt;a name="aText" /&gt;
428
+ * &lt;p&gt;The table displays the ...&lt;/p&gt;
429
+ * &lt;a name="aTable" /&gt;
430
+ * &lt;table summary="This is a data table"&gt;
431
+ * &lt;caption&gt;Table of data&lt;/caption&gt;
432
+ * &lt;tr&gt;
433
+ * &lt;th&gt;Time&lt;/th&gt;
434
+ * &lt;th&gt;Value&lt;/th&gt;
435
+ * &lt;/tr&gt;
436
+ * &lt;tr&gt;
437
+ * &lt;td&gt;1.001&lt;/td&gt;
438
+ * &lt;td&gt;Aaaabb+&lt;/td&gt;
439
+ * &lt;/tr&gt;
440
+ * &lt;tr&gt;
441
+ * &lt;td&gt;2.22&lt;/td&gt;
442
+ * &lt;td&gt;Addabb+++&lt;/td&gt;
443
+ * &lt;/tr&gt;
444
+ * &lt;/table&gt;
445
+ * &lt;/div&gt;
446
+ * &lt;/div&gt;
447
+ * </code></pre>
448
+ * <p>
449
+ * Which creates the following content structure:
450
+ * </p>
451
+ * <pre><code>
452
+ * |--aHeader (text portlet)
453
+ * |--anImage (image portlet)
454
+ * |--aText (text portlet)
455
+ * |--aHorizontalLayout (layout)
456
+ * |--aText (text portlet)
457
+ * |--aVerticalLayout (layout)
458
+ * |--aText (text portlet)
459
+ * |--aTable (table portlet)
460
+ * </code></pre>
461
+ *
462
+ * <hr>
463
+ *
464
+ * <p>
465
+ * An instance of the Sitevision class implementing this interface can be obtained via
466
+ * {@link senselogic.sitevision.api.Utils#getWebContentUtil()}.
467
+ * See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
468
+ * </p><p>
469
+ * Alters the content of a sv:page, sv:article or a sv:template.
470
+ * </p>
471
+ *
472
+ * <p>
473
+ * If an invalid node type is specified a <code>IllegalArgumentException</code> is thrown. The page content is specified as a
474
+ * HTML string used to generate a portlet structure in the <strong>first</strong> layout available. The provided
475
+ * content is converted to Sitevision text, table and image modules. It is also possible to specify that a horizontal
476
+ * or a vertical layout should be created.
477
+ * </p>
478
+ *
479
+ * <p>
480
+ * <strong>Note that the content (i.e portlets and layouts) of the first layout will be replaced, not appended.</strong>
481
+ * </p>
482
+ *
483
+ * <p>
484
+ * The current user must be authorized to alter the node or a <code>ConstraintViolationException</code> is thrown.
485
+ * </p>
486
+ *
487
+ * <p>
488
+ * If no node or no content is specified a <code>NullPointerException</code> is thrown.
489
+ * </p><p>
490
+ * Alters the content of a sv:page, sv:article or a sv:template.
491
+ * </p>
492
+ *
493
+ * <p>
494
+ * If an invalid node type is specified a <code>IllegalArgumentException</code> is thrown. The page content is specified using the
495
+ * content map containing keys corresponding to layout names (e.g. "mittenspalt") on the page and values containing the
496
+ * HTML used to generate a portlet structure in the layout. The provided content is converted to
497
+ * Sitevision text, table and image modules. It is also possible to specify that a horizontal or a vertical
498
+ * layout should be created.
499
+ * </p>
500
+ *
501
+ * <p>
502
+ * The names of the content map must correspond to layout names on the page.
503
+ * </p>
504
+ *
505
+ * <p>
506
+ * <strong>Note that the content of the specified layouts (i.e portlets and layouts) will be replaced, not appended.</strong>
507
+ * </p>
508
+ *
509
+ * <p>
510
+ * The current user must be authorized to alter the node or a <code>ConstraintViolationException</code> is thrown.
511
+ * </p>
512
+ *
513
+ * <p>
514
+ * If no node or no content is specified a <code>NullPointerException</code> is thrown.
515
+ * </p>Alters the content of a sv:page, sv:article or a sv:template with raw HTML (a HTML portlet is created).
516
+ *
517
+ * <p>
518
+ * <strong>Note!</strong> This method creates a single HTML portlet that contains all supplied content. This method
519
+ * is intended to be used as a <em>temporary solution</em> when the proper {@link #updateContent(javax.jcr.Node, java.util.Map)}
520
+ * and {@link #updateContent(javax.jcr.Node, String)} methods for some reason can't be used. Typically when converting badly formatted
521
+ * legacy CMS data into Sitevision content. I.e. this method enables creation of content that later on ought to be manually converted
522
+ * to proper Sitevision portlets.
523
+ * </p>
524
+ *
525
+ * <p>
526
+ * <strong>Note!</strong> Content is treated <em>as-is</em>, hence no internal links or references to local resources will be resolved
527
+ * as with the {@link #updateContent(javax.jcr.Node, java.util.Map)} and {@link #updateContent(javax.jcr.Node, String)} methods.
528
+ * The {@link #resolveToResourceURL(javax.jcr.Node, String)} can be used to manually try to resolve "old" resource url to a "new"
529
+ * Sitevision resource url.
530
+ * </p>Alters the content of a sv:page, sv:article or a sv:template with raw HTML (a HTML portlet is created).
531
+ *
532
+ * <p>
533
+ * <strong>Note!</strong> This method creates a single HTML portlet for each supplied content entry. This method
534
+ * is intended to be used as a <em>temporary solution</em> when the proper {@link #updateContent(javax.jcr.Node, java.util.Map)}
535
+ * and {@link #updateContent(javax.jcr.Node, String)} methods for some reason can't be used. Typically when converting badly formatted
536
+ * legacy CMS data into Sitevision content. I.e. this method enables creation of content that later on ought to be manually converted
537
+ * to proper Sitevision portlets.
538
+ * </p>
539
+ *
540
+ * <p>
541
+ * <strong>Note!</strong> Content is treated <em>as-is</em>, hence no internal links or references to local resources will be resolved
542
+ * as with the {@link #updateContent(javax.jcr.Node, java.util.Map)} and {@link #updateContent(javax.jcr.Node, String)} methods.
543
+ * The {@link #resolveToResourceURL(javax.jcr.Node, String)} can be used to manually try to resolve "old" resource url to a "new"
544
+ * Sitevision resource url.
545
+ * </p>Appends the content to the existing node.
546
+ *
547
+ * <p>
548
+ * If an invalid node type is specified a <code>IllegalArgumentException</code> is thrown. The page content is specified as a
549
+ * HTML string used to generate a portlet structure in the <strong>first</strong> layout available. The provided
550
+ * content is converted to Sitevision text, table and image modules. It is also possible to specify that a horizontal
551
+ * or a vertical layout should be created.
552
+ * </p>
553
+ *
554
+ * <p>
555
+ * <strong>Note that the content (i.e portlets and layouts) of the first layout will be appended, not replaced.</strong>
556
+ * </p>
557
+ *
558
+ * <p>
559
+ * The current user must be authorized to alter the node or a <code>ConstraintViolationException</code> is thrown.
560
+ * </p>
561
+ *
562
+ * <p>
563
+ * If no node or no content is specified a <code>NullPointerException</code> is thrown.
564
+ * </p><p>
565
+ * Append the content to the existing node.
566
+ * </p>
567
+ *
568
+ * <p>
569
+ * If an invalid node type is specified a <code>IllegalArgumentException</code> is thrown. The page content is specified using the
570
+ * content map containing keys corresponding to layout names (e.g. "mittenspalt") on the page and values containing the
571
+ * HTML used to generate a portlet structure in the layout. The provided content is converted to
572
+ * Sitevision text, table and image modules. It is also possible to specify that a horizontal or a vertical
573
+ * layout should be created.
574
+ * </p>
575
+ *
576
+ * <p>
577
+ * The names of the content map must correspond to layout names on the page.
578
+ * </p>
579
+ *
580
+ * <p>
581
+ * <strong>Note that the content of the specified layouts (i.e portlets and layouts) will be appended, not replaced.</strong>
582
+ * </p>
583
+ *
584
+ * <p>
585
+ * The current user must be authorized to alter the node or a <code>ConstraintViolationException</code> is thrown.
586
+ * </p>
587
+ *
588
+ * <p>
589
+ * If no node or no content is specified a <code>NullPointerException</code> is thrown.
590
+ * </p>Appends raw HTML (a HTML portlet is created) to the existing content of a node.
591
+ *
592
+ * <p>
593
+ * <strong>Note!</strong> This method creates a single HTML portlet that contains all supplied content and appends it to the existing content.
594
+ * This method is intended to be used as a <em>temporary solution</em> when the proper {@link #updateContent(javax.jcr.Node, java.util.Map)}
595
+ * and {@link #updateContent(javax.jcr.Node, String)} methods for some reason can't be used. Typically when converting badly formatted legacy
596
+ * CMS data into Sitevision content. I.e. this method enables creation of content that later on ought to be manually converted to proper
597
+ * Sitevision portlets.
598
+ * </p>
599
+ *
600
+ * <p>
601
+ * <strong>Note!</strong> Content is treated <em>as-is</em>, hence no internal links or references to local resources will be resolved
602
+ * as with the {@link #updateContent(javax.jcr.Node, java.util.Map)} and {@link #updateContent(javax.jcr.Node, String)} methods.
603
+ * The {@link #resolveToResourceURL(javax.jcr.Node, String)} can be used to manually try to resolve "old" resource url to a "new"
604
+ * Sitevision resource url.
605
+ * </p>Appends raw HTML (a HTML portlet is created) to the existing content of a node.
606
+ *
607
+ * <p>
608
+ * <strong>Note!</strong> This method creates a single HTML portlet that contains all supplied content and appends it to the existing content.
609
+ * This method is intended to be used as a <em>temporary solution</em> when the proper {@link #updateContent(javax.jcr.Node, java.util.Map)}
610
+ * and {@link #updateContent(javax.jcr.Node, String)} methods for some reason can't be used. Typically when converting badly formatted legacy
611
+ * CMS data into Sitevision content. I.e. this method enables creation of content that later on ought to be manually converted to proper
612
+ * Sitevision portlets.
613
+ * </p>
614
+ *
615
+ * <p>
616
+ * <strong>Note!</strong> Content is treated <em>as-is</em>, hence no internal links or references to local resources will be resolved
617
+ * as with the {@link #updateContent(javax.jcr.Node, java.util.Map)} and {@link #updateContent(javax.jcr.Node, String)} methods.
618
+ * The {@link #resolveToResourceURL(javax.jcr.Node, String)} can be used to manually try to resolve "old" resource url to a "new"
619
+ * Sitevision resource url.
620
+ * </p>Resolves an unresolved URL to a resource (potentially needed for all resource references in HTML content that later is
621
+ * updated or appended as raw HTML).
622
+ *
623
+ * <p>
624
+ * <strong>Note!</strong> HTML content is treated <em>as-is</em> when using the
625
+ * {@link #appendContentWithRawHtml(javax.jcr.Node, java.util.Map)}, {@link #appendContentWithRawHtml(javax.jcr.Node, String)},
626
+ * {@link #updateContentWithRawHtml(javax.jcr.Node, java.util.Map)} or {@link #updateContentWithRawHtml(javax.jcr.Node, String)}.
627
+ * Hence no internal links or references to local resources will be resolved as with the {@link #updateContent(javax.jcr.Node, java.util.Map)}
628
+ * and {@link #updateContent(javax.jcr.Node, String)} methods.
629
+ * This method can be used to manually try to resolve "old" resource url to a "new" Sitevision resource url.
630
+ * </p>
631
+ * @author Mikael Wikblom
632
+ * @since Sitevision 2.6.2
633
+ */
634
+ declare namespace WebContentUtil {
635
+ export {
636
+ updateContent,
637
+ updateContentWithRawHtml,
638
+ appendContent,
639
+ appendContentWithRawHtml,
640
+ resolveToResourceURL,
641
+ };
642
+ }
643
+
644
+ export default WebContentUtil;