@sitevision/api 2.0.0-alpha.1 → 2023.2.1-alpha.0

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 (280) hide show
  1. package/client/requester/index.d.ts +10 -8
  2. package/client/toasts/index.d.ts +7 -5
  3. package/common/app/index.d.ts +45 -46
  4. package/common/events/index.d.ts +30 -31
  5. package/common/i18n/index.d.ts +7 -5
  6. package/common/router/index.d.ts +72 -77
  7. package/common/security/index.d.ts +27 -21
  8. package/index.d.ts +8 -0
  9. package/package.json +1 -1
  10. package/server/AliasUtil/index.d.ts +11 -9
  11. package/server/ArchiveUtil/index.d.ts +43 -41
  12. package/server/ArraysInstance/index.d.ts +1666 -1807
  13. package/server/ArticleUtil/index.d.ts +292 -224
  14. package/server/AuthenticationUtil/index.d.ts +72 -84
  15. package/server/BookmarkUtil/index.d.ts +74 -79
  16. package/server/BuddyIconRenderer/index.d.ts +123 -131
  17. package/server/BuddyIconRenderer.BuddyIconSize/index.d.ts +41 -0
  18. package/server/BuddyIconRenderer.BuddyIconSize/index.js +25 -0
  19. package/server/ClientUtil/index.d.ts +10 -8
  20. package/server/CollaborationFactory/index.d.ts +37 -40
  21. package/server/CollaborationGroupFolderUtil/index.d.ts +28 -26
  22. package/server/CollaborationGroupState/index.d.ts +27 -0
  23. package/server/CollaborationGroupState/index.js +11 -0
  24. package/server/CollaborationGroupTemplateUtil/index.d.ts +46 -48
  25. package/server/CollaborationGroupType/index.d.ts +28 -0
  26. package/server/CollaborationGroupType/index.js +12 -0
  27. package/server/CollaborationGroupUtil/index.d.ts +84 -80
  28. package/server/CollectionsInstance/index.d.ts +641 -704
  29. package/server/ColorUtil/index.d.ts +34 -35
  30. package/server/CompoundAndFilterBuilder/index.d.ts +28 -26
  31. package/server/CompoundComparatorBuilder/index.d.ts +33 -31
  32. package/server/CompoundOrFilterBuilder/index.d.ts +28 -26
  33. package/server/ContentNodeUtil/index.d.ts +34 -32
  34. package/server/CurrencyFactory/index.d.ts +70 -68
  35. package/server/DateUtil/index.d.ts +131 -141
  36. package/server/DecorationUtil/index.d.ts +11 -9
  37. package/server/DeviceUtil/index.d.ts +19 -17
  38. package/server/DimensionMode/index.d.ts +17 -0
  39. package/server/DimensionMode/index.js +12 -0
  40. package/server/DirectoryUtil/index.d.ts +87 -85
  41. package/server/DocType/index.d.ts +30 -0
  42. package/server/DocType/index.js +14 -0
  43. package/server/DocTypeUtil/index.d.ts +127 -133
  44. package/server/EndecUtil/index.d.ts +329 -346
  45. package/server/ExtendedDismaxParserBuilder/index.d.ts +153 -167
  46. package/server/FileIconRenderer/index.d.ts +152 -171
  47. package/server/FileUtil/index.d.ts +272 -298
  48. package/server/FilterBuilder/index.d.ts +39 -37
  49. package/server/FolderUtil/index.d.ts +91 -92
  50. package/server/FontUtil/index.d.ts +34 -35
  51. package/server/FormatterBuilderFactory/index.d.ts +73 -81
  52. package/server/HighlightBuilder/index.d.ts +76 -83
  53. package/server/IconUtil/index.d.ts +25 -23
  54. package/server/ImageLinkRenderer/index.d.ts +35 -33
  55. package/server/ImageRenderer/index.d.ts +340 -376
  56. package/server/ImageUtil/index.d.ts +245 -263
  57. package/server/IndexUtil/index.d.ts +38 -35
  58. package/server/IndexUtil.IndexType/index.d.ts +29 -0
  59. package/server/IndexUtil.IndexType/index.js +13 -0
  60. package/server/IndexingUtil/index.d.ts +67 -45
  61. package/server/InstanceCreatorUtil/index.d.ts +423 -459
  62. package/server/InstanceTypeUtil/index.d.ts +167 -188
  63. package/server/JwtUtil/index.d.ts +129 -127
  64. package/server/LandingPageUtil/index.d.ts +82 -85
  65. package/server/LandingPageUtil/index.js +1 -0
  66. package/server/LinkPageUtil/index.d.ts +294 -248
  67. package/server/LinkRenderer/index.d.ts +649 -713
  68. package/server/LinkTargetBuilder/index.d.ts +65 -73
  69. package/server/LinkValueBuilder/index.d.ts +66 -73
  70. package/server/ListWrapper/index.d.ts +80 -89
  71. package/server/LocaleUtil/index.d.ts +381 -393
  72. package/server/LogUtil/index.d.ts +118 -127
  73. package/server/MailBuilder/index.d.ts +106 -121
  74. package/server/MailUtil/index.d.ts +58 -63
  75. package/server/MathInstance/index.d.ts +624 -656
  76. package/server/MessageDigesterFactory/index.d.ts +28 -26
  77. package/server/MetadataDefinitionUtil/index.d.ts +77 -81
  78. package/server/MetadataUtil/index.d.ts +321 -345
  79. package/server/MimeTypeUtil/index.d.ts +208 -214
  80. package/server/MonitorBuilder/index.d.ts +17 -17
  81. package/server/NodeComparatorUtil/index.d.ts +214 -224
  82. package/server/NodeFactoryUtil/index.d.ts +19 -17
  83. package/server/NodeFilterUtil/index.d.ts +651 -738
  84. package/server/NodeIteratorUtil/index.d.ts +209 -224
  85. package/server/NodeResolverUtil/index.d.ts +398 -404
  86. package/server/NodeTreeUtil/index.d.ts +211 -226
  87. package/server/NodeTypeUtil/index.d.ts +1430 -546
  88. package/server/OfflineVersionPropertyUtil/index.d.ts +6 -4
  89. package/server/OnlineVersionPropertyUtil/index.d.ts +6 -4
  90. package/server/OutputUtil/index.d.ts +384 -379
  91. package/server/PageUtil/index.d.ts +264 -186
  92. package/server/PermissionUtil/index.d.ts +391 -428
  93. package/server/PermissionUtil.Permission/index.d.ts +54 -0
  94. package/server/PermissionUtil.Permission/index.js +38 -0
  95. package/server/PortletContextUtil/index.d.ts +111 -106
  96. package/server/PortletUtil/index.d.ts +30 -20
  97. package/server/PrincipalUtil/index.d.ts +33 -31
  98. package/server/Properties/index.d.ts +68 -75
  99. package/server/PropertyUtil/index.d.ts +1419 -1461
  100. package/server/PublishingUtil/index.d.ts +246 -247
  101. package/server/QueryStringUtil/index.d.ts +403 -414
  102. package/server/RedirectUtil/index.d.ts +62 -66
  103. package/server/RelatedValueBuilder/index.d.ts +40 -38
  104. package/server/Requester/index.d.ts +123 -123
  105. package/server/ResourceLocatorUtil/index.d.ts +434 -474
  106. package/server/RestApi/index.d.ts +156 -136
  107. package/server/RestAppInvokerFactory/index.d.ts +25 -23
  108. package/server/RoleAssignmentBuilder/index.d.ts +35 -33
  109. package/server/RoleMatcherBuilder/index.d.ts +35 -33
  110. package/server/RoleUtil/index.d.ts +35 -37
  111. package/server/ScriptUtil/index.d.ts +457 -494
  112. package/server/SearchFactory/index.d.ts +102 -117
  113. package/server/SearchUtil/index.d.ts +73 -71
  114. package/server/SearcherBuilder/index.d.ts +107 -114
  115. package/server/Session/index.d.ts +251 -1093
  116. package/server/Session/index.js +1 -20
  117. package/server/SimpleUserUtil/index.d.ts +26 -27
  118. package/server/SiteCookieUtil/index.d.ts +150 -173
  119. package/server/SortBuilder/index.d.ts +24 -22
  120. package/server/SourceSetMode/index.d.ts +12 -0
  121. package/server/SourceSetMode/index.js +12 -0
  122. package/server/SpellCheckBuilder/index.d.ts +27 -27
  123. package/server/StandardParserBuilder/index.d.ts +33 -31
  124. package/server/StructureUtil/index.d.ts +83 -81
  125. package/server/SubscriberUtil/index.d.ts +58 -65
  126. package/server/SubscriptionUtil/index.d.ts +121 -128
  127. package/server/SystemUserUtil/index.d.ts +146 -144
  128. package/server/TagUtil/index.d.ts +113 -118
  129. package/server/TemplateUtil/index.d.ts +113 -118
  130. package/server/TemporaryFileNodeBuilder/index.d.ts +29 -27
  131. package/server/TemporaryNodeBuilder/index.d.ts +136 -174
  132. package/server/TextModuleRendererBuilder/index.d.ts +18 -16
  133. package/server/TimestampUtil/index.d.ts +102 -116
  134. package/server/TranslationUtil/index.d.ts +96 -102
  135. package/server/TrashcanUtil/index.d.ts +112 -115
  136. package/server/UserDataUtil/index.d.ts +108 -109
  137. package/server/UserFactory/index.d.ts +49 -56
  138. package/server/UserFieldRenderer/index.d.ts +118 -126
  139. package/server/UserIdentityUtil/index.d.ts +36 -34
  140. package/server/UserUtil/index.d.ts +30 -28
  141. package/server/Utils/index.d.ts +702 -791
  142. package/server/VelocityRenderer/index.d.ts +94 -92
  143. package/server/VersionUtil/index.d.ts +24 -8
  144. package/server/WebContentUtil/index.d.ts +275 -282
  145. package/server/WebResourceFactory/index.d.ts +46 -51
  146. package/server/XSLTUtil/index.d.ts +33 -31
  147. package/server/XmlParserUtil/index.d.ts +47 -45
  148. package/server/appData/index.d.ts +8 -6
  149. package/server/appInfo/index.d.ts +6 -2
  150. package/server/appResource/index.d.ts +23 -21
  151. package/server/cache/index.d.ts +8 -6
  152. package/server/globalAppData/index.d.ts +8 -6
  153. package/server/headless/index.d.ts +28 -26
  154. package/server/hooks/index.d.ts +9 -9
  155. package/server/oauth2/index.d.ts +12 -10
  156. package/server/privileged/index.d.ts +24 -22
  157. package/server/storage/index.d.ts +22 -20
  158. package/types/javax/jcr/Binary/index.d.ts +0 -20
  159. package/types/javax/jcr/Binary/index.js +0 -1
  160. package/types/javax/jcr/ImportUUIDBehavior/index.d.ts +24 -0
  161. package/types/javax/jcr/Item/index.d.ts +1 -116
  162. package/types/javax/jcr/Item/index.js +0 -6
  163. package/types/javax/jcr/NamespaceRegistry/index.d.ts +66 -42
  164. package/types/javax/jcr/NamespaceRegistry/index.js +0 -2
  165. package/types/javax/jcr/Node/index.d.ts +24 -1495
  166. package/types/javax/jcr/Node/index.js +1 -34
  167. package/types/javax/jcr/NodeIterator/index.d.ts +1 -1
  168. package/types/javax/jcr/Property/index.d.ts +487 -489
  169. package/types/javax/jcr/Property/index.js +0 -5
  170. package/types/javax/jcr/PropertyIterator/index.d.ts +1 -1
  171. package/types/javax/jcr/RangeIterator/index.d.ts +1 -43
  172. package/types/javax/jcr/RangeIterator/index.js +1 -5
  173. package/types/javax/jcr/Repository/index.d.ts +460 -260
  174. package/types/javax/jcr/Repository/index.js +0 -4
  175. package/types/javax/jcr/Value/index.d.ts +0 -29
  176. package/types/javax/jcr/Value/index.js +0 -2
  177. package/types/javax/jcr/ValueFactory/index.d.ts +0 -70
  178. package/types/javax/jcr/ValueFactory/index.js +1 -2
  179. package/types/javax/jcr/Workspace/index.d.ts +93 -569
  180. package/types/javax/jcr/Workspace/index.js +1 -12
  181. package/types/javax/jcr/nodetype/ItemDefinition/index.d.ts +0 -103
  182. package/types/javax/jcr/nodetype/ItemDefinition/index.js +0 -5
  183. package/types/javax/jcr/nodetype/NodeDefinition/index.d.ts +1 -1
  184. package/types/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +1 -1
  185. package/types/javax/jcr/nodetype/NodeType/index.d.ts +255 -264
  186. package/types/javax/jcr/nodetype/NodeType/index.js +1 -12
  187. package/types/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +0 -104
  188. package/types/javax/jcr/nodetype/NodeTypeDefinition/index.js +1 -7
  189. package/types/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +1 -1
  190. package/types/javax/jcr/nodetype/NodeTypeManager/index.d.ts +0 -123
  191. package/types/javax/jcr/nodetype/NodeTypeManager/index.js +1 -8
  192. package/types/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +1 -1
  193. package/types/javax/jcr/nodetype/PropertyDefinition/index.d.ts +1 -270
  194. package/types/javax/jcr/nodetype/PropertyDefinition/index.js +1 -7
  195. package/types/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +1 -1
  196. package/types/javax/jcr/observation/Event/index.d.ts +82 -41
  197. package/types/javax/jcr/observation/EventIterator/index.d.ts +1 -1
  198. package/types/javax/jcr/observation/EventJournal/index.d.ts +1 -1
  199. package/types/javax/jcr/observation/EventListenerIterator/index.d.ts +1 -1
  200. package/types/javax/jcr/query/Query/index.d.ts +29 -8
  201. package/types/javax/jcr/query/RowIterator/index.d.ts +1 -1
  202. package/types/javax/jcr/query/qom/And/index.d.ts +1 -1
  203. package/types/javax/jcr/query/qom/BindVariableValue/index.d.ts +1 -1
  204. package/types/javax/jcr/query/qom/ChildNode/index.d.ts +1 -1
  205. package/types/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +1 -1
  206. package/types/javax/jcr/query/qom/Comparison/index.d.ts +1 -1
  207. package/types/javax/jcr/query/qom/DescendantNode/index.d.ts +1 -1
  208. package/types/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +1 -1
  209. package/types/javax/jcr/query/qom/DynamicOperand/index.d.ts +1 -1
  210. package/types/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +1 -1
  211. package/types/javax/jcr/query/qom/FullTextSearch/index.d.ts +1 -1
  212. package/types/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +1 -1
  213. package/types/javax/jcr/query/qom/Join/index.d.ts +1 -1
  214. package/types/javax/jcr/query/qom/Length/index.d.ts +1 -1
  215. package/types/javax/jcr/query/qom/Literal/index.d.ts +1 -1
  216. package/types/javax/jcr/query/qom/LowerCase/index.d.ts +1 -1
  217. package/types/javax/jcr/query/qom/NodeLocalName/index.d.ts +1 -1
  218. package/types/javax/jcr/query/qom/NodeName/index.d.ts +1 -1
  219. package/types/javax/jcr/query/qom/Not/index.d.ts +1 -1
  220. package/types/javax/jcr/query/qom/Or/index.d.ts +1 -1
  221. package/types/javax/jcr/query/qom/PropertyExistence/index.d.ts +1 -1
  222. package/types/javax/jcr/query/qom/PropertyValue/index.d.ts +1 -1
  223. package/types/javax/jcr/query/qom/QueryObjectModel/index.d.ts +1 -1
  224. package/types/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +73 -1
  225. package/types/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +1 -1
  226. package/types/javax/jcr/query/qom/SameNode/index.d.ts +1 -1
  227. package/types/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +1 -1
  228. package/types/javax/jcr/query/qom/Selector/index.d.ts +1 -1
  229. package/types/javax/jcr/query/qom/StaticOperand/index.d.ts +1 -1
  230. package/types/javax/jcr/query/qom/UpperCase/index.d.ts +1 -1
  231. package/types/javax/jcr/security/AccessControlList/index.d.ts +1 -1
  232. package/types/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +1 -1
  233. package/types/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +1 -1
  234. package/types/javax/jcr/security/Privilege/index.d.ts +127 -43
  235. package/types/javax/jcr/version/Version/index.d.ts +1 -1
  236. package/types/javax/jcr/version/VersionHistory/index.d.ts +1 -1
  237. package/types/javax/jcr/version/VersionIterator/index.d.ts +1 -1
  238. package/types/senselogic/sitevision/api/base/Requireable/ScriptEngine/index.d.ts +9 -0
  239. package/types/senselogic/sitevision/api/base/Requireable/ScriptEngine/index.js +11 -0
  240. package/types/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +9 -5
  241. package/types/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +1 -1
  242. package/types/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +1 -1
  243. package/types/senselogic/sitevision/api/render/BuddyIconRenderer.BuddyIconInfo/index.d.ts +49 -0
  244. package/types/senselogic/sitevision/api/render/BuddyIconRenderer.BuddyIconInfo/index.js +12 -0
  245. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants/index.d.ts +83 -0
  246. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants/index.js +21 -0
  247. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ExceptionSuppressingProxyConstants/index.d.ts +29 -0
  248. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ExceptionSuppressingProxyConstants/index.js +12 -0
  249. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants/index.d.ts +29 -0
  250. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants/index.js +12 -0
  251. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.LinkPageUtilConstants/index.d.ts +65 -0
  252. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.LinkPageUtilConstants/index.js +18 -0
  253. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MathInstanceConstants/index.d.ts +23 -0
  254. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MathInstanceConstants/index.js +11 -0
  255. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MimeTypeUtilConstants/index.d.ts +17 -0
  256. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MimeTypeUtilConstants/index.js +10 -0
  257. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.d.ts +1241 -0
  258. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.js +189 -0
  259. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.OutputUtilConstants/index.d.ts +29 -0
  260. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.OutputUtilConstants/index.js +12 -0
  261. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants/index.d.ts +89 -0
  262. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants/index.js +22 -0
  263. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletContextUtilConstants/index.d.ts +25 -0
  264. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletContextUtilConstants/index.js +11 -0
  265. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants/index.d.ts +17 -0
  266. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants/index.js +10 -0
  267. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.QueryStringUtilConstants/index.d.ts +17 -0
  268. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.QueryStringUtilConstants/index.js +10 -0
  269. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchHitConstants/index.d.ts +23 -0
  270. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchHitConstants/index.js +11 -0
  271. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchResultConstants/index.d.ts +35 -0
  272. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchResultConstants/index.js +13 -0
  273. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.VersionUtilConstants/index.d.ts +23 -0
  274. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.VersionUtilConstants/index.js +11 -0
  275. package/types/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +2 -2
  276. package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +22 -2
  277. package/types/senselogic/sitevision/api/search/SearchHit/index.d.ts +16 -2
  278. package/types/senselogic/sitevision/api/search/SearchResult/index.d.ts +28 -6
  279. package/types/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +31 -1
  280. package/types/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +1 -1
@@ -1,250 +1,5 @@
1
1
  import type { Node } from "../../types/javax/jcr/Node";
2
2
 
3
- /**
4
- * <p>
5
- * Publishes a node.
6
- * </p>
7
- * <p>
8
- * Valid nodes are <code>sv:sitePage</code>, <code>sv:page</code>, <code>sv:article</code>, <code>sv:collaborationGroupPage</code>,
9
- * <code>sv:template</code> and <code>sv:link</code> <em>(must be a "page link", a stand-alone link in the page tree)</em>.
10
- * If another node is specified an <code>IllegalArgumentException</code> is thrown.
11
- * </p>
12
- *
13
- * <p>
14
- * If no node is specified a <code>NullPointerException</code> is thrown.
15
- * </p>
16
- *
17
- * <p>
18
- * The current user must be authorized to publish nodes or a <code>ConstraintViolationException</code> will be thrown.
19
- * </p>
20
- * @param aNode the node that should be published. May not be <code>null</code>
21
- * @throws ConstraintViolationException if current user is not authorized to publish nodes
22
- * @throws RepositoryException if something else goes wrong
23
- * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectivePublishPermission(Node, Node)
24
- */
25
- export function publishNode(aNode: Node): void;
26
-
27
- /**
28
- * <p>
29
- * Schedules a node publish job for execution at a specified date.
30
- * </p>
31
- * <p>
32
- * Valid nodes are <code>sv:sitePage</code>, <code>sv:page</code>, <code>sv:article</code>, <code>sv:collaborationGroupPage</code>,
33
- * <code>sv:template</code> and <code>sv:link</code> <em>(must be a "page link", a stand-alone link in the page tree)</em>.
34
- * If another node is specified an <code>IllegalArgumentException</code> is thrown.
35
- * </p>
36
- *
37
- * <p>
38
- * If no node is specified a <code>NullPointerException</code> is thrown.
39
- * </p>
40
- *
41
- * <p>
42
- * The current user must be authorized to publish nodes or a <code>ConstraintViolationException</code> will be thrown.
43
- * </p>
44
- * @param aNode the node that should be published
45
- * @param aDate the publish date
46
- * @throws ConstraintViolationException if current user is not authorized to publish nodes
47
- * @throws RepositoryException if something else goes wrong
48
- * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectivePublishPermission(Node, Node)
49
- */
50
- export function publishNode(aNode: Node, aDate: unknown): void;
51
-
52
- /**
53
- * <p>
54
- * Schedules a node publish job for execution at a specified date and a node unpublish job for execution at another date.
55
- * </p>
56
- * <p>
57
- * Valid nodes are <code>sv:sitePage</code>, <code>sv:page</code>, <code>sv:article</code>, <code>sv:collaborationGroupPage</code>,
58
- * <code>sv:template</code> and <code>sv:link</code> <em>(must be a "page link", a stand-alone link in the page tree)</em>.
59
- * If another node is specified an <code>IllegalArgumentException</code> is thrown.
60
- * </p>
61
- *
62
- * <p>
63
- * If no node is specified a <code>NullPointerException</code> is thrown.
64
- * </p>
65
- *
66
- * <p>
67
- * The current user must be authorized to publish nodes or a <code>ConstraintViolationException</code> will be thrown.
68
- * </p>
69
- * @param aNode the node that should be published
70
- * @param aPublishDate the publish date
71
- * @param anUnpublishDate the unpublish date
72
- * @throws ConstraintViolationException if current user is not authorized to publish nodes
73
- * @throws RepositoryException if something else goes wrong
74
- * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectivePublishPermission(Node, Node)
75
- */
76
- export function publishNode(
77
- aNode: Node,
78
- aPublishDate: unknown,
79
- anUnpublishDate: unknown
80
- ): void;
81
-
82
- /**
83
- * <p>
84
- * Publishes a node instantly with a best before notification date.
85
- * </p>
86
- * <p>
87
- * Valid nodes are <code>sv:sitePage</code>, <code>sv:page</code>, <code>sv:article</code>, <code>sv:collaborationGroupPage</code>,
88
- * <code>sv:template</code> and <code>sv:link</code> <em>(must be a "page link", a stand-alone link in the page tree)</em>.
89
- * If another node is specified an <code>IllegalArgumentException</code> is thrown.
90
- * </p>
91
- *
92
- * <p>
93
- * If a <code>aNotificationDate</code> is before current date a notification will be sent instantly.
94
- * If <code>aNotificationDate</code> is null, no notification will be sent.
95
- * </p>
96
- *
97
- * <p>
98
- * The current user must be authorized to publish nodes or a <code>ConstraintViolationException</code> will be thrown.
99
- * </p>
100
- * @param aNode the node that should be published. Valid nodes are sv:sitePage, sv:page, sv:article and sv:template.
101
- * @param aNotificationDate best-before notification date.
102
- * @throws NullPointerException if <code>aNode</code> is null.
103
- * @throws IllegalArgumentException if <code>aNode</code> is of invalid type.
104
- * @throws ConstraintViolationException if current user is not authorized to publish nodes.
105
- * @throws RepositoryException on unexpected failures.
106
- * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectivePublishPermission(Node, Node)
107
- * @since Sitevision 2.6.2_05
108
- */
109
- export function publishNodeWithNotification(
110
- aNode: Node,
111
- aNotificationDate: unknown
112
- ): void;
113
-
114
- /**
115
- * <p>
116
- * Schedules a node publish job for execution at a specified date with a best before notification date.
117
- * </p>
118
- * <p>
119
- * Valid nodes are <code>sv:sitePage</code>, <code>sv:page</code>, <code>sv:article</code>, <code>sv:collaborationGroupPage</code>,
120
- * <code>sv:template</code> and <code>sv:link</code> <em>(must be a "page link", a stand-alone link in the page tree)</em>.
121
- * If another node is specified an <code>IllegalArgumentException</code> is thrown.
122
- * </p>
123
- * <p>
124
- * If <code>aNotificationDate</code> is null no notification will be sent. If <code>aNotificationDate</code>
125
- * is before <code>aPublishDate</code> no notification will be sent since node hasn't been published yet.
126
- * If a <code>aNotificationDate</code> is before current date, a notification will be sent instantly.
127
- * </p>
128
- *
129
- * <p>
130
- * If <code>aPublishDate</code> is <code>null</code> or before current time, the node will be published instantly.
131
- * </p>
132
- *
133
- * <p>
134
- * The current user must be authorized to publish nodes or a <code>ConstraintViolationException</code> will be thrown.
135
- * </p>
136
- * @param aNode the node that should be published. Valid nodes are sv:sitePage, sv:page, sv:article and sv:template.
137
- * @param aPublishDate the publish date for the node.
138
- * @param aNotificationDate best-before notification date.
139
- * @throws NullPointerException if <code>aNode</code> is null.
140
- * @throws IllegalArgumentException if <code>aNode</code> is of invalid type.
141
- * @throws ConstraintViolationException if current user is not authorized to publish nodes.
142
- * @throws RepositoryException on unexpected failures.
143
- * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectivePublishPermission(Node, Node)
144
- * @since Sitevision 2.6.2_05
145
- */
146
- export function publishNodeWithNotification(
147
- aNode: Node,
148
- aPublishDate: unknown,
149
- aNotificationDate: unknown
150
- ): void;
151
-
152
- /**
153
- * <p>
154
- * Schedules a node publish job for execution at a specified date and a node unpublish job for execution at a later
155
- * date and a best before notification date.
156
- * </p>
157
- * <p>
158
- * Valid nodes are <code>sv:sitePage</code>, <code>sv:page</code>, <code>sv:article</code>, <code>sv:collaborationGroupPage</code>,
159
- * <code>sv:template</code> and <code>sv:link</code> <em>(must be a "page link", a stand-alone link in the page tree)</em>.
160
- * If another node is specified an <code>IllegalArgumentException</code> is thrown.
161
- * </p>
162
- *
163
- * <p>
164
- * If <code>aNotificationDate</code> is null, no notification will be sent. If <code>aNotificationDate</code> is
165
- * before <code>aPublishDate</code> no notification will be sent since node hasn't been published yet. If a
166
- * <code>aNotificationDate</code> is before current date, a notification will be sent instantly.
167
- * </p>
168
- *
169
- * <p>
170
- * If <code>aPublishDate</code> is <code>null</code> or before current time, the node will be published instantly.
171
- * </p>
172
- *
173
- * <p>
174
- * If <code>aUnpublishDate</code> is before <code>aPublishDate</code> the unpublish job will run but won't affect
175
- * the publishing, i.e. the node will be published at the given publish date.
176
- * </p>
177
- *
178
- * <p>
179
- * The current user must be authorized to publish nodes or a <code>ConstraintViolationException</code> will be thrown.
180
- * </p>
181
- * @param aNode the node that should be published. Valid nodes are sv:sitePage, sv:page, sv:article and sv:template.
182
- * @param aPublishDate the publish date for the node.
183
- * @param aUnpublishDate the unpublish date for the node.
184
- * @param aNotificationDate best-before notification date.
185
- * @throws NullPointerException if <code>aNode</code> or <code>aUnpublishDate</code> is null.
186
- * @throws IllegalArgumentException if <code>aNode</code> is of invalid type.
187
- * @throws ConstraintViolationException if current user is not authorized to publish nodes.
188
- * @throws RepositoryException on unexpected failures.
189
- * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectivePublishPermission(Node, Node)
190
- * @since Sitevision 2.6.2_05
191
- */
192
- export function publishNodeWithNotification(
193
- aNode: Node,
194
- aPublishDate: unknown,
195
- aUnpublishDate: unknown,
196
- aNotificationDate: unknown
197
- ): void;
198
-
199
- /**
200
- * <p>
201
- * Unpublishes a node.
202
- * </p>
203
- * <p>
204
- * Valid nodes are <code>sv:sitePage</code>, <code>sv:page</code>, <code>sv:article</code>, <code>sv:collaborationGroupPage</code>,
205
- * <code>sv:template</code> and <code>sv:link</code> <em>(must be a "page link", a stand-alone link in the page tree)</em>.
206
- * If another node is specified an <code>IllegalArgumentException</code> is thrown.
207
- * </p>
208
- *
209
- * <p>
210
- * If no node is specified a <code>NullPointerException</code> is thrown.
211
- * </p>
212
- *
213
- * <p>
214
- * The current user must be authorized to publish nodes or a <code>ConstraintViolationException</code> will be thrown.
215
- * </p>
216
- * @param aNode the node that should be unpublished
217
- * @throws ConstraintViolationException if current user is not authorized to unpublish nodes
218
- * @throws RepositoryException if something else goes wrong
219
- * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectivePublishPermission(Node, Node)
220
- */
221
- export function unpublishNode(aNode: Node): void;
222
-
223
- /**
224
- * <p>
225
- * Schedules a node unpublish job for execution at a specified date.
226
- * </p>
227
- * <p>
228
- * Valid nodes are <code>sv:sitePage</code>, <code>sv:page</code>, <code>sv:article</code>, <code>sv:collaborationGroupPage</code>,
229
- * <code>sv:template</code> and <code>sv:link</code> <em>(must be a "page link", a stand-alone link in the page tree)</em>.
230
- * If another node is specified an <code>IllegalArgumentException</code> is thrown.
231
- * </p>
232
- *
233
- * <p>
234
- * If no node is specified a <code>NullPointerException</code> is thrown.
235
- * </p>
236
- *
237
- * <p>
238
- * The current user must be authorized to publish nodes or a <code>ConstraintViolationException</code> will be thrown.
239
- * </p>
240
- * @param aNode the node that should be unpublished
241
- * @param aDate the unpublish date
242
- * @throws ConstraintViolationException if current user is not authorized to unpublish nodes
243
- * @throws RepositoryException if something else goes wrong
244
- * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectivePublishPermission(Node, Node)
245
- */
246
- export function unpublishNode(aNode: Node, aDate: unknown): void;
247
-
248
3
  /**
249
4
  * Publishing/unpublishing utility interface.
250
5
  *
@@ -261,8 +16,252 @@ export function unpublishNode(aNode: Node, aDate: unknown): void;
261
16
  * @author Mikael Wikblom
262
17
  * @since Sitevision 2.6.1_04
263
18
  */
264
- declare namespace publishingUtil {
265
- export { publishNode, publishNodeWithNotification, unpublishNode };
19
+ export interface PublishingUtil {
20
+ /**
21
+ * <p>
22
+ * Publishes a node.
23
+ * </p>
24
+ * <p>
25
+ * Valid nodes are <code>sv:sitePage</code>, <code>sv:page</code>, <code>sv:article</code>, <code>sv:collaborationGroupPage</code>,
26
+ * <code>sv:template</code> and <code>sv:link</code> <em>(must be a "page link", a stand-alone link in the page tree)</em>.
27
+ * If another node is specified an <code>IllegalArgumentException</code> is thrown.
28
+ * </p>
29
+ *
30
+ * <p>
31
+ * If no node is specified a <code>NullPointerException</code> is thrown.
32
+ * </p>
33
+ *
34
+ * <p>
35
+ * The current user must be authorized to publish nodes or a <code>ConstraintViolationException</code> will be thrown.
36
+ * </p>
37
+ * @param aNode the node that should be published. May not be <code>null</code>
38
+ * @throws ConstraintViolationException if current user is not authorized to publish nodes
39
+ * @throws RepositoryException if something else goes wrong
40
+ * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectivePublishPermission(Node, Node)
41
+ */
42
+ publishNode(aNode: Node): void;
43
+
44
+ /**
45
+ * <p>
46
+ * Schedules a node publish job for execution at a specified date.
47
+ * </p>
48
+ * <p>
49
+ * Valid nodes are <code>sv:sitePage</code>, <code>sv:page</code>, <code>sv:article</code>, <code>sv:collaborationGroupPage</code>,
50
+ * <code>sv:template</code> and <code>sv:link</code> <em>(must be a "page link", a stand-alone link in the page tree)</em>.
51
+ * If another node is specified an <code>IllegalArgumentException</code> is thrown.
52
+ * </p>
53
+ *
54
+ * <p>
55
+ * If no node is specified a <code>NullPointerException</code> is thrown.
56
+ * </p>
57
+ *
58
+ * <p>
59
+ * The current user must be authorized to publish nodes or a <code>ConstraintViolationException</code> will be thrown.
60
+ * </p>
61
+ * @param aNode the node that should be published
62
+ * @param aDate the publish date
63
+ * @throws ConstraintViolationException if current user is not authorized to publish nodes
64
+ * @throws RepositoryException if something else goes wrong
65
+ * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectivePublishPermission(Node, Node)
66
+ */
67
+ publishNode(aNode: Node, aDate: unknown): void;
68
+
69
+ /**
70
+ * <p>
71
+ * Schedules a node publish job for execution at a specified date and a node unpublish job for execution at another date.
72
+ * </p>
73
+ * <p>
74
+ * Valid nodes are <code>sv:sitePage</code>, <code>sv:page</code>, <code>sv:article</code>, <code>sv:collaborationGroupPage</code>,
75
+ * <code>sv:template</code> and <code>sv:link</code> <em>(must be a "page link", a stand-alone link in the page tree)</em>.
76
+ * If another node is specified an <code>IllegalArgumentException</code> is thrown.
77
+ * </p>
78
+ *
79
+ * <p>
80
+ * If no node is specified a <code>NullPointerException</code> is thrown.
81
+ * </p>
82
+ *
83
+ * <p>
84
+ * The current user must be authorized to publish nodes or a <code>ConstraintViolationException</code> will be thrown.
85
+ * </p>
86
+ * @param aNode the node that should be published
87
+ * @param aPublishDate the publish date
88
+ * @param anUnpublishDate the unpublish date
89
+ * @throws ConstraintViolationException if current user is not authorized to publish nodes
90
+ * @throws RepositoryException if something else goes wrong
91
+ * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectivePublishPermission(Node, Node)
92
+ */
93
+ publishNode(
94
+ aNode: Node,
95
+ aPublishDate: unknown,
96
+ anUnpublishDate: unknown
97
+ ): void;
98
+
99
+ /**
100
+ * <p>
101
+ * Publishes a node instantly with a best before notification date.
102
+ * </p>
103
+ * <p>
104
+ * Valid nodes are <code>sv:sitePage</code>, <code>sv:page</code>, <code>sv:article</code>, <code>sv:collaborationGroupPage</code>,
105
+ * <code>sv:template</code> and <code>sv:link</code> <em>(must be a "page link", a stand-alone link in the page tree)</em>.
106
+ * If another node is specified an <code>IllegalArgumentException</code> is thrown.
107
+ * </p>
108
+ *
109
+ * <p>
110
+ * If a <code>aNotificationDate</code> is before current date a notification will be sent instantly.
111
+ * If <code>aNotificationDate</code> is null, no notification will be sent.
112
+ * </p>
113
+ *
114
+ * <p>
115
+ * The current user must be authorized to publish nodes or a <code>ConstraintViolationException</code> will be thrown.
116
+ * </p>
117
+ * @param aNode the node that should be published. Valid nodes are sv:sitePage, sv:page, sv:article and sv:template.
118
+ * @param aNotificationDate best-before notification date.
119
+ * @throws NullPointerException if <code>aNode</code> is null.
120
+ * @throws IllegalArgumentException if <code>aNode</code> is of invalid type.
121
+ * @throws ConstraintViolationException if current user is not authorized to publish nodes.
122
+ * @throws RepositoryException on unexpected failures.
123
+ * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectivePublishPermission(Node, Node)
124
+ * @since Sitevision 2.6.2_05
125
+ */
126
+ publishNodeWithNotification(aNode: Node, aNotificationDate: unknown): void;
127
+
128
+ /**
129
+ * <p>
130
+ * Schedules a node publish job for execution at a specified date with a best before notification date.
131
+ * </p>
132
+ * <p>
133
+ * Valid nodes are <code>sv:sitePage</code>, <code>sv:page</code>, <code>sv:article</code>, <code>sv:collaborationGroupPage</code>,
134
+ * <code>sv:template</code> and <code>sv:link</code> <em>(must be a "page link", a stand-alone link in the page tree)</em>.
135
+ * If another node is specified an <code>IllegalArgumentException</code> is thrown.
136
+ * </p>
137
+ * <p>
138
+ * If <code>aNotificationDate</code> is null no notification will be sent. If <code>aNotificationDate</code>
139
+ * is before <code>aPublishDate</code> no notification will be sent since node hasn't been published yet.
140
+ * If a <code>aNotificationDate</code> is before current date, a notification will be sent instantly.
141
+ * </p>
142
+ *
143
+ * <p>
144
+ * If <code>aPublishDate</code> is <code>null</code> or before current time, the node will be published instantly.
145
+ * </p>
146
+ *
147
+ * <p>
148
+ * The current user must be authorized to publish nodes or a <code>ConstraintViolationException</code> will be thrown.
149
+ * </p>
150
+ * @param aNode the node that should be published. Valid nodes are sv:sitePage, sv:page, sv:article and sv:template.
151
+ * @param aPublishDate the publish date for the node.
152
+ * @param aNotificationDate best-before notification date.
153
+ * @throws NullPointerException if <code>aNode</code> is null.
154
+ * @throws IllegalArgumentException if <code>aNode</code> is of invalid type.
155
+ * @throws ConstraintViolationException if current user is not authorized to publish nodes.
156
+ * @throws RepositoryException on unexpected failures.
157
+ * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectivePublishPermission(Node, Node)
158
+ * @since Sitevision 2.6.2_05
159
+ */
160
+ publishNodeWithNotification(
161
+ aNode: Node,
162
+ aPublishDate: unknown,
163
+ aNotificationDate: unknown
164
+ ): void;
165
+
166
+ /**
167
+ * <p>
168
+ * Schedules a node publish job for execution at a specified date and a node unpublish job for execution at a later
169
+ * date and a best before notification date.
170
+ * </p>
171
+ * <p>
172
+ * Valid nodes are <code>sv:sitePage</code>, <code>sv:page</code>, <code>sv:article</code>, <code>sv:collaborationGroupPage</code>,
173
+ * <code>sv:template</code> and <code>sv:link</code> <em>(must be a "page link", a stand-alone link in the page tree)</em>.
174
+ * If another node is specified an <code>IllegalArgumentException</code> is thrown.
175
+ * </p>
176
+ *
177
+ * <p>
178
+ * If <code>aNotificationDate</code> is null, no notification will be sent. If <code>aNotificationDate</code> is
179
+ * before <code>aPublishDate</code> no notification will be sent since node hasn't been published yet. If a
180
+ * <code>aNotificationDate</code> is before current date, a notification will be sent instantly.
181
+ * </p>
182
+ *
183
+ * <p>
184
+ * If <code>aPublishDate</code> is <code>null</code> or before current time, the node will be published instantly.
185
+ * </p>
186
+ *
187
+ * <p>
188
+ * If <code>aUnpublishDate</code> is before <code>aPublishDate</code> the unpublish job will run but won't affect
189
+ * the publishing, i.e. the node will be published at the given publish date.
190
+ * </p>
191
+ *
192
+ * <p>
193
+ * The current user must be authorized to publish nodes or a <code>ConstraintViolationException</code> will be thrown.
194
+ * </p>
195
+ * @param aNode the node that should be published. Valid nodes are sv:sitePage, sv:page, sv:article and sv:template.
196
+ * @param aPublishDate the publish date for the node.
197
+ * @param aUnpublishDate the unpublish date for the node.
198
+ * @param aNotificationDate best-before notification date.
199
+ * @throws NullPointerException if <code>aNode</code> or <code>aUnpublishDate</code> is null.
200
+ * @throws IllegalArgumentException if <code>aNode</code> is of invalid type.
201
+ * @throws ConstraintViolationException if current user is not authorized to publish nodes.
202
+ * @throws RepositoryException on unexpected failures.
203
+ * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectivePublishPermission(Node, Node)
204
+ * @since Sitevision 2.6.2_05
205
+ */
206
+ publishNodeWithNotification(
207
+ aNode: Node,
208
+ aPublishDate: unknown,
209
+ aUnpublishDate: unknown,
210
+ aNotificationDate: unknown
211
+ ): void;
212
+
213
+ /**
214
+ * <p>
215
+ * Unpublishes a node.
216
+ * </p>
217
+ * <p>
218
+ * Valid nodes are <code>sv:sitePage</code>, <code>sv:page</code>, <code>sv:article</code>, <code>sv:collaborationGroupPage</code>,
219
+ * <code>sv:template</code> and <code>sv:link</code> <em>(must be a "page link", a stand-alone link in the page tree)</em>.
220
+ * If another node is specified an <code>IllegalArgumentException</code> is thrown.
221
+ * </p>
222
+ *
223
+ * <p>
224
+ * If no node is specified a <code>NullPointerException</code> is thrown.
225
+ * </p>
226
+ *
227
+ * <p>
228
+ * The current user must be authorized to publish nodes or a <code>ConstraintViolationException</code> will be thrown.
229
+ * </p>
230
+ * @param aNode the node that should be unpublished
231
+ * @throws ConstraintViolationException if current user is not authorized to unpublish nodes
232
+ * @throws RepositoryException if something else goes wrong
233
+ * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectivePublishPermission(Node, Node)
234
+ */
235
+ unpublishNode(aNode: Node): void;
236
+
237
+ /**
238
+ * <p>
239
+ * Schedules a node unpublish job for execution at a specified date.
240
+ * </p>
241
+ * <p>
242
+ * Valid nodes are <code>sv:sitePage</code>, <code>sv:page</code>, <code>sv:article</code>, <code>sv:collaborationGroupPage</code>,
243
+ * <code>sv:template</code> and <code>sv:link</code> <em>(must be a "page link", a stand-alone link in the page tree)</em>.
244
+ * If another node is specified an <code>IllegalArgumentException</code> is thrown.
245
+ * </p>
246
+ *
247
+ * <p>
248
+ * If no node is specified a <code>NullPointerException</code> is thrown.
249
+ * </p>
250
+ *
251
+ * <p>
252
+ * The current user must be authorized to publish nodes or a <code>ConstraintViolationException</code> will be thrown.
253
+ * </p>
254
+ * @param aNode the node that should be unpublished
255
+ * @param aDate the unpublish date
256
+ * @throws ConstraintViolationException if current user is not authorized to unpublish nodes
257
+ * @throws RepositoryException if something else goes wrong
258
+ * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectivePublishPermission(Node, Node)
259
+ */
260
+ unpublishNode(aNode: Node, aDate: unknown): void;
266
261
  }
267
262
 
263
+ declare namespace PublishingUtil {}
264
+
265
+ declare var publishingUtil: PublishingUtil;
266
+
268
267
  export default publishingUtil;