@sitevision/api 1.0.20 → 1.1.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (307) hide show
  1. package/hidden/javax/jcr/Binary/index.d.ts +86 -0
  2. package/hidden/javax/jcr/Credentials/index.d.ts +11 -0
  3. package/hidden/javax/jcr/ImportUUIDBehavior/index.d.ts +11 -0
  4. package/hidden/javax/jcr/Item/index.d.ts +353 -0
  5. package/hidden/javax/jcr/ItemVisitor/index.d.ts +41 -0
  6. package/hidden/javax/jcr/NamespaceRegistry/index.d.ts +100 -0
  7. package/hidden/javax/jcr/Node/index.d.ts +2808 -0
  8. package/hidden/javax/jcr/NodeIterator/index.d.ts +18 -0
  9. package/hidden/javax/jcr/Property/index.d.ts +801 -0
  10. package/hidden/javax/jcr/PropertyIterator/index.d.ts +17 -0
  11. package/hidden/javax/jcr/RangeIterator/index.d.ts +75 -0
  12. package/hidden/javax/jcr/Repository/index.d.ts +318 -0
  13. package/hidden/javax/jcr/RepositoryFactory/index.d.ts +90 -0
  14. package/hidden/javax/jcr/Value/index.d.ts +190 -0
  15. package/hidden/javax/jcr/ValueFactory/index.d.ts +179 -0
  16. package/hidden/javax/jcr/Workspace/index.d.ts +1061 -0
  17. package/hidden/javax/jcr/lock/Lock/index.d.ts +142 -0
  18. package/hidden/javax/jcr/lock/LockManager/index.d.ts +217 -0
  19. package/hidden/javax/jcr/nodetype/ItemDefinition/index.d.ts +219 -0
  20. package/hidden/javax/jcr/nodetype/NodeDefinition/index.d.ts +158 -0
  21. package/hidden/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +74 -0
  22. package/hidden/javax/jcr/nodetype/NodeType/index.d.ts +349 -0
  23. package/hidden/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +248 -0
  24. package/hidden/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +16 -0
  25. package/hidden/javax/jcr/nodetype/NodeTypeManager/index.d.ts +218 -0
  26. package/hidden/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +98 -0
  27. package/hidden/javax/jcr/nodetype/PropertyDefinition/index.d.ts +536 -0
  28. package/hidden/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +97 -0
  29. package/hidden/javax/jcr/observation/Event/index.d.ts +133 -0
  30. package/hidden/javax/jcr/observation/EventIterator/index.d.ts +20 -0
  31. package/hidden/javax/jcr/observation/EventJournal/index.d.ts +22 -0
  32. package/hidden/javax/jcr/observation/EventListener/index.d.ts +23 -0
  33. package/hidden/javax/jcr/observation/EventListenerIterator/index.d.ts +20 -0
  34. package/hidden/javax/jcr/observation/ObservationManager/index.d.ts +227 -0
  35. package/hidden/javax/jcr/query/Query/index.d.ts +201 -0
  36. package/hidden/javax/jcr/query/QueryManager/index.d.ts +73 -0
  37. package/hidden/javax/jcr/query/QueryResult/index.d.ts +51 -0
  38. package/hidden/javax/jcr/query/Row/index.d.ts +159 -0
  39. package/hidden/javax/jcr/query/RowIterator/index.d.ts +20 -0
  40. package/hidden/javax/jcr/query/qom/And/index.d.ts +26 -0
  41. package/hidden/javax/jcr/query/qom/BindVariableValue/index.d.ts +15 -0
  42. package/hidden/javax/jcr/query/qom/ChildNode/index.d.ts +27 -0
  43. package/hidden/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +27 -0
  44. package/hidden/javax/jcr/query/qom/Column/index.d.ts +39 -0
  45. package/hidden/javax/jcr/query/qom/Comparison/index.d.ts +82 -0
  46. package/hidden/javax/jcr/query/qom/Constraint/index.d.ts +13 -0
  47. package/hidden/javax/jcr/query/qom/DescendantNode/index.d.ts +31 -0
  48. package/hidden/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +29 -0
  49. package/hidden/javax/jcr/query/qom/DynamicOperand/index.d.ts +9 -0
  50. package/hidden/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +41 -0
  51. package/hidden/javax/jcr/query/qom/FullTextSearch/index.d.ts +89 -0
  52. package/hidden/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +24 -0
  53. package/hidden/javax/jcr/query/qom/Join/index.d.ts +36 -0
  54. package/hidden/javax/jcr/query/qom/JoinCondition/index.d.ts +9 -0
  55. package/hidden/javax/jcr/query/qom/Length/index.d.ts +24 -0
  56. package/hidden/javax/jcr/query/qom/Literal/index.d.ts +18 -0
  57. package/hidden/javax/jcr/query/qom/LowerCase/index.d.ts +26 -0
  58. package/hidden/javax/jcr/query/qom/NodeLocalName/index.d.ts +16 -0
  59. package/hidden/javax/jcr/query/qom/NodeName/index.d.ts +16 -0
  60. package/hidden/javax/jcr/query/qom/Not/index.d.ts +20 -0
  61. package/hidden/javax/jcr/query/qom/Operand/index.d.ts +9 -0
  62. package/hidden/javax/jcr/query/qom/Or/index.d.ts +30 -0
  63. package/hidden/javax/jcr/query/qom/Ordering/index.d.ts +53 -0
  64. package/hidden/javax/jcr/query/qom/PropertyExistence/index.d.ts +24 -0
  65. package/hidden/javax/jcr/query/qom/PropertyValue/index.d.ts +25 -0
  66. package/hidden/javax/jcr/query/qom/QueryObjectModel/index.d.ts +64 -0
  67. package/hidden/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +9 -0
  68. package/hidden/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +638 -0
  69. package/hidden/javax/jcr/query/qom/SameNode/index.d.ts +27 -0
  70. package/hidden/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +36 -0
  71. package/hidden/javax/jcr/query/qom/Selector/index.d.ts +35 -0
  72. package/hidden/javax/jcr/query/qom/Source/index.d.ts +9 -0
  73. package/hidden/javax/jcr/query/qom/StaticOperand/index.d.ts +10 -0
  74. package/hidden/javax/jcr/query/qom/UpperCase/index.d.ts +26 -0
  75. package/hidden/javax/jcr/retention/Hold/index.d.ts +34 -0
  76. package/hidden/javax/jcr/retention/RetentionManager/index.d.ts +189 -0
  77. package/hidden/javax/jcr/retention/RetentionPolicy/index.d.ts +21 -0
  78. package/hidden/javax/jcr/security/AccessControlEntry/index.d.ts +24 -0
  79. package/hidden/javax/jcr/security/AccessControlList/index.d.ts +91 -0
  80. package/hidden/javax/jcr/security/AccessControlManager/index.d.ts +297 -0
  81. package/hidden/javax/jcr/security/AccessControlPolicy/index.d.ts +11 -0
  82. package/hidden/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +20 -0
  83. package/hidden/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +22 -0
  84. package/hidden/javax/jcr/security/Privilege/index.d.ts +117 -0
  85. package/hidden/javax/jcr/version/Version/index.d.ts +121 -0
  86. package/hidden/javax/jcr/version/VersionHistory/index.d.ts +307 -0
  87. package/hidden/javax/jcr/version/VersionIterator/index.d.ts +20 -0
  88. package/hidden/javax/jcr/version/VersionManager/index.d.ts +1082 -0
  89. package/hidden/senselogic/sitevision/api/base/Builder/index.d.ts +102 -0
  90. package/hidden/senselogic/sitevision/api/base/Filter/index.d.ts +25 -0
  91. package/hidden/senselogic/sitevision/api/base/FilterSplit/index.d.ts +50 -0
  92. package/hidden/senselogic/sitevision/api/base/Loadable/index.d.ts +15 -0
  93. package/hidden/senselogic/sitevision/api/base/Resolver/index.d.ts +31 -0
  94. package/hidden/senselogic/sitevision/api/base/Wrapper/index.d.ts +24 -0
  95. package/hidden/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +417 -0
  96. package/hidden/senselogic/sitevision/api/format/NumericFormatter/index.d.ts +80 -0
  97. package/hidden/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +100 -0
  98. package/hidden/senselogic/sitevision/api/i18n/Currency/index.d.ts +120 -0
  99. package/hidden/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +45 -0
  100. package/hidden/senselogic/sitevision/api/link/CustomLinkRenderData/index.d.ts +65 -0
  101. package/hidden/senselogic/sitevision/api/mail/Mail/index.d.ts +32 -0
  102. package/hidden/senselogic/sitevision/api/message/MessageTextLinker/index.d.ts +15 -0
  103. package/hidden/senselogic/sitevision/api/metadata/value/LinkValue/index.d.ts +23 -0
  104. package/hidden/senselogic/sitevision/api/metadata/value/RelatedValue/index.d.ts +23 -0
  105. package/hidden/senselogic/sitevision/api/property/VersionedPropertyUtil/index.d.ts +642 -0
  106. package/hidden/senselogic/sitevision/api/render/BuddyIconRenderer/BuddyIconInfo/index.d.ts +51 -0
  107. package/hidden/senselogic/sitevision/api/render/ImageScaler/index.d.ts +58 -0
  108. package/hidden/senselogic/sitevision/api/render/TextModuleRenderer/index.d.ts +301 -0
  109. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ArticleUtilConstants/index.d.ts +85 -0
  110. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ExceptionSuppressingProxyConstants/index.d.ts +31 -0
  111. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/IndexingUtilConstants/index.d.ts +31 -0
  112. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/LinkPageUtilConstants/index.d.ts +67 -0
  113. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MathInstanceConstants/index.d.ts +25 -0
  114. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MimeTypeUtilConstants/index.d.ts +19 -0
  115. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/NodeTypeUtilConstants/index.d.ts +1243 -0
  116. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/OutputUtilConstants/index.d.ts +31 -0
  117. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PageUtilConstants/index.d.ts +91 -0
  118. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletContextUtilConstants/index.d.ts +27 -0
  119. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletUtilConstants/index.d.ts +19 -0
  120. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/QueryStringUtilConstants/index.d.ts +19 -0
  121. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchHitConstants/index.d.ts +25 -0
  122. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchResultConstants/index.d.ts +37 -0
  123. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/VersionUtilConstants/index.d.ts +25 -0
  124. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/index.d.ts +8 -0
  125. package/hidden/senselogic/sitevision/api/render/velocity/VelocityContext/index.d.ts +50 -0
  126. package/hidden/senselogic/sitevision/api/render/velocity/VelocityEvaluator/index.d.ts +89 -0
  127. package/hidden/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +119 -0
  128. package/hidden/senselogic/sitevision/api/script/app/RestAppInvoker/index.d.ts +272 -0
  129. package/hidden/senselogic/sitevision/api/script/factory/TypedArgument/index.d.ts +43 -0
  130. package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingCollection/index.d.ts +94 -0
  131. package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingIterator/index.d.ts +117 -0
  132. package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +90 -0
  133. package/hidden/senselogic/sitevision/api/search/SearchFieldUtil/index.d.ts +89 -0
  134. package/hidden/senselogic/sitevision/api/search/SearchHighlighter/index.d.ts +45 -0
  135. package/hidden/senselogic/sitevision/api/search/SearchHit/index.d.ts +1176 -0
  136. package/hidden/senselogic/sitevision/api/search/SearchResult/index.d.ts +414 -0
  137. package/hidden/senselogic/sitevision/api/search/facet/SearchFacetField/index.d.ts +27 -0
  138. package/hidden/senselogic/sitevision/api/search/facet/SearchFacetValue/index.d.ts +61 -0
  139. package/hidden/senselogic/sitevision/api/search/searcher/Searcher/index.d.ts +277 -0
  140. package/hidden/senselogic/sitevision/api/search/searcher/component/Filter/index.d.ts +25 -0
  141. package/hidden/senselogic/sitevision/api/search/searcher/component/Highlight/index.d.ts +29 -0
  142. package/hidden/senselogic/sitevision/api/search/searcher/component/Monitor/index.d.ts +25 -0
  143. package/hidden/senselogic/sitevision/api/search/searcher/component/Parser/index.d.ts +35 -0
  144. package/hidden/senselogic/sitevision/api/search/searcher/component/Sort/index.d.ts +25 -0
  145. package/hidden/senselogic/sitevision/api/search/searcher/component/SpellCheck/index.d.ts +29 -0
  146. package/hidden/senselogic/sitevision/api/search/sort/CustomSort/index.d.ts +82 -0
  147. package/hidden/senselogic/sitevision/api/search/suggestion/SearchSuggestion/index.d.ts +21 -0
  148. package/hidden/senselogic/sitevision/api/security/DirectoryAttributes/index.d.ts +70 -0
  149. package/hidden/senselogic/sitevision/api/security/MessageDigester/index.d.ts +50 -0
  150. package/hidden/senselogic/sitevision/api/security/RoleAssignment/index.d.ts +72 -0
  151. package/hidden/senselogic/sitevision/api/security/RoleMatcher/index.d.ts +29 -0
  152. package/hidden/senselogic/sitevision/api/security/SecretStore/index.d.ts +55 -0
  153. package/hidden/senselogic/sitevision/api/security/UserUtil/index.d.ts +80 -0
  154. package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +36 -0
  155. package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilterChain/index.d.ts +32 -0
  156. package/hidden/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +599 -0
  157. package/hidden/senselogic/sitevision/api/webresource/LinkTarget/index.d.ts +20 -0
  158. package/hidden/senselogic/sitevision/api/xml/XmlElement/index.d.ts +55 -0
  159. package/hidden/senselogic/sitevision/api/xml/XmlElementHandler/index.d.ts +17 -0
  160. package/index.d.ts +103 -4
  161. package/package.json +2 -4
  162. package/server/AliasUtil/index.d.ts +25 -0
  163. package/server/AliasUtil/index.js +10 -0
  164. package/server/ArchiveUtil/index.d.ts +65 -11
  165. package/server/ArraysInstance/index.d.ts +1846 -0
  166. package/server/ArticleUtil/index.d.ts +381 -69
  167. package/server/AuthenticationUtil/index.d.ts +106 -0
  168. package/server/BookmarkUtil/index.d.ts +36 -28
  169. package/server/BuddyIconRenderer/index.d.ts +240 -0
  170. package/server/ClientUtil/index.d.ts +18 -4
  171. package/server/CollaborationFactory/index.d.ts +42 -25
  172. package/server/CollaborationGroupFolderUtil/index.d.ts +40 -29
  173. package/server/CollaborationGroupTemplateUtil/index.d.ts +71 -39
  174. package/server/CollaborationGroupUtil/index.d.ts +128 -55
  175. package/server/CollectionsInstance/index.d.ts +738 -0
  176. package/server/ColorUtil/index.d.ts +22 -17
  177. package/server/CompoundAndFilterBuilder/index.d.ts +60 -0
  178. package/server/CompoundComparatorBuilder/index.d.ts +63 -0
  179. package/server/CompoundOrFilterBuilder/index.d.ts +59 -0
  180. package/server/ContentNodeUtil/index.d.ts +76 -0
  181. package/server/CurrencyFactory/index.d.ts +135 -0
  182. package/server/DateUtil/index.d.ts +154 -77
  183. package/server/DecorationUtil/index.d.ts +23 -0
  184. package/server/DeviceUtil/index.d.ts +36 -0
  185. package/server/DirectoryUtil/index.d.ts +107 -47
  186. package/server/DocTypeUtil/index.d.ts +149 -0
  187. package/server/EndecUtil/index.d.ts +537 -91
  188. package/server/ExtendedDismaxParserBuilder/index.d.ts +311 -0
  189. package/server/FileIconRenderer/index.d.ts +346 -0
  190. package/server/FileUtil/index.d.ts +462 -0
  191. package/server/FilterBuilder/index.d.ts +120 -0
  192. package/server/FolderUtil/index.d.ts +161 -0
  193. package/server/FontUtil/index.d.ts +49 -0
  194. package/server/FormatterBuilderFactory/index.d.ts +129 -0
  195. package/server/HighlightBuilder/index.d.ts +194 -0
  196. package/server/IconUtil/index.d.ts +37 -0
  197. package/server/ImageLinkRenderer/index.d.ts +134 -0
  198. package/server/ImageRenderer/index.d.ts +613 -231
  199. package/server/ImageUtil/index.d.ts +430 -0
  200. package/server/IndexUtil/index.d.ts +71 -0
  201. package/server/IndexingUtil/index.d.ts +92 -0
  202. package/server/InstanceCreatorUtil/index.d.ts +661 -0
  203. package/server/InstanceTypeUtil/index.d.ts +202 -0
  204. package/server/JwtUtil/index.d.ts +217 -0
  205. package/server/LandingPageUtil/index.d.ts +67 -50
  206. package/server/LinkPageUtil/index.d.ts +468 -0
  207. package/server/LinkRenderer/index.d.ts +1157 -0
  208. package/server/LinkTargetBuilder/index.d.ts +146 -0
  209. package/server/LinkValueBuilder/index.d.ts +129 -52
  210. package/server/ListWrapper/index.d.ts +172 -0
  211. package/server/LocaleUtil/index.d.ts +695 -61
  212. package/server/LogUtil/index.d.ts +118 -77
  213. package/server/MailBuilder/index.d.ts +238 -0
  214. package/server/MailUtil/index.d.ts +98 -0
  215. package/server/MathInstance/index.d.ts +681 -0
  216. package/server/MessageDigesterFactory/index.d.ts +49 -0
  217. package/server/MetadataDefinitionUtil/index.d.ts +118 -0
  218. package/server/MetadataUtil/index.d.ts +524 -79
  219. package/server/MimeTypeUtil/index.d.ts +316 -0
  220. package/server/MonitorBuilder/index.d.ts +51 -0
  221. package/server/NodeComparatorUtil/index.d.ts +397 -0
  222. package/server/NodeFactoryUtil/index.d.ts +32 -0
  223. package/server/NodeFilterUtil/index.d.ts +924 -0
  224. package/server/NodeIteratorUtil/index.d.ts +322 -72
  225. package/server/NodeResolverUtil/index.d.ts +767 -0
  226. package/server/NodeTreeUtil/index.d.ts +339 -63
  227. package/server/NodeTypeUtil/index.d.ts +391 -197
  228. package/server/OfflineVersionPropertyUtil/index.d.ts +30 -0
  229. package/server/OnlineVersionPropertyUtil/index.d.ts +30 -0
  230. package/server/OutputUtil/index.d.ts +641 -0
  231. package/server/PageUtil/index.d.ts +330 -0
  232. package/server/PermissionUtil/index.d.ts +650 -0
  233. package/server/PortletContextUtil/index.d.ts +118 -37
  234. package/server/PortletContextUtil/index.js +1 -0
  235. package/server/PortletUtil/index.d.ts +40 -0
  236. package/server/PrincipalUtil/index.d.ts +51 -0
  237. package/server/Properties/index.d.ts +185 -38
  238. package/server/PropertyUtil/index.d.ts +2330 -406
  239. package/server/PublishingUtil/index.d.ts +385 -49
  240. package/server/QueryStringUtil/index.d.ts +737 -0
  241. package/server/RedirectUtil/index.d.ts +98 -0
  242. package/server/RelatedValueBuilder/index.d.ts +81 -39
  243. package/server/Requester/index.d.ts +441 -65
  244. package/server/ResourceLocatorUtil/index.d.ts +483 -227
  245. package/server/RestApi/index.d.ts +208 -23
  246. package/server/RestAppInvokerFactory/index.d.ts +73 -0
  247. package/server/RoleAssignmentBuilder/index.d.ts +60 -0
  248. package/server/RoleMatcherBuilder/index.d.ts +59 -0
  249. package/server/RoleUtil/index.d.ts +57 -0
  250. package/server/ScriptUtil/index.d.ts +625 -143
  251. package/server/SearchFactory/index.d.ts +133 -0
  252. package/server/SearchUtil/index.d.ts +164 -0
  253. package/server/SearcherBuilder/index.d.ts +260 -0
  254. package/server/Session/index.d.ts +1758 -0
  255. package/server/SimpleUserUtil/index.d.ts +39 -30
  256. package/server/SiteCookieUtil/index.d.ts +78 -53
  257. package/server/SortBuilder/index.d.ts +111 -0
  258. package/server/SpellCheckBuilder/index.d.ts +68 -0
  259. package/server/StandardParserBuilder/index.d.ts +112 -0
  260. package/server/StructureUtil/index.d.ts +167 -0
  261. package/server/SubscriberUtil/index.d.ts +122 -0
  262. package/server/SubscriptionUtil/index.d.ts +197 -0
  263. package/server/SystemUserUtil/index.d.ts +201 -98
  264. package/server/TagUtil/index.d.ts +193 -0
  265. package/server/TemplateUtil/index.d.ts +217 -0
  266. package/server/TemporaryFileNodeBuilder/index.d.ts +63 -0
  267. package/server/TemporaryNodeBuilder/index.d.ts +241 -0
  268. package/server/TextModuleRendererBuilder/index.d.ts +68 -0
  269. package/server/TimestampUtil/index.d.ts +98 -82
  270. package/server/TranslationUtil/index.d.ts +175 -0
  271. package/server/TrashcanUtil/index.d.ts +193 -24
  272. package/server/UserDataUtil/index.d.ts +167 -85
  273. package/server/UserFactory/index.d.ts +45 -30
  274. package/server/UserFieldRenderer/index.d.ts +258 -0
  275. package/server/UserIdentityUtil/index.d.ts +61 -29
  276. package/server/UserUtil/index.d.ts +69 -28
  277. package/server/Utils/index.d.ts +870 -12
  278. package/server/VelocityRenderer/index.d.ts +248 -0
  279. package/server/VersionUtil/index.d.ts +15 -12
  280. package/server/WebContentUtil/index.d.ts +644 -0
  281. package/server/WebResourceFactory/index.d.ts +66 -0
  282. package/server/XSLTUtil/index.d.ts +49 -10
  283. package/server/XmlParserUtil/index.d.ts +82 -81
  284. package/builtins/Binary/index.d.ts +0 -3
  285. package/builtins/Calendar/index.d.ts +0 -3
  286. package/builtins/Collection/index.d.ts +0 -3
  287. package/builtins/Date/index.d.ts +0 -3
  288. package/builtins/InputStream/index.d.ts +0 -3
  289. package/builtins/Instant/index.d.ts +0 -3
  290. package/builtins/List/index.d.ts +0 -3
  291. package/builtins/LocalDateTime/index.d.ts +0 -3
  292. package/builtins/Locale/index.d.ts +0 -3
  293. package/builtins/Node/index.d.ts +0 -3
  294. package/builtins/NodeIterator/index.d.ts +0 -27
  295. package/builtins/Property/index.d.ts +0 -3
  296. package/builtins/Serializable/index.d.ts +0 -3
  297. package/builtins/Set/index.d.ts +0 -3
  298. package/builtins/Throwable/index.d.ts +0 -3
  299. package/builtins/byte/index.d.ts +0 -3
  300. package/server/CollaborationGroupState/index.d.ts +0 -6
  301. package/server/CollaborationGroupState/index.js +0 -1
  302. package/server/CollaborationGroupType/index.d.ts +0 -7
  303. package/server/CollaborationGroupType/index.js +0 -1
  304. package/server/CollaborationGroupWrapper/index.d.ts +0 -136
  305. package/server/CollaborationGroupWrapper/index.js +0 -1
  306. package/server/DimensionMode/index.d.ts +0 -7
  307. package/server/DimensionMode/index.js +0 -1
@@ -1,117 +1,133 @@
1
- import Calendar from '../../builtins/Calendar';
2
- import Date from '../../builtins/Date';
3
- import Instant from '../../builtins/Instant';
4
- import LocalDateTime from '../../builtins/LocalDateTime';
5
- import Locale from '../../builtins/Locale';
6
-
7
1
  /**
8
- * Formats a given timestamp.
9
- * @returns {string} a formatted String representing aTimestamp using Locale according toPortletContextUtil.getCurrentLocale(). If aLocale can not be resolved Locale.ENGLISH is used.If aTimestamp is negative or aFormatPattern is not valid the given timestamp is returned as String.
10
- * @param {number} aTimestamp - a timestamp.
11
- * @param {string} aFormatPattern - a date to string pattern according to SimpleDateFormat.
12
- */
13
- export function format(aTimestamp: number, aFormatPattern: string): string;
2
+ * Returns current timestamp.
3
+ * @return a long representing the current time.
4
+ */
5
+ export function getTimestamp(): number;
14
6
 
15
7
  /**
16
- * Formats a given timestamp using a specified Locale.
17
- * @returns {string} a formatted String representing the aTimestamp. If aTimestamp is negative or aFormatPattern is not valid the given timestampis returned as String.
18
- * @param {number} aTimestamp - a timestamp.
19
- * @param {string} aFormatPattern - a date to string pattern according to SimpleDateFormat.
20
- * @param {Locale} aLocale - a locale. If aLocale is null the current locale (as of PortletContextUtil.getCurrentLocale()) will be used. If aLocale can not be resolved Locale.ENGLISH will be used.
21
- */
22
- export function format(aTimestamp: number, aFormatPattern: string, aLocale: Locale): string;
8
+ * Formats current timestamp.
9
+ * @param aFormatPattern a date to string pattern according to SimpleDateFormat.
10
+ * @return a formatted String representing current timestamp using Locale according to {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()}. If aLocale can not be resolved Locale.ENGLISH is used. If aFormatPattern is not valid current timestamp is returned as String.
11
+ */
12
+ export function formatCurrent(aFormatPattern: string): string;
23
13
 
24
14
  /**
25
- * Formats current timestamp.
26
- * @returns {string} a formatted String representing current timestamp using Locale according toPortletContextUtil.getCurrentLocale(). If aLocale can not be resolved Locale.ENGLISH is used.If aFormatPattern is not valid current timestamp is returned as String.
27
- * @param {string} aFormatPattern - a date to string pattern according to SimpleDateFormat.
28
- */
29
- export function formatCurrent(aFormatPattern: string): string;
15
+ * Formats current timestamp using a specified Locale.
16
+ * @param aFormatPattern a date to string pattern according to SimpleDateFormat.
17
+ * @param aLocale a locale. If aLocale is null the current locale (as of {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()}) will be used. If aLocale can not be resolved Locale.ENGLISH will be used.
18
+ * @return a formatted String representing current timestamp. If aFormatPattern is not valid current timestamp is returned as String.
19
+ */
20
+ export function formatCurrent(aFormatPattern: string, aLocale: unknown): string;
30
21
 
31
22
  /**
32
- * Formats current timestamp using a specified Locale.
33
- * @returns {string} a formatted String representing current timestamp. If aFormatPattern is not valid current timestamp is returned as String.
34
- * @param {string} aFormatPattern - a date to string pattern according to SimpleDateFormat.
35
- * @param {Locale} aLocale - a locale. If aLocale is null the current locale (as of PortletContextUtil.getCurrentLocale()) will be used. If aLocale can not be resolved Locale.ENGLISH will be used.
36
- */
37
- export function formatCurrent(aFormatPattern: string, aLocale: Locale): string;
23
+ * Formats a given timestamp.
24
+ * @param aTimestamp a timestamp.
25
+ * @param aFormatPattern a date to string pattern according to SimpleDateFormat.
26
+ * @return a formatted String representing aTimestamp using Locale according to {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()}. If aLocale can not be resolved Locale.ENGLISH is used. If aTimestamp is negative or aFormatPattern is not valid the given timestamp is returned as String.
27
+ */
28
+ export function format(aTimestamp: number, aFormatPattern: string): string;
38
29
 
39
30
  /**
40
- * Converts a Calendar to a timestamp.
41
- * @returns {number} the timestamp representing aCalendar, or -1 if aCalendar is null.
42
- * @param {Calendar} aCalendar - a Calendar.
43
- */
44
- export function fromCalendar(aCalendar: Calendar): number;
31
+ * Formats a given timestamp using a specified Locale.
32
+ * @param aTimestamp a timestamp.
33
+ * @param aFormatPattern a date to string pattern according to SimpleDateFormat.
34
+ * @param aLocale a locale. If aLocale is null the current locale (as of {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()}) will be used. If aLocale can not be resolved Locale.ENGLISH will be used.
35
+ * @return a formatted String representing the aTimestamp. If aTimestamp is negative or aFormatPattern is not valid the given timestamp is returned as String.
36
+ */
37
+ export function format(
38
+ aTimestamp: number,
39
+ aFormatPattern: string,
40
+ aLocale: unknown
41
+ ): string;
45
42
 
46
43
  /**
47
- * Converts a Date to a timestamp.
48
- * @returns {number} the timestamp representing aDate, or -1 if aDate is null.
49
- * @param {Date} aDate - a Date.
50
- */
51
- export function fromDate(aDate: Date): number;
44
+ * Converts a timestamp to a Date.
45
+ * @param aTimestamp a timestamp.
46
+ * @return the Date representing aTimestamp, or null if aTimestamp is negative.
47
+ * @since Sitevision 4.5.5
48
+ */
49
+ export function toDate(aTimestamp: number): unknown;
52
50
 
53
51
  /**
54
- * Converts a Instant to a timestamp.
55
- * @returns {number} aInstant timestamp representing aInstant, or -1 if aInstant is null.
56
- * @param {Instant} aInstant - a Instant.
57
- */
58
- export function fromInstant(aInstant: Instant): number;
52
+ * Converts a Date to a timestamp.
53
+ * @param aDate a Date.
54
+ * @return the timestamp representing aDate, or -1 if aDate is null.
55
+ * @since Sitevision 4.5.5
56
+ */
57
+ export function fromDate(aDate: unknown): number;
59
58
 
60
59
  /**
61
- * Converts a LocalDateTime to a timestamp (using the system default ZoneId).
62
- * @returns {number} aInstant timestamp representing aLocalDateTime, or -1 if aLocalDateTime is null.
63
- * @param {LocalDateTime} aLocalDateTime - a LocalDateTime.
64
- */
65
- export function fromLocalDateTime(aLocalDateTime: LocalDateTime): number;
60
+ * Converts a timestamp to a Calendar.
61
+ * @param aTimestamp a timestamp.
62
+ * @return the Calendar representing aTimestamp, or null if aTimestamp is negative.
63
+ * @since Sitevision 4.5.5
64
+ */
65
+ export function toCalendar(aTimestamp: number): unknown;
66
66
 
67
67
  /**
68
- * Returns current timestamp.
69
- * @returns {number} a long representing the current time.
70
- */
71
- export function getTimestamp(): number;
68
+ * Converts a Calendar to a timestamp.
69
+ * @param aCalendar a Calendar.
70
+ * @return the timestamp representing aCalendar, or -1 if aCalendar is null.
71
+ * @since Sitevision 4.5.5
72
+ */
73
+ export function fromCalendar(aCalendar: unknown): number;
72
74
 
73
75
  /**
74
- * Converts a timestamp to a Calendar.
75
- * @returns {Calendar} the Calendar representing aTimestamp, or null if aTimestamp is negative.
76
- * @param {number} aTimestamp - a timestamp.
77
- */
78
- export function toCalendar(aTimestamp: number): Calendar;
76
+ * Converts a timestamp to a Instant.
77
+ * @param aTimestamp a timestamp.
78
+ * @return the Instant representing aTimestamp, or null if aTimestamp is negative.
79
+ * @since Sitevision 4.5.5
80
+ */
81
+ export function toInstant(aTimestamp: number): unknown;
79
82
 
80
83
  /**
81
- * Converts a timestamp to a Date.
82
- * @returns {Date} the Date representing aTimestamp, or null if aTimestamp is negative.
83
- * @param {number} aTimestamp - a timestamp.
84
- */
85
- export function toDate(aTimestamp: number): Date;
84
+ * Converts a Instant to a timestamp.
85
+ * @param aInstant a Instant.
86
+ * @return aInstant timestamp representing aInstant, or -1 if aInstant is null.
87
+ * @since Sitevision 4.5.5
88
+ */
89
+ export function fromInstant(aInstant: unknown): number;
86
90
 
87
91
  /**
88
- * Converts a timestamp to a Instant.
89
- * @returns {Instant} the Instant representing aTimestamp, or null if aTimestamp is negative.
90
- * @param {number} aTimestamp - a timestamp.
91
- */
92
- export function toInstant(aTimestamp: number): Instant;
92
+ * Converts a timestamp to a LocalDateTime (using the system default ZoneId).
93
+ * @param aTimestamp a timestamp.
94
+ * @return the LocalDateTime representing aTimestamp, or null if aTimestamp is negative.
95
+ * @since Sitevision 4.5.5
96
+ */
97
+ export function toLocalDateTime(aTimestamp: number): unknown;
93
98
 
94
99
  /**
95
- * Converts a timestamp to a LocalDateTime (using the system default ZoneId).
96
- * @returns {LocalDateTime} the LocalDateTime representing aTimestamp, or null if aTimestamp is negative.
97
- * @param {number} aTimestamp - a timestamp.
98
- */
99
- export function toLocalDateTime(aTimestamp: number): LocalDateTime;
100
+ * Converts a LocalDateTime to a timestamp (using the system default ZoneId).
101
+ * @param aLocalDateTime a Instant.
102
+ * @return aInstant timestamp representing aLocalDateTime, or -1 if aLocalDateTime is null.
103
+ * @since Sitevision 4.5.5
104
+ */
105
+ export function fromLocalDateTime(aLocalDateTime: unknown): number;
100
106
 
101
- declare namespace timestampUtil {
107
+ /**
108
+ * Timestamp utility interface.
109
+ *
110
+ * <p>
111
+ * An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getTimestampUtil()}.
112
+ * See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
113
+ * </p>Returns current timestamp.Formats current timestamp.Formats current timestamp using a specified Locale.Formats a given timestamp.Formats a given timestamp using a specified Locale.Converts a timestamp to a Date.Converts a Date to a timestamp.Converts a timestamp to a Calendar.Converts a Calendar to a timestamp.Converts a timestamp to a Instant.Converts a Instant to a timestamp.Converts a timestamp to a LocalDateTime (using the system default ZoneId).Converts a LocalDateTime to a timestamp (using the system default ZoneId).
114
+ * @author Jimmy Roselin
115
+ * @since Sitevision 4.5.4.1
116
+ */
117
+ declare namespace TimestampUtil {
102
118
  export {
103
- format,
119
+ getTimestamp,
104
120
  formatCurrent,
105
- fromCalendar,
121
+ format,
122
+ toDate,
106
123
  fromDate,
107
- fromInstant,
108
- fromLocalDateTime,
109
- getTimestamp,
110
124
  toCalendar,
111
- toDate,
125
+ fromCalendar,
112
126
  toInstant,
127
+ fromInstant,
113
128
  toLocalDateTime,
129
+ fromLocalDateTime,
114
130
  };
115
131
  }
116
132
 
117
- export default timestampUtil;
133
+ export default TimestampUtil;
@@ -0,0 +1,175 @@
1
+ import Node from "../../hidden/javax/jcr/Node";
2
+
3
+ /**
4
+ * Gets a list of all Locales that are set up for translations on the current site.
5
+ *
6
+ * <p>
7
+ * <em>Note! The returned List is immutable/unmodifiable,
8
+ * i.e. you must create a copy if you want to modify it (e.g. sort).</em>
9
+ * </p>
10
+ * @return a list of all Locales that are set up for translations on the current site
11
+ */
12
+ export function getSiteTranslationLocales(): unknown[];
13
+
14
+ /**
15
+ * Gets the translation mappings for a given page node.
16
+ *
17
+ * <p>
18
+ * Each entry in the returned map depicts a <em>"translation"</em>, i.e. a localized version of the given <code>aPageNode</code>.
19
+ * </p>
20
+ * <p>
21
+ * <strong>Important note! The returned map is never null, but entry <em>values</em> in the map might be!</strong>
22
+ * </p>
23
+ * <ul>
24
+ * <li>
25
+ * The entry <em>key</em> (i.e. the Locale) will never be null.
26
+ * </li>
27
+ * <li>
28
+ * The entry <em>value</em> (i.e. the Node) will be null if current user doesn't have
29
+ * {@link senselogic.sitevision.api.security.PermissionUtil.Permission#READ} permissions on the node.
30
+ * </li>
31
+ * </ul>
32
+ *
33
+ * <p>
34
+ * <em>Tip!</em> If you are only interested in non-null Nodes/values in the returned map, you can use
35
+ * {@link senselogic.sitevision.api.node.NodeFilterUtil} to filter them out!<br>
36
+ * Below is a conceptual example of how it could be done in server-side JavaScript (e.g. WebApp, RESTApp, Script module).
37
+ * </p><pre><code> var thePotentiallyTranslatedPageNode = ...,
38
+ * translationUtil = require('TranslationUtil'),
39
+ * nodeFilterUtil = require('NodeFilterUtil'),
40
+ * translationMappings,
41
+ * skipNullValuesFilter,
42
+ * filteredTranslationMappings;
43
+ *
44
+ * translationMappings = translationUtil.getTranslations(thePotentiallyTranslatedPageNode, false);
45
+ *
46
+ * skipNullValuesFilter = nodeFilterUtil.getNonNullFilter();
47
+ * filteredTranslationMappings = nodeFilterUtil.getFilteredValueMap(translationMappings, skipNullValuesFilter);</code></pre>
48
+ *
49
+ * <p>
50
+ * Please note that determining the "<em>is this page node translated at all?</em>" state from the returned result
51
+ * depends on the <code>aIncludePageNode</code> value:
52
+ * </p>
53
+ * <ul>
54
+ * <li>
55
+ * If it is <code>false</code>, an empty map will be returned.
56
+ * </li>
57
+ * <li>
58
+ * If it is <code>true</code>, a map with one entry <em>(i.e. the <code>aPageNode</code> itself)</em> will be returned.
59
+ * </li>
60
+ * </ul>
61
+ * @param aPageNode a page node that can be translated
62
+ * @param aIncludePageNode whether or not to include aPageNode in the result
63
+ * @return a Map of translation mappings
64
+ * @since Sitevision 4.3.1
65
+ */
66
+ export function getTranslations(
67
+ aPageNode: Node,
68
+ aIncludePageNode: boolean
69
+ ): Record<unknown, unknown>;
70
+
71
+ /**
72
+ * Gets the page node a given node is potentially translated from (the translation source).
73
+ * @param aPageNode the page node that is translated
74
+ * @return the page node aPageNode was translated from, or null if the page node isn't translated from another page or if current user doesn't have {@link senselogic.sitevision.api.security.PermissionUtil.Permission#READ} permissions on the from node.
75
+ * @since Sitevision 4.3.1
76
+ */
77
+ export function getTranslatedFrom(aPageNode: Node): Node;
78
+
79
+ /**
80
+ * Sets the translated from node to the page node provided as translation node.
81
+ *
82
+ * <p>
83
+ * <strong>Permission note!</strong> Current user must match have
84
+ * {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_TRANSLATIONS} and
85
+ * {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}
86
+ * on @aTranslationPageNode.
87
+ * </p>
88
+ * @param aOriginalPageNode the original page node to be configured as translated from on aTranslationPageNode. It will be configured as original in aTranslationPageNode as well if aOriginalPageNode doesn't have any original configured.
89
+ * @param aTranslationPageNode the translation page node to be configured as translation of aOriginalPageNode
90
+ * @return true if aTranslationPageNode could be configured as translation of aOriginalPageNode, false otherwise.
91
+ * @since Sitevision 4.3.2
92
+ */
93
+ export function setTranslatedFrom(
94
+ aOriginalPageNode: Node,
95
+ aTranslationPageNode: Node
96
+ ): boolean;
97
+
98
+ /**
99
+ * Translation utility interface.
100
+ *
101
+ * <p>
102
+ * An instance of the Sitevision class implementing this interface can be obtained via
103
+ * {@link senselogic.sitevision.api.Utils#getTranslationUtil()}.
104
+ * See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
105
+ * </p>Gets a list of all Locales that are set up for translations on the current site.
106
+ *
107
+ * <p>
108
+ * <em>Note! The returned List is immutable/unmodifiable,
109
+ * i.e. you must create a copy if you want to modify it (e.g. sort).</em>
110
+ * </p>Gets the translation mappings for a given page node.
111
+ *
112
+ * <p>
113
+ * Each entry in the returned map depicts a <em>"translation"</em>, i.e. a localized version of the given <code>aPageNode</code>.
114
+ * </p>
115
+ * <p>
116
+ * <strong>Important note! The returned map is never null, but entry <em>values</em> in the map might be!</strong>
117
+ * </p>
118
+ * <ul>
119
+ * <li>
120
+ * The entry <em>key</em> (i.e. the Locale) will never be null.
121
+ * </li>
122
+ * <li>
123
+ * The entry <em>value</em> (i.e. the Node) will be null if current user doesn't have
124
+ * {@link senselogic.sitevision.api.security.PermissionUtil.Permission#READ} permissions on the node.
125
+ * </li>
126
+ * </ul>
127
+ *
128
+ * <p>
129
+ * <em>Tip!</em> If you are only interested in non-null Nodes/values in the returned map, you can use
130
+ * {@link senselogic.sitevision.api.node.NodeFilterUtil} to filter them out!<br>
131
+ * Below is a conceptual example of how it could be done in server-side JavaScript (e.g. WebApp, RESTApp, Script module).
132
+ * </p><pre><code> var thePotentiallyTranslatedPageNode = ...,
133
+ * translationUtil = require('TranslationUtil'),
134
+ * nodeFilterUtil = require('NodeFilterUtil'),
135
+ * translationMappings,
136
+ * skipNullValuesFilter,
137
+ * filteredTranslationMappings;
138
+ *
139
+ * translationMappings = translationUtil.getTranslations(thePotentiallyTranslatedPageNode, false);
140
+ *
141
+ * skipNullValuesFilter = nodeFilterUtil.getNonNullFilter();
142
+ * filteredTranslationMappings = nodeFilterUtil.getFilteredValueMap(translationMappings, skipNullValuesFilter);</code></pre>
143
+ *
144
+ * <p>
145
+ * Please note that determining the "<em>is this page node translated at all?</em>" state from the returned result
146
+ * depends on the <code>aIncludePageNode</code> value:
147
+ * </p>
148
+ * <ul>
149
+ * <li>
150
+ * If it is <code>false</code>, an empty map will be returned.
151
+ * </li>
152
+ * <li>
153
+ * If it is <code>true</code>, a map with one entry <em>(i.e. the <code>aPageNode</code> itself)</em> will be returned.
154
+ * </li>
155
+ * </ul>Gets the page node a given node is potentially translated from (the translation source).Sets the translated from node to the page node provided as translation node.
156
+ *
157
+ * <p>
158
+ * <strong>Permission note!</strong> Current user must match have
159
+ * {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_TRANSLATIONS} and
160
+ * {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}
161
+ * on @aTranslationPageNode.
162
+ * </p>
163
+ * @author Magnus Lövgren
164
+ * @since Sitevision 4.2.1
165
+ */
166
+ declare namespace TranslationUtil {
167
+ export {
168
+ getSiteTranslationLocales,
169
+ getTranslations,
170
+ getTranslatedFrom,
171
+ setTranslatedFrom,
172
+ };
173
+ }
174
+
175
+ export default TranslationUtil;
@@ -1,37 +1,206 @@
1
- import Node from '../../builtins/Node';
1
+ import Node from "../../hidden/javax/jcr/Node";
2
2
 
3
3
  /**
4
- * Deletes a node from the site trashcan.
5
- * @param {Node} aNode - the node that should be removed from the site trashcan. This node must be located in the site trashcan. May not be null.
6
- */
7
- export function deleteNodeFromTrashcan(aNode: Node): void;
4
+ * <p>
5
+ * Puts a node in the site trashcan.
6
+ * </p>
7
+ * <p>
8
+ * A node that has been deleted (i.e. put in the site trashcan) can later be restored using the method
9
+ * {@link #restoreNode(javax.jcr.Node)} or be permanently removed with the method
10
+ * {@link #deleteNodeFromTrashcan(javax.jcr.Node)}.
11
+ * </p>
12
+ * <p>
13
+ * Valid node types are:
14
+ * </p>
15
+ * <ul>
16
+ * <li><code>sv:archive</code></li>
17
+ * <li><code>sv:article</code></li>
18
+ * <li><code>sv:file</code></li>
19
+ * <li><code>sv:folder</code></li>
20
+ * <li><code>sv:image</code></li>
21
+ * <li><code>sv:link</code></li>
22
+ * <li><code>sv:page</code></li>
23
+ * <li><code>sv:template</code></li>
24
+ * </ul>
25
+ * <p>
26
+ * If any other node is specified a <code>ConstraintViolationException</code> is thrown.
27
+ * </p>
28
+ *
29
+ * <p>
30
+ * The current user must be authorized to delete objects, to alter the node and its current parent or
31
+ * a <code>ConstraintViolationException</code> is thrown
32
+ * (see {@link senselogic.sitevision.api.security.PermissionUtil#hasEffectiveDeletePermission(Node, Node)}).
33
+ * </p>
34
+ *
35
+ * <p>
36
+ * If no node is specified a <code>NullPointerException</code> is thrown.
37
+ * </p>
38
+ * @param aNode the node that will be moved to the site trashcan. May not be <code>null</code>
39
+ * @throws ConstraintViolationException if an invalid node is specified or if the current user is not authorized to perform the delete operation
40
+ * @throws RepositoryException if something else goes wrong
41
+ * @see senselogic.sitevision.api.security.PermissionUtil#hasEffectiveDeletePermission(Node, Node)
42
+ */
43
+ export function moveNodeToTrashcan(aNode: Node): void;
8
44
 
9
45
  /**
10
- * Checks if a node is in the site trashcan. If no node is specified a NullPointerException is thrown.
11
- * @returns {boolean} true if the Node is in site trashcan, false otherwise
12
- * @param {Node} aNode - the node to be checked if it is located in the site trashcan. May not be null
13
- */
14
- export function isInTrashcan(aNode: Node): boolean;
46
+ * <p>
47
+ * Restores a node from the site trashcan.
48
+ * </p>
49
+ * <p>
50
+ * If the node is not in the site trashcan or if an invalid node type is specified
51
+ * (i.e. a node that never could be in the site trashcan like the sv:site node)
52
+ * a <code>IllegalArgumentException</code> is thrown.
53
+ * </p>
54
+ *
55
+ * <p>
56
+ * The current user must be authorized to alter the node and the parent node after the
57
+ * restore operation or a <code>ConstraintViolationException</code> is thrown.
58
+ * </p>
59
+ *
60
+ * <p>
61
+ * If no node is specified a <code>NullPointerException</code> is thrown.
62
+ * </p>
63
+ * @param aNode the node that should be restored. This node must be located in the site trashcan. May not be null
64
+ * @throws ConstraintViolationException is thrown if the current user is not authorized to perform the restore operation
65
+ * @throws RepositoryException is thrown if something else goes wrong
66
+ */
67
+ export function restoreNode(aNode: Node): void;
15
68
 
16
69
  /**
17
- * Puts a node in the site trashcan.
18
- * @param {Node} aNode - the node that will be moved to the site trashcan. May not be null
19
- */
20
- export function moveNodeToTrashcan(aNode: Node): void;
70
+ * <p>
71
+ * Deletes a node from the site trashcan.
72
+ * </p>
73
+ * <p>
74
+ * If the node is not in the site trashcan or if an invalid node type is specified
75
+ * (i.e. a node that never could be in the site trashcan like the sv:site node)
76
+ * a <code>IllegalArgumentException</code> is thrown.
77
+ * </p>
78
+ *
79
+ * <p>
80
+ * The current user must be authorized to delete objects or a <code>ConstraintViolationException</code> is thrown.
81
+ * </p>
82
+ *
83
+ * <p>
84
+ * If no node is specified a <code>NullPointerException</code> is thrown.
85
+ * </p>
86
+ * @param aNode the node that should be removed from the site trashcan. This node must be located in the site trashcan. May not be <code>null</code>
87
+ * @throws ConstraintViolationException if the current user is not authorized to perform the delete operation
88
+ * @throws RepositoryException if something else goes wrong
89
+ */
90
+ export function deleteNodeFromTrashcan(aNode: Node): void;
21
91
 
22
92
  /**
23
- * Restores a node from the site trashcan.
24
- * @param {Node} aNode - the node that should be restored. This node must be located in the site trashcan. May not be null
25
- */
26
- export function restoreNode(aNode: Node): void;
93
+ * <p>
94
+ * Checks if a node is in the site trashcan
95
+ * </p>
96
+ *
97
+ * <p>
98
+ * If no node is specified a <code>NullPointerException</code> is thrown.
99
+ * </p>
100
+ *
101
+ * <p>
102
+ * Note that some nodes can't be put in the trashcan (e.g. sv:user, sv:color, sv:portlet, sv:layout etc).
103
+ * For such nodes <code>false</code> will be returned.
104
+ * </p>
105
+ * @param aNode the node to be checked if it is located in the site trashcan. May not be <code>null</code>
106
+ * @return <code>true</code> if the <code>Node</code> is in site trashcan, <code>false</code> otherwise
107
+ * @since Sitevision 6.2
108
+ */
109
+ export function isInTrashcan(aNode: Node): boolean;
27
110
 
28
- declare namespace trashcanUtil {
111
+ /**
112
+ * Trashcan utility interface for delete and restore of nodes.
113
+ *
114
+ * <p>
115
+ * An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getTrashcanUtil()}.
116
+ * See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
117
+ * </p><p>
118
+ * Puts a node in the site trashcan.
119
+ * </p>
120
+ * <p>
121
+ * A node that has been deleted (i.e. put in the site trashcan) can later be restored using the method
122
+ * {@link #restoreNode(javax.jcr.Node)} or be permanently removed with the method
123
+ * {@link #deleteNodeFromTrashcan(javax.jcr.Node)}.
124
+ * </p>
125
+ * <p>
126
+ * Valid node types are:
127
+ * </p>
128
+ * <ul>
129
+ * <li><code>sv:archive</code></li>
130
+ * <li><code>sv:article</code></li>
131
+ * <li><code>sv:file</code></li>
132
+ * <li><code>sv:folder</code></li>
133
+ * <li><code>sv:image</code></li>
134
+ * <li><code>sv:link</code></li>
135
+ * <li><code>sv:page</code></li>
136
+ * <li><code>sv:template</code></li>
137
+ * </ul>
138
+ * <p>
139
+ * If any other node is specified a <code>ConstraintViolationException</code> is thrown.
140
+ * </p>
141
+ *
142
+ * <p>
143
+ * The current user must be authorized to delete objects, to alter the node and its current parent or
144
+ * a <code>ConstraintViolationException</code> is thrown
145
+ * (see {@link senselogic.sitevision.api.security.PermissionUtil#hasEffectiveDeletePermission(Node, Node)}).
146
+ * </p>
147
+ *
148
+ * <p>
149
+ * If no node is specified a <code>NullPointerException</code> is thrown.
150
+ * </p><p>
151
+ * Restores a node from the site trashcan.
152
+ * </p>
153
+ * <p>
154
+ * If the node is not in the site trashcan or if an invalid node type is specified
155
+ * (i.e. a node that never could be in the site trashcan like the sv:site node)
156
+ * a <code>IllegalArgumentException</code> is thrown.
157
+ * </p>
158
+ *
159
+ * <p>
160
+ * The current user must be authorized to alter the node and the parent node after the
161
+ * restore operation or a <code>ConstraintViolationException</code> is thrown.
162
+ * </p>
163
+ *
164
+ * <p>
165
+ * If no node is specified a <code>NullPointerException</code> is thrown.
166
+ * </p><p>
167
+ * Deletes a node from the site trashcan.
168
+ * </p>
169
+ * <p>
170
+ * If the node is not in the site trashcan or if an invalid node type is specified
171
+ * (i.e. a node that never could be in the site trashcan like the sv:site node)
172
+ * a <code>IllegalArgumentException</code> is thrown.
173
+ * </p>
174
+ *
175
+ * <p>
176
+ * The current user must be authorized to delete objects or a <code>ConstraintViolationException</code> is thrown.
177
+ * </p>
178
+ *
179
+ * <p>
180
+ * If no node is specified a <code>NullPointerException</code> is thrown.
181
+ * </p><p>
182
+ * Checks if a node is in the site trashcan
183
+ * </p>
184
+ *
185
+ * <p>
186
+ * If no node is specified a <code>NullPointerException</code> is thrown.
187
+ * </p>
188
+ *
189
+ * <p>
190
+ * Note that some nodes can't be put in the trashcan (e.g. sv:user, sv:color, sv:portlet, sv:layout etc).
191
+ * For such nodes <code>false</code> will be returned.
192
+ * </p>
193
+ * @author Mikael Wikblom
194
+ * @see senselogic.sitevision.api.resource.ResourceLocatorUtil#getTrashcan()
195
+ * @since Sitevision 2.6.2
196
+ */
197
+ declare namespace TrashcanUtil {
29
198
  export {
30
- deleteNodeFromTrashcan,
31
- isInTrashcan,
32
199
  moveNodeToTrashcan,
33
200
  restoreNode,
34
- }
35
- };
201
+ deleteNodeFromTrashcan,
202
+ isInTrashcan,
203
+ };
204
+ }
36
205
 
37
- export default trashcanUtil;
206
+ export default TrashcanUtil;