@sitevision/api 2.0.0-alpha.1 → 2.0.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 (332) hide show
  1. package/index.d.ts +8 -0
  2. package/package.json +1 -1
  3. package/server/AliasUtil/index.d.ts +13 -11
  4. package/server/ArchiveUtil/index.d.ts +45 -43
  5. package/server/ArraysInstance/index.d.ts +1667 -1808
  6. package/server/ArticleUtil/index.d.ts +294 -226
  7. package/server/AuthenticationUtil/index.d.ts +73 -85
  8. package/server/BookmarkUtil/index.d.ts +76 -81
  9. package/server/BuddyIconRenderer/index.d.ts +124 -132
  10. package/server/BuddyIconRenderer.BuddyIconSize/index.d.ts +41 -0
  11. package/server/BuddyIconRenderer.BuddyIconSize/index.js +25 -0
  12. package/server/ClientUtil/index.d.ts +11 -9
  13. package/server/CollaborationFactory/index.d.ts +37 -40
  14. package/server/CollaborationGroupFolderUtil/index.d.ts +30 -28
  15. package/server/CollaborationGroupState/index.d.ts +27 -0
  16. package/server/CollaborationGroupState/index.js +11 -0
  17. package/server/CollaborationGroupTemplateUtil/index.d.ts +48 -50
  18. package/server/CollaborationGroupType/index.d.ts +28 -0
  19. package/server/CollaborationGroupType/index.js +12 -0
  20. package/server/CollaborationGroupUtil/index.d.ts +86 -82
  21. package/server/CollectionsInstance/index.d.ts +642 -705
  22. package/server/ColorUtil/index.d.ts +36 -37
  23. package/server/CompoundAndFilterBuilder/index.d.ts +31 -29
  24. package/server/CompoundComparatorBuilder/index.d.ts +35 -33
  25. package/server/CompoundOrFilterBuilder/index.d.ts +31 -29
  26. package/server/ContentNodeUtil/index.d.ts +36 -34
  27. package/server/CurrencyFactory/index.d.ts +72 -70
  28. package/server/DateUtil/index.d.ts +132 -142
  29. package/server/DecorationUtil/index.d.ts +13 -11
  30. package/server/DeviceUtil/index.d.ts +21 -19
  31. package/server/DimensionMode/index.d.ts +17 -0
  32. package/server/DimensionMode/index.js +12 -0
  33. package/server/DirectoryUtil/index.d.ts +90 -88
  34. package/server/DocType/index.d.ts +30 -0
  35. package/server/DocType/index.js +14 -0
  36. package/server/DocTypeUtil/index.d.ts +129 -135
  37. package/server/EndecUtil/index.d.ts +330 -347
  38. package/server/ExtendedDismaxParserBuilder/index.d.ts +156 -170
  39. package/server/FileIconRenderer/index.d.ts +153 -172
  40. package/server/FileUtil/index.d.ts +274 -300
  41. package/server/FilterBuilder/index.d.ts +42 -40
  42. package/server/FolderUtil/index.d.ts +93 -94
  43. package/server/FontUtil/index.d.ts +36 -37
  44. package/server/FormatterBuilderFactory/index.d.ts +76 -84
  45. package/server/HighlightBuilder/index.d.ts +79 -86
  46. package/server/IconUtil/index.d.ts +27 -25
  47. package/server/ImageLinkRenderer/index.d.ts +34 -32
  48. package/server/ImageRenderer/index.d.ts +343 -379
  49. package/server/ImageUtil/index.d.ts +247 -265
  50. package/server/IndexUtil/index.d.ts +40 -37
  51. package/server/IndexUtil.IndexType/index.d.ts +29 -0
  52. package/server/IndexUtil.IndexType/index.js +13 -0
  53. package/server/IndexingUtil/index.d.ts +69 -47
  54. package/server/InstanceCreatorUtil/index.d.ts +421 -457
  55. package/server/InstanceTypeUtil/index.d.ts +168 -189
  56. package/server/JwtUtil/index.d.ts +131 -129
  57. package/server/LandingPageUtil/index.d.ts +84 -87
  58. package/server/LandingPageUtil/index.js +1 -0
  59. package/server/LinkPageUtil/index.d.ts +297 -251
  60. package/server/LinkRenderer/index.d.ts +651 -715
  61. package/server/LinkTargetBuilder/index.d.ts +69 -77
  62. package/server/LinkValueBuilder/index.d.ts +70 -77
  63. package/server/ListWrapper/index.d.ts +82 -91
  64. package/server/LocaleUtil/index.d.ts +382 -394
  65. package/server/LogUtil/index.d.ts +119 -128
  66. package/server/MailBuilder/index.d.ts +109 -124
  67. package/server/MailUtil/index.d.ts +58 -63
  68. package/server/MathInstance/index.d.ts +625 -657
  69. package/server/MessageDigesterFactory/index.d.ts +30 -28
  70. package/server/MetadataDefinitionUtil/index.d.ts +79 -83
  71. package/server/MetadataUtil/index.d.ts +322 -346
  72. package/server/MimeTypeUtil/index.d.ts +209 -215
  73. package/server/MonitorBuilder/index.d.ts +20 -20
  74. package/server/NodeComparatorUtil/index.d.ts +215 -225
  75. package/server/NodeFactoryUtil/index.d.ts +18 -16
  76. package/server/NodeFilterUtil/index.d.ts +652 -739
  77. package/server/NodeIteratorUtil/index.d.ts +214 -229
  78. package/server/NodeResolverUtil/index.d.ts +400 -406
  79. package/server/NodeTreeUtil/index.d.ts +214 -229
  80. package/server/NodeTypeUtil/index.d.ts +1432 -548
  81. package/server/OfflineVersionPropertyUtil/index.d.ts +8 -6
  82. package/server/OnlineVersionPropertyUtil/index.d.ts +8 -6
  83. package/server/OutputUtil/index.d.ts +385 -380
  84. package/server/PageUtil/index.d.ts +266 -188
  85. package/server/PermissionUtil/index.d.ts +393 -430
  86. package/server/PermissionUtil.Permission/index.d.ts +54 -0
  87. package/server/PermissionUtil.Permission/index.js +38 -0
  88. package/server/PortletContextUtil/index.d.ts +112 -107
  89. package/server/PortletUtil/index.d.ts +32 -22
  90. package/server/PrincipalUtil/index.d.ts +35 -33
  91. package/server/Properties/index.d.ts +69 -76
  92. package/server/PropertyUtil/index.d.ts +1422 -1464
  93. package/server/PublishingUtil/index.d.ts +248 -249
  94. package/server/QueryStringUtil/index.d.ts +404 -415
  95. package/server/RedirectUtil/index.d.ts +64 -68
  96. package/server/RelatedValueBuilder/index.d.ts +45 -43
  97. package/server/Requester/index.d.ts +125 -125
  98. package/server/ResourceLocatorUtil/index.d.ts +436 -476
  99. package/server/RestApi/index.d.ts +158 -138
  100. package/server/RestAppInvokerFactory/index.d.ts +28 -26
  101. package/server/RoleAssignmentBuilder/index.d.ts +39 -37
  102. package/server/RoleMatcherBuilder/index.d.ts +39 -37
  103. package/server/RoleUtil/index.d.ts +35 -37
  104. package/server/ScriptUtil/index.d.ts +458 -495
  105. package/server/SearchFactory/index.d.ts +90 -105
  106. package/server/SearchUtil/index.d.ts +75 -73
  107. package/server/SearcherBuilder/index.d.ts +117 -124
  108. package/server/Session/index.d.ts +261 -1103
  109. package/server/Session/index.js +1 -20
  110. package/server/SimpleUserUtil/index.d.ts +28 -29
  111. package/server/SiteCookieUtil/index.d.ts +152 -175
  112. package/server/SortBuilder/index.d.ts +27 -25
  113. package/server/SourceSetMode/index.d.ts +12 -0
  114. package/server/SourceSetMode/index.js +12 -0
  115. package/server/SpellCheckBuilder/index.d.ts +30 -30
  116. package/server/StandardParserBuilder/index.d.ts +36 -34
  117. package/server/StructureUtil/index.d.ts +85 -83
  118. package/server/SubscriberUtil/index.d.ts +60 -67
  119. package/server/SubscriptionUtil/index.d.ts +123 -130
  120. package/server/SystemUserUtil/index.d.ts +148 -146
  121. package/server/TagUtil/index.d.ts +115 -120
  122. package/server/TemplateUtil/index.d.ts +115 -120
  123. package/server/TemporaryFileNodeBuilder/index.d.ts +32 -30
  124. package/server/TemporaryNodeBuilder/index.d.ts +139 -177
  125. package/server/TextModuleRendererBuilder/index.d.ts +22 -20
  126. package/server/TimestampUtil/index.d.ts +103 -117
  127. package/server/TranslationUtil/index.d.ts +98 -104
  128. package/server/TrashcanUtil/index.d.ts +114 -117
  129. package/server/UserDataUtil/index.d.ts +110 -111
  130. package/server/UserFactory/index.d.ts +47 -54
  131. package/server/UserFieldRenderer/index.d.ts +120 -128
  132. package/server/UserIdentityUtil/index.d.ts +38 -36
  133. package/server/UserUtil/index.d.ts +32 -30
  134. package/server/Utils/index.d.ts +634 -723
  135. package/server/VelocityRenderer/index.d.ts +96 -94
  136. package/server/VersionUtil/index.d.ts +25 -9
  137. package/server/WebContentUtil/index.d.ts +277 -284
  138. package/server/WebResourceFactory/index.d.ts +41 -46
  139. package/server/XSLTUtil/index.d.ts +34 -32
  140. package/server/XmlParserUtil/index.d.ts +50 -48
  141. package/types/javax/jcr/Binary/index.d.ts +3 -21
  142. package/types/javax/jcr/Binary/index.js +0 -1
  143. package/types/javax/jcr/Credentials/index.d.ts +3 -1
  144. package/types/javax/jcr/ImportUUIDBehavior/index.d.ts +27 -1
  145. package/types/javax/jcr/Item/index.d.ts +6 -119
  146. package/types/javax/jcr/Item/index.js +0 -6
  147. package/types/javax/jcr/ItemVisitor/index.d.ts +5 -3
  148. package/types/javax/jcr/NamespaceRegistry/index.d.ts +69 -43
  149. package/types/javax/jcr/NamespaceRegistry/index.js +0 -2
  150. package/types/javax/jcr/Node/index.d.ts +37 -1506
  151. package/types/javax/jcr/Node/index.js +1 -34
  152. package/types/javax/jcr/NodeIterator/index.d.ts +5 -3
  153. package/types/javax/jcr/Property/index.d.ts +494 -494
  154. package/types/javax/jcr/Property/index.js +0 -5
  155. package/types/javax/jcr/PropertyIterator/index.d.ts +5 -3
  156. package/types/javax/jcr/RangeIterator/index.d.ts +2 -42
  157. package/types/javax/jcr/RangeIterator/index.js +1 -5
  158. package/types/javax/jcr/Repository/index.d.ts +465 -263
  159. package/types/javax/jcr/Repository/index.js +0 -4
  160. package/types/javax/jcr/RepositoryFactory/index.d.ts +4 -2
  161. package/types/javax/jcr/Value/index.d.ts +4 -31
  162. package/types/javax/jcr/Value/index.js +0 -2
  163. package/types/javax/jcr/ValueFactory/index.d.ts +6 -74
  164. package/types/javax/jcr/ValueFactory/index.js +1 -2
  165. package/types/javax/jcr/Workspace/index.d.ts +103 -577
  166. package/types/javax/jcr/Workspace/index.js +1 -12
  167. package/types/javax/jcr/lock/Lock/index.d.ts +4 -2
  168. package/types/javax/jcr/lock/LockManager/index.d.ts +4 -2
  169. package/types/javax/jcr/nodetype/ItemDefinition/index.d.ts +4 -105
  170. package/types/javax/jcr/nodetype/ItemDefinition/index.js +0 -5
  171. package/types/javax/jcr/nodetype/NodeDefinition/index.d.ts +5 -3
  172. package/types/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +4 -2
  173. package/types/javax/jcr/nodetype/NodeType/index.d.ts +262 -269
  174. package/types/javax/jcr/nodetype/NodeType/index.js +1 -12
  175. package/types/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +5 -107
  176. package/types/javax/jcr/nodetype/NodeTypeDefinition/index.js +1 -7
  177. package/types/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +5 -3
  178. package/types/javax/jcr/nodetype/NodeTypeManager/index.d.ts +9 -130
  179. package/types/javax/jcr/nodetype/NodeTypeManager/index.js +1 -8
  180. package/types/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +4 -2
  181. package/types/javax/jcr/nodetype/PropertyDefinition/index.d.ts +5 -272
  182. package/types/javax/jcr/nodetype/PropertyDefinition/index.js +1 -7
  183. package/types/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +5 -3
  184. package/types/javax/jcr/observation/Event/index.d.ts +85 -42
  185. package/types/javax/jcr/observation/EventIterator/index.d.ts +5 -3
  186. package/types/javax/jcr/observation/EventJournal/index.d.ts +4 -2
  187. package/types/javax/jcr/observation/EventListener/index.d.ts +4 -2
  188. package/types/javax/jcr/observation/EventListenerIterator/index.d.ts +5 -3
  189. package/types/javax/jcr/observation/ObservationManager/index.d.ts +6 -4
  190. package/types/javax/jcr/query/Query/index.d.ts +35 -12
  191. package/types/javax/jcr/query/QueryManager/index.d.ts +6 -4
  192. package/types/javax/jcr/query/QueryResult/index.d.ts +5 -3
  193. package/types/javax/jcr/query/Row/index.d.ts +5 -3
  194. package/types/javax/jcr/query/RowIterator/index.d.ts +5 -3
  195. package/types/javax/jcr/query/qom/And/index.d.ts +4 -2
  196. package/types/javax/jcr/query/qom/BindVariableValue/index.d.ts +4 -2
  197. package/types/javax/jcr/query/qom/ChildNode/index.d.ts +4 -2
  198. package/types/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +4 -2
  199. package/types/javax/jcr/query/qom/Column/index.d.ts +3 -1
  200. package/types/javax/jcr/query/qom/Comparison/index.d.ts +6 -4
  201. package/types/javax/jcr/query/qom/Constraint/index.d.ts +3 -1
  202. package/types/javax/jcr/query/qom/DescendantNode/index.d.ts +4 -2
  203. package/types/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +4 -2
  204. package/types/javax/jcr/query/qom/DynamicOperand/index.d.ts +4 -2
  205. package/types/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +4 -2
  206. package/types/javax/jcr/query/qom/FullTextSearch/index.d.ts +5 -3
  207. package/types/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +4 -2
  208. package/types/javax/jcr/query/qom/Join/index.d.ts +5 -3
  209. package/types/javax/jcr/query/qom/JoinCondition/index.d.ts +3 -1
  210. package/types/javax/jcr/query/qom/Length/index.d.ts +5 -3
  211. package/types/javax/jcr/query/qom/Literal/index.d.ts +5 -3
  212. package/types/javax/jcr/query/qom/LowerCase/index.d.ts +4 -2
  213. package/types/javax/jcr/query/qom/NodeLocalName/index.d.ts +4 -2
  214. package/types/javax/jcr/query/qom/NodeName/index.d.ts +4 -2
  215. package/types/javax/jcr/query/qom/Not/index.d.ts +4 -2
  216. package/types/javax/jcr/query/qom/Operand/index.d.ts +3 -1
  217. package/types/javax/jcr/query/qom/Or/index.d.ts +4 -2
  218. package/types/javax/jcr/query/qom/Ordering/index.d.ts +4 -2
  219. package/types/javax/jcr/query/qom/PropertyExistence/index.d.ts +4 -2
  220. package/types/javax/jcr/query/qom/PropertyValue/index.d.ts +4 -2
  221. package/types/javax/jcr/query/qom/QueryObjectModel/index.d.ts +8 -6
  222. package/types/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +76 -2
  223. package/types/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +37 -35
  224. package/types/javax/jcr/query/qom/SameNode/index.d.ts +4 -2
  225. package/types/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +4 -2
  226. package/types/javax/jcr/query/qom/Selector/index.d.ts +4 -2
  227. package/types/javax/jcr/query/qom/Source/index.d.ts +3 -1
  228. package/types/javax/jcr/query/qom/StaticOperand/index.d.ts +4 -2
  229. package/types/javax/jcr/query/qom/UpperCase/index.d.ts +4 -2
  230. package/types/javax/jcr/retention/Hold/index.d.ts +3 -1
  231. package/types/javax/jcr/retention/RetentionManager/index.d.ts +5 -3
  232. package/types/javax/jcr/retention/RetentionPolicy/index.d.ts +3 -1
  233. package/types/javax/jcr/security/AccessControlEntry/index.d.ts +4 -2
  234. package/types/javax/jcr/security/AccessControlList/index.d.ts +6 -4
  235. package/types/javax/jcr/security/AccessControlManager/index.d.ts +6 -4
  236. package/types/javax/jcr/security/AccessControlPolicy/index.d.ts +3 -1
  237. package/types/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +5 -3
  238. package/types/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +4 -2
  239. package/types/javax/jcr/security/Privilege/index.d.ts +130 -44
  240. package/types/javax/jcr/version/Version/index.d.ts +5 -3
  241. package/types/javax/jcr/version/VersionHistory/index.d.ts +7 -5
  242. package/types/javax/jcr/version/VersionIterator/index.d.ts +5 -3
  243. package/types/javax/jcr/version/VersionManager/index.d.ts +7 -5
  244. package/types/senselogic/sitevision/api/base/Builder/index.d.ts +3 -1
  245. package/types/senselogic/sitevision/api/base/Filter/index.d.ts +3 -1
  246. package/types/senselogic/sitevision/api/base/FilterSplit/index.d.ts +4 -2
  247. package/types/senselogic/sitevision/api/base/Loadable/index.d.ts +3 -1
  248. package/types/senselogic/sitevision/api/base/Requireable/ScriptEngine/index.d.ts +9 -0
  249. package/types/senselogic/sitevision/api/base/Requireable/ScriptEngine/index.js +11 -0
  250. package/types/senselogic/sitevision/api/base/Resolver/index.d.ts +3 -1
  251. package/types/senselogic/sitevision/api/base/Wrapper/index.d.ts +3 -1
  252. package/types/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +13 -7
  253. package/types/senselogic/sitevision/api/format/NumericFormatter/index.d.ts +3 -1
  254. package/types/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +5 -3
  255. package/types/senselogic/sitevision/api/i18n/Currency/index.d.ts +3 -1
  256. package/types/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +5 -3
  257. package/types/senselogic/sitevision/api/link/CustomLinkRenderData/index.d.ts +3 -1
  258. package/types/senselogic/sitevision/api/mail/Mail/index.d.ts +3 -1
  259. package/types/senselogic/sitevision/api/message/MessageTextLinker/index.d.ts +3 -1
  260. package/types/senselogic/sitevision/api/metadata/value/LinkValue/index.d.ts +3 -1
  261. package/types/senselogic/sitevision/api/metadata/value/RelatedValue/index.d.ts +3 -1
  262. package/types/senselogic/sitevision/api/property/VersionedPropertyUtil/index.d.ts +4 -2
  263. package/types/senselogic/sitevision/api/render/BuddyIconRenderer.BuddyIconInfo/index.d.ts +51 -0
  264. package/types/senselogic/sitevision/api/render/BuddyIconRenderer.BuddyIconInfo/index.js +12 -0
  265. package/types/senselogic/sitevision/api/render/ImageScaler/index.d.ts +4 -2
  266. package/types/senselogic/sitevision/api/render/TextModuleRenderer/index.d.ts +4 -2
  267. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess/index.d.ts +3 -1
  268. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants/index.d.ts +85 -0
  269. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants/index.js +21 -0
  270. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ExceptionSuppressingProxyConstants/index.d.ts +31 -0
  271. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ExceptionSuppressingProxyConstants/index.js +12 -0
  272. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants/index.d.ts +31 -0
  273. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants/index.js +12 -0
  274. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.LinkPageUtilConstants/index.d.ts +67 -0
  275. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.LinkPageUtilConstants/index.js +18 -0
  276. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MathInstanceConstants/index.d.ts +25 -0
  277. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MathInstanceConstants/index.js +11 -0
  278. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MimeTypeUtilConstants/index.d.ts +19 -0
  279. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MimeTypeUtilConstants/index.js +10 -0
  280. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.d.ts +1243 -0
  281. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.js +189 -0
  282. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.OutputUtilConstants/index.d.ts +31 -0
  283. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.OutputUtilConstants/index.js +12 -0
  284. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants/index.d.ts +91 -0
  285. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants/index.js +22 -0
  286. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletContextUtilConstants/index.d.ts +27 -0
  287. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletContextUtilConstants/index.js +11 -0
  288. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants/index.d.ts +19 -0
  289. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants/index.js +10 -0
  290. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.QueryStringUtilConstants/index.d.ts +19 -0
  291. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.QueryStringUtilConstants/index.js +10 -0
  292. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchHitConstants/index.d.ts +25 -0
  293. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchHitConstants/index.js +11 -0
  294. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchResultConstants/index.d.ts +37 -0
  295. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchResultConstants/index.js +13 -0
  296. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.VersionUtilConstants/index.d.ts +25 -0
  297. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.VersionUtilConstants/index.js +11 -0
  298. package/types/senselogic/sitevision/api/render/velocity/VelocityContext/index.d.ts +3 -1
  299. package/types/senselogic/sitevision/api/render/velocity/VelocityEvaluator/index.d.ts +3 -1
  300. package/types/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +4 -2
  301. package/types/senselogic/sitevision/api/script/app/RestAppInvoker/index.d.ts +3 -1
  302. package/types/senselogic/sitevision/api/script/factory/TypedArgument/index.d.ts +3 -1
  303. package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingCollection/index.d.ts +3 -1
  304. package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingIterator/index.d.ts +4 -2
  305. package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +24 -2
  306. package/types/senselogic/sitevision/api/search/SearchFieldUtil/index.d.ts +3 -1
  307. package/types/senselogic/sitevision/api/search/SearchHighlighter/index.d.ts +4 -2
  308. package/types/senselogic/sitevision/api/search/SearchHit/index.d.ts +19 -3
  309. package/types/senselogic/sitevision/api/search/SearchResult/index.d.ts +31 -7
  310. package/types/senselogic/sitevision/api/search/facet/SearchFacetField/index.d.ts +3 -1
  311. package/types/senselogic/sitevision/api/search/facet/SearchFacetValue/index.d.ts +3 -1
  312. package/types/senselogic/sitevision/api/search/searcher/Searcher/index.d.ts +4 -2
  313. package/types/senselogic/sitevision/api/search/searcher/component/Filter/index.d.ts +3 -1
  314. package/types/senselogic/sitevision/api/search/searcher/component/Highlight/index.d.ts +3 -1
  315. package/types/senselogic/sitevision/api/search/searcher/component/Monitor/index.d.ts +3 -1
  316. package/types/senselogic/sitevision/api/search/searcher/component/Parser/index.d.ts +3 -1
  317. package/types/senselogic/sitevision/api/search/searcher/component/Sort/index.d.ts +3 -1
  318. package/types/senselogic/sitevision/api/search/searcher/component/SpellCheck/index.d.ts +3 -1
  319. package/types/senselogic/sitevision/api/search/sort/CustomSort/index.d.ts +3 -1
  320. package/types/senselogic/sitevision/api/search/suggestion/SearchSuggestion/index.d.ts +3 -1
  321. package/types/senselogic/sitevision/api/security/DirectoryAttributes/index.d.ts +3 -1
  322. package/types/senselogic/sitevision/api/security/MessageDigester/index.d.ts +3 -1
  323. package/types/senselogic/sitevision/api/security/RoleAssignment/index.d.ts +4 -2
  324. package/types/senselogic/sitevision/api/security/RoleMatcher/index.d.ts +4 -2
  325. package/types/senselogic/sitevision/api/security/SecretStore/index.d.ts +3 -1
  326. package/types/senselogic/sitevision/api/security/UserUtil/index.d.ts +4 -2
  327. package/types/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +35 -3
  328. package/types/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilterChain/index.d.ts +3 -1
  329. package/types/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +5 -3
  330. package/types/senselogic/sitevision/api/webresource/LinkTarget/index.d.ts +3 -1
  331. package/types/senselogic/sitevision/api/xml/XmlElement/index.d.ts +3 -1
  332. package/types/senselogic/sitevision/api/xml/XmlElementHandler/index.d.ts +4 -2
@@ -1,12 +1,12 @@
1
- import Session from "../../../../server/Session";
1
+ import { Session } from "../../../../server/Session";
2
2
 
3
- import type { Version } from "../version/Version";
4
- import type { LockManager } from "../lock/LockManager";
5
- import type { QueryManager } from "../query/QueryManager";
6
- import type { NamespaceRegistry } from "../NamespaceRegistry";
7
- import type { NodeTypeManager } from "../nodetype/NodeTypeManager";
8
- import type { ObservationManager } from "../observation/ObservationManager";
9
- import type { VersionManager } from "../version/VersionManager";
3
+ import type Version from "../version/Version";
4
+ import type LockManager from "../lock/LockManager";
5
+ import type QueryManager from "../query/QueryManager";
6
+ import type NamespaceRegistry from "../NamespaceRegistry";
7
+ import type NodeTypeManager from "../nodetype/NodeTypeManager";
8
+ import type ObservationManager from "../observation/ObservationManager";
9
+ import type VersionManager from "../version/VersionManager";
10
10
 
11
11
  /**
12
12
  * A <code>Workspace</code> object represents a view onto a persitent workspace
@@ -15,31 +15,10 @@ import type { VersionManager } from "../version/VersionManager";
15
15
  * object. Each <code>Workspace</code> object is associated one-to-one with a
16
16
  * <code>Session</code> object. The <code>Workspace</code> object can be
17
17
  * acquired by calling <code>{@link Session#getWorkspace()}</code> on the
18
- * associated <code>Session</code> object.A constant for the name of the workspace root node.A constant for the absolute path of the workspace root node.A constant for the name of the system node.A constant for the absolute path of the system node.A constant for the name of the node type definition storage node.A constant for the absolute path of the node type definition storage
19
- * node.A constant for the name of the version storage node.A constant for the absolute path of the version storage node.A constant for the name of the activities node.A constant for the absolute path of the activities node.A constant for the name of the configurations node.A constant for the absolute path of the configurations node.A constant for the name of the unfiled storage node.A constant for the absolute path of the unfiled storage node.A constant for the name of the <code>jcr:xmltext</code> node produced on
20
- * {@link #importXML}.A constant for the name of the <code>jcr:xmlcharacters</code> property
21
- * produced on {@link #importXML}.A constant for the relative path from the node representing the imported
22
- * XML element of the <code>jcr:xmlcharacters</code> property produced on
23
- * {@link #importXML}.
24
- * @since JCR 2.0
25
- * @since JCR 2.0
26
- * @since JCR 2.0
27
- * @since JCR 2.0
28
- * @since JCR 2.0
29
- * @since JCR 2.0
30
- * @since JCR 2.0
31
- * @since JCR 2.0
32
- * @since JCR 2.0
33
- * @since JCR 2.0
34
- * @since JCR 2.0
35
- * @since JCR 2.0
36
- * @since JCR 2.0
37
- * @since JCR 2.0
38
- * @since JCR 2.0
39
- * @since JCR 2.0
40
- * @since JCR 2.0
41
- */
42
- export type Workspace = {
18
+ * associated <code>Session</code> object.
19
+
20
+ */
21
+ type Workspace = {
43
22
  /**
44
23
  * Returns the <code>Session</code> object through which this
45
24
  * <code>Workspace</code> object was acquired.
@@ -55,351 +34,6 @@ export type Workspace = {
55
34
  */
56
35
  getName(): string;
57
36
 
58
- /**
59
- * This method copies the subgraph rooted at, and including, the node at
60
- * <code>srcAbsPath</code> to the new location at <code>destAbsPath</code>.
61
- * <p>
62
- * This is a workspace-write operation and therefore dispatches changes
63
- * immediately and does not require a <code>save</code>.
64
- * <p>
65
- * When a node <code>N</code> is copied to a path location where no node
66
- * currently exists, a new node <code>N'</code> is created at that location.
67
- * The subgraph rooted at and including <code>N'</code> (call it <code>S'</code>)
68
- * is created and is identical to the subgraph rooted at and including <code>N</code>
69
- * (call it <code>S</code>) with the following exceptions:
70
- * <ul>
71
- * <li>Every node in <code>S'</code> is given a new and distinct identifier.</li>
72
- * <li>The repository <i>may</i> automatically drop any mixin node type <code>T</code>
73
- * present on any node <code>M</code> in <code>S</code>. Dropping a mixin node type
74
- * in this context means that while <code>M</code> remains unchanged, its copy
75
- * <code>M'</code> will lack the mixin <code>T</code> and any child nodes and properties
76
- * defined by <code>T</code> that are present on <code>M</code>. For example, a node
77
- * <code>M</code> that is <code>mix:versionable</code> may be copied such that the
78
- * resulting node <code>M'</code> will be a copy of <code>N</code> except that
79
- * <code>M'</code> will not be <code>mix:versionable</code> and will not have any of the
80
- * properties defined by <code>mix:versionable</code>. In order for a mixin node type to
81
- * be dropped it must be listed by name in the <code>jcr:mixinTypes</code> property of
82
- * <code>M</code>. The resulting <code>jcr:mixinTypes</code> property of <code>M'</code>
83
- * will reflect any change.</li>
84
- * <li>If a node <code>M</code> in <code>S</code> is referenceable and its
85
- * <code>mix:referenceable</code> mixin is not dropped on copy, then the resulting
86
- * <code>jcr:uuid</code> property of <code>M'</code> will reflect the new identifier
87
- * assigned to <code>M'</code>.</li>
88
- * <li>Each <code>REFERENCE</code> or <code>WEAKEREFERENCE</code> property <code>R</code>
89
- * in <code>S</code> is copied to its new location <code>R'</code> in <code>S'</code>.
90
- * If <code>R</code> references a node <code>M</code> within <code>S</code> then the value
91
- * of <code>R'</code> will be the identifier of <code>M'</code>, the new copy of
92
- * <code>M</code>, thus preserving the reference within the subgraph.</li>
93
- * </ul>
94
- * When a node <code>N</code> is copied to a location where a node <code>N'</code> already
95
- * exists, the repository may either immediately throw an <code>ItemExistsException</code>
96
- * or attempt to update the node <code>N'</code> by selectively replacing part of its subgraph
97
- * with a copy of the relevant part of the subgraph of <code>N</code>. If the node types of
98
- * <code>N</code> and <code>N'</code> are compatible, the implementation supports update-on-copy
99
- * for these node types and no other errors occur, then the copy will succeed. Otherwise an
100
- * <code>ItemExistsException</code> is thrown.
101
- * <p>
102
- * Which node types can be updated on copy and the details of any such updates are
103
- * implementation-dependent. For example, some implementations may support update-on-copy
104
- * for <code>mix:versionable</code> nodes. In such a case the versioning-related properties
105
- * of the target node would remain unchanged (<code>jcr:uuid</code>,
106
- * <code>jcr:versionHistory</code>, etc.) while the substantive content part of the subgraph
107
- * would be replaced with that of the source node.
108
- * <p>
109
- * The <code>destAbsPath</code> provided must not have an index on its final
110
- * element. If it does then a <code>RepositoryException</code> is thrown.
111
- * Strictly speaking, the <code>destAbsPath</code> parameter is actually an
112
- * <i>absolute path</i> to the parent node of the new location, appended
113
- * with the new <i>name</i> desired for the copied node. It does not specify
114
- * a position within the child node ordering. If ordering is supported by
115
- * the node type of the parent node of the new location, then the new copy
116
- * of the node is appended to the end of the child node list.
117
- * <p>
118
- * This method cannot be used to copy an individual property by itself. It
119
- * copies an entire node and its subgraph.
120
- *
121
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
122
- * @param srcAbsPath the path of the node to be copied.
123
- * @param destAbsPath the location to which the node at <code>srcAbsPath</code> is to be copied.
124
- * @throws ConstraintViolationException if the operation would violate a node-type or other implementation-specific constraint.
125
- * @throws VersionException if the parent node of <code>destAbsPath</code> is read-only due to a checked-in node.
126
- * @throws AccessDeniedException if the current session does not have sufficent access to complete the operation.
127
- * @throws PathNotFoundException if the node at <code>srcAbsPath</code> or the parent of <code>destAbsPath</code> does not exist.
128
- * @throws ItemExistsException if a node already exists at <code>destAbsPath</code> and either same-name siblings are not allowed or update on copy is not supported for the nodes involved.
129
- * @throws LockException if a lock prevents the copy.
130
- * @throws RepositoryException if the last element of <code>destAbsPath</code> has an index or if another error occurs.
131
- */
132
- copy(srcAbsPath: string, destAbsPath: string): void;
133
-
134
- /**
135
- * This method copies the subgraph at <code>srcAbsPath</code> in
136
- * <code>srcWorkspace</code> to <code>destAbsPath</code> in
137
- * <code>this</code> workspace.
138
- * <p>
139
- * When a node <code>N</code> is copied to a path location where no node
140
- * currently exists, a new node <code>N'</code> is created at that location.
141
- * The subgraph rooted at and including <code>N'</code> (call it <code>S'</code>)
142
- * is created and is identical to the subgraph rooted at and including <code>N</code>
143
- * (call it <code>S</code>) with the following exceptions:
144
- * <ul>
145
- * <li>Every referenceable node in <code>S'</code> is given a new and distinct identifier
146
- * while every non-referenceable node in <code>S'</code> <i>may</i> be given a new and
147
- * distinct identifier.</li>
148
- * <li>The repository <i>may</i> automatically drop any mixin node type <code>T</code>
149
- * present on any node <code>M</code> in <code>S</code>. Dropping a mixin node type
150
- * in this context means that while <code>M</code> remains unchanged, its copy
151
- * <code>M'</code> will lack the mixin <code>T</code> and any child nodes and properties
152
- * defined by <code>T</code> that are present on <code>M</code>. For example, a node
153
- * <code>M</code> that is <code>mix:versionable</code> may be copied such that the
154
- * resulting node <code>M'</code> will be a copy of <code>N</code> except that
155
- * <code>M'</code> will not be <code>mix:versionable</code> and will not have any of the
156
- * properties defined by <code>mix:versionable</code>. In order for a mixin node type to
157
- * be dropped it must be listed by name in the <code>jcr:mixinTypes</code> property of
158
- * <code>M</code>. The resulting <code>jcr:mixinTypes</code> property of <code>M'</code>
159
- * will reflect any change.</li>
160
- * <li>If a node <code>M</code> in <code>S</code> is referenceable and its
161
- * <code>mix:referenceable</code> mixin is not dropped on copy, then the resulting
162
- * <code>jcr:uuid</code> property of <code>M'</code> will reflect the new identifier
163
- * assigned to <code>M'</code>.</li>
164
- * <li>Each <code>REFERENCE</code> or <code>WEAKEREFERENCE</code> property <code>R</code>
165
- * in <code>S</code> is copied to its new location <code>R'</code> in <code>S'</code>.
166
- * If <code>R</code> references a node <code>M</code> within <code>S</code> then the value
167
- * of <code>R'</code> will be the identifier of <code>M'</code>, the new copy of
168
- * <code>M</code>, thus preserving the reference within the subgraph.</li>
169
- * </ul>
170
- * When a node <code>N</code> is copied to a location where a node <code>N'</code> already
171
- * exists, the repository may either immediately throw an <code>ItemExistsException</code>
172
- * or attempt to update the node <code>N'</code> by selectively replacing part of its subgraph
173
- * with a copy of the relevant part of the subgraph of <code>N</code>. If the node types of
174
- * <code>N</code> and <code>N'</code> are compatible, the implementation supports update-on-copy
175
- * for these node types and no other errors occur, then the copy will succeed. Otherwise an
176
- * <code>ItemExistsException</code> is thrown.
177
- * <p>
178
- * Which node types can be updated on copy and the details of any such updates are
179
- * implementation-dependent. For example, some implementations may support update-on-copy
180
- * for <code>mix:versionable</code> nodes. In such a case the versioning-related properties
181
- * of the target node would remain unchanged (<code>jcr:uuid</code>,
182
- * <code>jcr:versionHistory</code>, etc.) while the substantive content part of the subgraph
183
- * would be replaced with that of the source node.
184
- * <p>
185
- * The <code>destAbsPath</code> provided must not have an index on its final
186
- * element. If it does then a <code>RepositoryException</code> is thrown.
187
- * Strictly speaking, the <code>destAbsPath</code> parameter is actually an
188
- * <i>absolute path</i> to the parent node of the new location, appended
189
- * with the new <i>name</i> desired for the copied node. It does not specify
190
- * a position within the child node ordering. If ordering is supported by
191
- * the node type of the parent node of the new location, then the new copy
192
- * of the node is appended to the end of the child node list.
193
- * <p>
194
- * This method cannot be used to copy just an individual property by itself.
195
- * It copies an entire node and its subgraph (including, of course, any
196
- * properties contained therein).
197
- *
198
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
199
- * @param srcWorkspace the name of the workspace from which the copy is to be made.
200
- * @param srcAbsPath the path of the node to be copied.
201
- * @param destAbsPath the location to which the node at <code>srcAbsPath</code> is to be copied in <code>this</code> workspace.
202
- * @throws NoSuchWorkspaceException if <code>srcWorkspace</code> does not exist or if the current <code>Session</code> does not have permission to access it.
203
- * @throws ConstraintViolationException if the operation would violate a node-type or other implementation-specific constraint
204
- * @throws VersionException if the parent node of <code>destAbsPath</code> is read-only due to a checked-in node.
205
- * @throws AccessDeniedException if the current session does have access to <code>srcWorkspace</code> but otherwise does not have sufficient access to complete the operation.
206
- * @throws PathNotFoundException if the node at <code>srcAbsPath</code> in <code>srcWorkspace</code> or the parent of <code>destAbsPath</code> in this workspace does not exist.
207
- * @throws ItemExistsException if a node already exists at <code>destAbsPath</code> and either same-name siblings are not allowed or update on copy is not supported for the nodes involved.
208
- * @throws LockException if a lock prevents the copy.
209
- * @throws RepositoryException if the last element of <code>destAbsPath</code> has an index or if another error occurs.
210
- */
211
- copy(srcWorkspace: string, srcAbsPath: string, destAbsPath: string): void;
212
-
213
- /**
214
- * Clones the subgraph at the node <code>srcAbsPath</code> in
215
- * <code>srcWorkspace</code> to the new location at <code>destAbsPath</code>
216
- * in <code>this</code> workspace.
217
- * <p>
218
- * Unlike the signature of <code>copy</code> that copies between workspaces,
219
- * this method <i>does not</i> assign new identifiers to the newly cloned
220
- * nodes but preserves the identifiers of their respective source nodes.
221
- * This applies to both referenceable and non-referenceable nodes.
222
- * <p>
223
- * In some implementations there may be cases where preservation of a
224
- * non-referenceable identifier is not possible, due to how
225
- * non-referenceable identifiers are constructed in that implementation. In
226
- * such a case this method will throw a <code>RepositoryException</code>.
227
- * <p>
228
- * If <code>removeExisting</code> is true and an existing node in this
229
- * workspace (the destination workspace) has the same identifier as a node
230
- * being cloned from <code>srcWorkspace</code>, then the incoming node takes
231
- * precedence, and the existing node (and its subgraph) is removed. If
232
- * <code>removeExisting</code> is false then an identifier collision causes
233
- * this method to throw a <code>ItemExistsException</code> and no changes
234
- * are made.
235
- * <p>
236
- * If successful, the change is persisted immediately, there is no need to
237
- * call <code>save</code>.
238
- * <p>
239
- * The <code>destAbsPath</code> provided must not have an index on its final
240
- * element. If it does then a <code>RepositoryException</code> is thrown. If
241
- * ordering is supported by the node type of the parent node of the new
242
- * location, then the new clone of the node is appended to the end of the
243
- * child node list.
244
- * <p>
245
- * This method cannot be used to clone just an individual property; it
246
- * clones an node and its subgraph.
247
- *
248
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
249
- * @param srcWorkspace The name of the workspace from which the node is to be copied.
250
- * @param srcAbsPath the path of the node to be copied in <code>srcWorkspace</code>.
251
- * @param destAbsPath the location to which the node at <code>srcAbsPath</code> is to be copied in <code>this</code> workspace.
252
- * @param removeExisting if <code>false</code> then this method throws an <code>ItemExistsException</code> on identifier conflict with an incoming node. If <code>true</code> then a identifier conflict is resolved by removing the existing node from its location in this workspace and cloning (copying in) the one from <code>srcWorkspace</code>.
253
- * @throws NoSuchWorkspaceException if <code>destWorkspace</code> does not exist.
254
- * @throws ConstraintViolationException if the operation would violate a node-type or other implementation-specific constraint.
255
- * @throws VersionException if the parent node of <code>destAbsPath</code> is read-only due to a checked-in node. This exception will also be thrown if <code>removeExisting</code> is <code>true</code>, and an identifier conflict occurs that would require the moving and/or altering of a node that is checked-in.
256
- * @throws AccessDeniedException if the current session does not have sufficient access to complete the operation.
257
- * @throws PathNotFoundException if the node at <code>srcAbsPath</code> in <code>srcWorkspace</code> or the parent of <code>destAbsPath</code> in this workspace does not exist.
258
- * @throws ItemExistsException if a node already exists at <code>destAbsPath</code> and same-name siblings are not allowed or if <code>removeExisting</code> is <code>false</code> and an identifier conflict occurs.
259
- * @throws LockException if a lock prevents the clone.
260
- * @throws RepositoryException if the last element of <code>destAbsPath</code> has an index or if another error occurs.
261
- */
262
- clone(
263
- srcWorkspace: string,
264
- srcAbsPath: string,
265
- destAbsPath: string,
266
- removeExisting: boolean
267
- ): void;
268
-
269
- /**
270
- * Moves the node at <code>srcAbsPath</code> (and its entire subgraph) to
271
- * the new location at <code>destAbsPath</code>.
272
- * <p>
273
- * If successful, the change is persisted immediately, there is no need to
274
- * call <code>save</code>. Note that this is in contrast to {@link
275
- * Session#move} which operates within the transient space and hence
276
- * requires a <code>save</code>.
277
- * <p>
278
- * The identifiers of referenceable nodes must not be changed by a
279
- * <code>move</code>. The identifiers of non-referenceable nodes <i>may</i>
280
- * change.
281
- * <p>
282
- * The <code>destAbsPath</code> provided must not have an index on its final
283
- * element. If it does then a <code>RepositoryException</code> is thrown.
284
- * Strictly speaking, the <code>destAbsPath</code> parameter is actually an
285
- * <i>absolute path</i> to the parent node of the new location, appended
286
- * with the new <i>name</i> desired for the moved node. It does not specify
287
- * a position within the child node ordering. If ordering is supported by
288
- * the node type of the parent node of the new location, then the newly
289
- * moved node is appended to the end of the child node list.
290
- * <p>
291
- * This method cannot be used to move just an individual property by itself.
292
- * It moves an entire node and its subgraph (including, of course, any
293
- * properties contained therein).
294
- * <p>
295
- * The identifiers of referenceable nodes must not be changed by a
296
- * <code>move</code>. The identifiers of non-referenceable nodes may
297
- * change.
298
- * <p>
299
- * A <code>ConstraintViolationException</code> is thrown if the operation
300
- * would violate a node-type or other implementation-specific constraint.
301
- * <p>
302
- * A <code>VersionException</code> is thrown if the parent node of
303
- * <code>destAbsPath</code> or the parent node of <code>srcAbsPath</code> is
304
- * versionable and checked-in, or is non-versionable but its nearest
305
- * versionable ancestor is checked-in.
306
- * <p>
307
- * An <code>AccessDeniedException</code> is thrown if the current session
308
- * (i.e. the session that was used to acquire this <code>Workspace</code>
309
- * object) does not have sufficient access rights to complete the
310
- * operation.
311
- * <p>
312
- * A <code>PathNotFoundException</code> is thrown if the node at
313
- * <code>srcAbsPath</code> or the parent of <code>destAbsPath</code> does
314
- * not exist.
315
- * <p>
316
- * An <code>ItemExistException</code> is thrown if a node already exists at
317
- * <code>destAbsPath</code> and same-name siblings are not allowed.
318
- * <p>
319
- * Note that if a property already exists at <code>destAbsPath</code>, the
320
- * operation succeeds, since a node may have a child node and property with
321
- * the same name
322
- * <p>
323
- * A <code>LockException</code> if a lock prevents the move.
324
- *
325
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
326
- * @param srcAbsPath the path of the node to be moved.
327
- * @param destAbsPath the location to which the node at <code>srcAbsPath</code> is to be moved.
328
- * @throws ConstraintViolationException if the operation would violate a node-type or other implementation-specific constraint
329
- * @throws VersionException if the parent node of <code>destAbsPath</code> is read-only due to a checked-in node.
330
- * @throws AccessDeniedException if the current session does not have sufficient access to complete the operation.
331
- * @throws PathNotFoundException if the node at <code>srcAbsPath</code> or the parent of <code>destAbsPath</code> does not exist.
332
- * @throws ItemExistsException if a node already exists at <code>destAbsPath</code> and same-name siblings are not allowed.
333
- * @throws LockException if a lock prevents the move.
334
- * @throws RepositoryException if the last element of <code>destAbsPath</code> has an index or if another error occurs.
335
- */
336
- move(srcAbsPath: string, destAbsPath: string): void;
337
-
338
- /**
339
- * Restores a set of versions at once. Used in cases where a "chicken and
340
- * egg" problem of mutually referring <code>REFERENCE</code> properties
341
- * would prevent the restore in any serial order.
342
- * <p>
343
- * If the restore succeeds the changes made to <code>this</code> node are
344
- * persisted immediately, there is no need to call <code>save</code>.
345
- * <p>
346
- * The following restrictions apply to the set of versions specified:
347
- * <p>
348
- * If <code>S</code> is the set of versions being restored simultaneously,
349
- * <ul> <li> For every version <code>V</code> in <code>S</code> that
350
- * corresponds to a <i>missing</i> node, there must also be a parent of V in
351
- * S. </li> <li> <code>S</code> must contain at least one version that
352
- * corresponds to an existing node in the workspace. </li> <li> No
353
- * <code>V</code> in <code>S</code> can be a root version
354
- * (<code>jcr:rootVersion</code>). </li> </ul> If any of these restrictions
355
- * does not hold, the restore will fail because the system will be unable to
356
- * determine the path locations to which one or more versions are to be
357
- * restored. In this case a <code>VersionException</code> is thrown.
358
- * <p>
359
- * The versionable nodes in this workspace that correspond to the versions
360
- * being restored define a set of (one or more) subgraphs. An identifier
361
- * collision occurs when this workspace contains a node <i>outside these
362
- * subgraphs</i> that has the same identifier as one of the nodes that would
363
- * be introduced by the <code>restore</code> operation <i>into one of these
364
- * subgraphs</i>. The result in such a case is governed by the
365
- * <code>removeExisting</code> flag. If <code>removeExisting</code> is
366
- * <code>true</code> then the incoming node takes precedence, and the
367
- * existing node (and its subgraph) is removed. If <code>removeExisting</code>
368
- * is <code>false</code> then a <code>ItemExistsException</code> is thrown
369
- * and no changes are made. Note that this applies not only to cases where
370
- * the restored node itself conflicts with an existing node but also to
371
- * cases where a conflict occurs with any node that would be introduced into
372
- * the workspace by the restore operation. In particular, conflicts
373
- * involving subnodes of the restored node that have
374
- * <code>OnParentVersion</code> settings of <code>COPY</code> or
375
- * <code>VERSION</code> are also governed by the <code>removeExisting</code>
376
- * flag.
377
- *
378
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
379
- * @param versions The set of versions to be restored
380
- * @param removeExisting governs what happens on identifier collision.
381
- * @throws ItemExistsException if <code>removeExisting</code> is <code>false</code> and an identifier collision occurs with a node being restored.
382
- * @throws UnsupportedRepositoryOperationException if one or more of the nodes to be restored is not versionable.
383
- * @throws VersionException if the set of versions to be restored is such that the original path location of one or more of the versions cannot be determined or if the <code>restore</code> would change the state of a existing versionable node that is currently checked-in or if a root version (<code>jcr:rootVersion</code>) is among those being restored.
384
- * @throws LockException if a lock prevents the restore.
385
- * @throws InvalidItemStateException if this <code>Session</code> has pending unsaved changes.
386
- * @throws RepositoryException if another error occurs.
387
- * @deprecated As of JCR 2.0, {@link javax.jcr.version.VersionManager#restore} should be used instead.
388
- */
389
- restore(versions: Version, removeExisting: boolean): void;
390
-
391
- /**
392
- * Returns the <code>LockManager</code> object, through which locking
393
- * methods are accessed.
394
- *
395
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
396
- * @return the <code>LockManager</code> object.
397
- * @throws UnsupportedRepositoryOperationException if the implementation does not support locking.
398
- * @throws RepositoryException if an error occurs.
399
- * @since JCR 2.0
400
- */
401
- getLockManager(): LockManager;
402
-
403
37
  /**
404
38
  * Returns the <code>QueryManager</code> object, through search methods are
405
39
  * accessed.
@@ -431,27 +65,6 @@ export type Workspace = {
431
65
  */
432
66
  getNodeTypeManager(): NodeTypeManager;
433
67
 
434
- /**
435
- * Returns the <code>ObservationManager</code> object.
436
- *
437
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
438
- * @return an <code>ObservationManager</code> object.
439
- * @throws UnsupportedRepositoryOperationException if the implementation does not support observation.
440
- * @throws RepositoryException if an error occurs.
441
- */
442
- getObservationManager(): ObservationManager;
443
-
444
- /**
445
- * Returns the <code>VersionManager</code> object.
446
- *
447
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
448
- * @return an <code>VersionManager</code> object.
449
- * @throws UnsupportedRepositoryOperationException if the implementation does not support versioning.
450
- * @throws RepositoryException if an error occurs.
451
- * @since JCR 2.0
452
- */
453
- getVersionManager(): VersionManager;
454
-
455
68
  /**
456
69
  * Returns a string array containing the names of all workspaces in this
457
70
  * repository that are accessible to this user, given the
@@ -467,198 +80,111 @@ export type Workspace = {
467
80
  getAccessibleWorkspaceNames(): string;
468
81
 
469
82
  /**
470
- * Returns an <code>org.xml.sax.ContentHandler</code> which can be used to
471
- * push SAX events into the repository. If the incoming XML stream (in the
472
- * form of SAX events) does not appear to be a JCR system view XML document
473
- * then it is interpreted as a document view XML document.
474
- * <p>
475
- * The incoming XML is deserialized into a subgraph of items immediately
476
- * below the node at <code>parentAbsPath</code>.
477
- * <p>
478
- * This method simply returns the <code>ContentHandler</code> without
479
- * altering the state of the repository; the actual deserialization is done
480
- * through the methods of the <code>ContentHandler</code>. Invalid XML data
481
- * will cause the <code>ContentHandler</code> to throw a
482
- * <code>SAXException</code>.
483
- * <p>
484
- * As SAX events are fed into the <code>ContentHandler</code>, changes are
485
- * made directly at the workspace level, without going through the
486
- * <code>Session</code>. As a result, there is not need to call
487
- * <code>save</code>. The advantage of this direct-to-workspace method is
488
- * that a large import will not result in a large cache of pending nodes in
489
- * the <code>Session</code>. The disadvantage is that structures that
490
- * violate node type constraints cannot be imported, fixed and then saved.
491
- * Instead, a constraint violation will cause the <code>ContentHandler</code>
492
- * to throw a <code>SAXException</code>. See <code>Session.getImportContentHandler</code>
493
- * for a version of this method that <i>does</i> go through the
494
- * <code>Session</code>.
495
- * <p>
496
- * The flag <code>uuidBehavior</code> governs how the identifiers of
497
- * incoming (deserialized) nodes are handled. There are four options: <ul>
498
- * <li>{@link ImportUUIDBehavior#IMPORT_UUID_CREATE_NEW}: Incoming nodes are
499
- * assigned newly created identifiers upon addition to the workspace. As a
500
- * result identifier collisions never occur. <li>{@link
501
- * ImportUUIDBehavior#IMPORT_UUID_COLLISION_REMOVE_EXISTING}: If an incoming
502
- * node has the same identifier as a node already existing in the workspace,
503
- * then the already existing node (and its subgraph) is removed from
504
- * wherever it may be in the workspace before the incoming node is added.
505
- * Note that this can result in nodes "disappearing" from locations in the
506
- * workspace that are remote from the location to which the incoming
507
- * subgraph is being written. <li>{@link ImportUUIDBehavior#IMPORT_UUID_COLLISION_REPLACE_EXISTING}:
508
- * If an incoming node has the same identifier as a node already existing in
509
- * the workspace then the already existing node is replaced by the incoming
510
- * node in the same position as the existing node. Note that this may result
511
- * in the incoming subgraph being disaggregated and "spread around" to
512
- * different locations in the workspace. In the most extreme case this
513
- * behavior may result in no node at all being added as child of
514
- * <code>parentAbsPath</code>. This will occur if the topmost element of the
515
- * incoming XML has the same identifier as an existing node elsewhere in the
516
- * workspace. <li>{@link ImportUUIDBehavior#IMPORT_UUID_COLLISION_THROW}: If
517
- * an incoming node has the same identifier as a node already existing in
518
- * the workspace then a <code>SAXException</code> is thrown by the returned
519
- * <code>ContentHandler</code> during deserialization. </ul> A
520
- * <code>SAXException</code> will be thrown by the returned
521
- * <code>ContentHandler</code> during deserialization if the top-most
522
- * element of the incoming XML would deserialize to a node with the same
523
- * name as an existing child of <code>parentAbsPath</code> and that child
524
- * does not allow same-name siblings.
525
- * <p>
526
- * A <code>SAXException</code> will also be thrown by the returned
527
- * <code>ContentHandler</code> during deserialization if
528
- * <code>uuidBehavior</code> is set to <code>IMPORT_UUID_COLLISION_REMOVE_EXISTING</code>
529
- * and an incoming node has the same identifier as the node at
530
- * <code>parentAbsPath</code> or one of its ancestors.
531
- *
532
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
533
- * @param parentAbsPath the absolute path of a node under which (as child) the imported subgraph will be built.
534
- * @param uuidBehavior a four-value flag that governs how incoming identifiers are handled.
535
- * @return an org.xml.sax.ContentHandler whose methods may be called to feed SAX events into the deserializer.
536
- * @throws PathNotFoundException if no node exists at <code>parentAbsPath</code>.
537
- * @throws ConstraintViolationException if the new subgraph cannot be added to the node at <code>parentAbsPath</code> due to node-type or other implementation-specific constraints, and this can be determined before the first SAX event is sent. Unlike {@link Session#getImportContentHandler}, this method also enforces node type constraints by throwing <code>SAXException</code>s during deserialization. However, which node type constraints are enforced depends upon whether node type information in the imported data is respected, and this is an implementation-specific issue.
538
- * @throws VersionException if the node at <code>parentAbsPath</code> is read-only due to a checked-in node.
539
- * @throws LockException if a lock prevents the addition of the subgraph.
540
- * @throws AccessDeniedException if the session associated with this <code>Workspace</code> object does not have sufficient access to perform the import.
541
- * @throws RepositoryException if another error occurs.
83
+ * A constant for the name of the workspace root node.
84
+ * @since JCR 2.0
542
85
  */
543
- getImportContentHandler(parentAbsPath: string, uuidBehavior: number): unknown;
86
+ NAME_WORKSPACE_ROOT: string;
544
87
 
545
88
  /**
546
- * Deserializes an XML document and adds the resulting item subgraph as a
547
- * child of the node at <code>parentAbsPath</code>.
548
- * <p>
549
- * If the incoming XML stream does not appear to be a JCR system view XML
550
- * document then it is interpreted as a <b>document view</b> XML document.
551
- * <p>
552
- * The passed <code>InputStream</code> is closed before this method returns
553
- * either normally or because of an exception.
554
- * <p>
555
- * Changes are made directly at the workspace level, without going through
556
- * the <code>Session</code>. As a result, there is not need to call
557
- * <code>save</code>. The advantage of this direct-to-workspace method is
558
- * that a large import will not result in a large cache of pending nodes in
559
- * the <code>Session</code>. The disadvantage is that invalid data cannot be
560
- * imported, fixed and then saved. Instead, invalid data will cause this
561
- * method to throw an <code>InvalidSerializedDataException</code>. See
562
- * <code>Session.importXML</code> for a version of this method that
563
- * <i>does</i> go through the <code>Session</code>.
564
- * <p>
565
- * The flag <code>uuidBehavior</code> governs how the identifiers of
566
- * incoming (deserialized) nodes are handled. There are four options: <ul>
567
- * <li>{@link ImportUUIDBehavior#IMPORT_UUID_CREATE_NEW}: Incoming nodes are
568
- * assigned newly created identifiers upon addition to the workspace. As a
569
- * result identifier collisions never occur. <li>{@link
570
- * ImportUUIDBehavior#IMPORT_UUID_COLLISION_REMOVE_EXISTING}: If an incoming
571
- * node has the same identifier as a node already existing in the workspace
572
- * then the already existing node (and its subgraph) is removed from
573
- * wherever it may be in the workspace before the incoming node is added.
574
- * Note that this can result in nodes "disappearing" from locations in the
575
- * workspace that are remote from the location to which the incoming
576
- * subgraph is being written. If an incoming node has the same identifier as
577
- * the existing root node of this workspace then <li>{@link
578
- * ImportUUIDBehavior#IMPORT_UUID_COLLISION_REPLACE_EXISTING}: If an
579
- * incoming node has the same identifier as a node already existing in the
580
- * workspace then the already existing node is replaced by the incoming node
581
- * in the same position as the existing node. Note that this may result in
582
- * the incoming subgraph being disaggregated and "spread around" to
583
- * different locations in the workspace. In the most extreme edge case this
584
- * behavior may result in no node at all being added as child of
585
- * <code>parentAbsPath</code>. This will occur if the topmost element of the
586
- * incoming XML has the same identifier as an existing node elsewhere in the
587
- * workspace. <li>{@link ImportUUIDBehavior#IMPORT_UUID_COLLISION_THROW}: If
588
- * an incoming node has the same identifier as a node already existing in
589
- * the workspace then an <code>ItemExistsException</code> is thrown. </ul>
590
- * An <code>ItemExistsException</code> will be thrown if the top-most
591
- * element of the incoming XML would deserialize to a node with the same
592
- * name as an existing child of <code>parentAbsPath</code> and that child
593
- * does not allow same-name siblings.
594
- *
595
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
596
- * @param parentAbsPath the absolute path of the node below which the deserialized subgraph is added.
597
- * @param in The <code>Inputstream</code> from which the XML to be deserialized is read.
598
- * @param uuidBehavior a four-value flag that governs how incoming identifiers are handled.
599
- * @throws java.io.IOException if an error during an I/O operation occurs.
600
- * @throws PathNotFoundException if no node exists at <code>parentAbsPath</code>.
601
- * @throws ConstraintViolationException if node-type or other implementation-specific constraints prevent the addition of the subgraph or if <code>uuidBehavior</code> is set to <code>IMPORT_UUID_COLLISION_REMOVE_EXISTING</code> and an incoming node has the same identifier as the node at <code>parentAbsPath</code> or one of its ancestors.
602
- * @throws VersionException if the node at <code>parentAbsPath</code> is read-only due to a checked-in node..
603
- * @throws InvalidSerializedDataException if incoming stream is not a valid XML document.
604
- * @throws ItemExistsException if the top-most element of the incoming XML would deserialize to a node with the same name as an existing child of <code>parentAbsPath</code> and that child does not allow same-name siblings, or if a <code>uuidBehavior</code> is set to <code>IMPORT_UUID_COLLISION_THROW</code> and an identifier collision occurs.
605
- * @throws LockException if a lock prevents the addition of the subgraph.
606
- * @throws AccessDeniedException if the session associated with this <code>Workspace</code> object does not have sufficient access to perform the import.
607
- * @throws RepositoryException if another error occurs.
89
+ * A constant for the absolute path of the workspace root node.
90
+ * @since JCR 2.0
608
91
  */
609
- importXML(parentAbsPath: string, _in: unknown, uuidBehavior: number): void;
92
+ PATH_WORKSPACE_ROOT: string;
610
93
 
611
94
  /**
612
- * Creates a new <code>Workspace</code> with the specified
613
- * <code>name</code>. The new workspace is empty, meaning it contains only
614
- * root node.
615
- * <p>
616
- * The new workspace can be accessed through a <code>login</code> specifying
617
- * its name.
618
- *
619
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
620
- * @param name A <code>String</code>, the name of the new workspace.
621
- * @throws AccessDeniedException if the session through which this <code>Workspace</code> object was acquired does not have permission to create the new workspace.
622
- * @throws UnsupportedRepositoryOperationException if the repository does not support the creation of workspaces.
623
- * @throws RepositoryException if another error occurs.
95
+ * A constant for the name of the system node.
624
96
  * @since JCR 2.0
625
97
  */
626
- createWorkspace(name: string): void;
98
+ NAME_SYSTEM_NODE: string;
627
99
 
628
100
  /**
629
- * Creates a new <code>Workspace</code> with the specified <code>name</code>
630
- * initialized with a <code>clone</code> of the content of the workspace
631
- * <code>srcWorkspace</code>. Semantically, this method is equivalent to
632
- * creating a new workspace and manually cloning <code>srcWorkspace</code>
633
- * to it; however, this method may assist some implementations in optimizing
634
- * subsequent <code>Node.update</code> and <code>Node.merge</code> calls
635
- * between the new workspace and its source.
636
- * <p>
637
- * The new workspace can be accessed through a <code>login</code> specifying
638
- * its name.
639
- *
640
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
641
- * @param name A <code>String</code>, the name of the new workspace.
642
- * @param srcWorkspace The name of the workspace from which the new workspace is to be cloned.
643
- * @throws AccessDeniedException if the session through which this <code>Workspace</code> object was acquired does not have sufficient access to create the new workspace.
644
- * @throws UnsupportedRepositoryOperationException if the repository does not support the creation of workspaces.
645
- * @throws NoSuchWorkspaceException is <code>srcWorkspace</code> does not exist.
646
- * @throws RepositoryException if another error occurs.
101
+ * A constant for the absolute path of the system node.
102
+ * @since JCR 2.0
103
+ */
104
+ PATH_SYSTEM_NODE: string;
105
+
106
+ /**
107
+ * A constant for the name of the node type definition storage node.
647
108
  * @since JCR 2.0
648
109
  */
649
- createWorkspace(name: string, srcWorkspace: string): void;
110
+ NAME_NODE_TYPES_NODE: string;
650
111
 
651
112
  /**
652
- * Deletes the workspace with the specified <code>name</code> from the
653
- * repository, deleting all content within it.
654
- *
655
- * <p><strong>Sitevision note:</strong> Unsupported operation</p>
656
- * @param name A <code>String</code>, the name of the workspace to be deleted.
657
- * @throws AccessDeniedException if the session through which this <code>Workspace</code> object was acquired does not have sufficent access to remove the workspace.
658
- * @throws UnsupportedRepositoryOperationException if the repository does not support the removal of workspaces.
659
- * @throws NoSuchWorkspaceException is <code>srcWorkspace</code> does not exist.
660
- * @throws RepositoryException if another error occurs.
113
+ * A constant for the absolute path of the node type definition storage
114
+ * node.
661
115
  * @since JCR 2.0
662
116
  */
663
- deleteWorkspace(name: string): void;
117
+ PATH_NODE_TYPES_NODE: string;
118
+
119
+ /**
120
+ * A constant for the name of the version storage node.
121
+ * @since JCR 2.0
122
+ */
123
+ NAME_VERSION_STORAGE_NODE: string;
124
+
125
+ /**
126
+ * A constant for the absolute path of the version storage node.
127
+ * @since JCR 2.0
128
+ */
129
+ PATH_VERSION_STORAGE_NODE: string;
130
+
131
+ /**
132
+ * A constant for the name of the activities node.
133
+ * @since JCR 2.0
134
+ */
135
+ NAME_ACTIVITIES_NODE: string;
136
+
137
+ /**
138
+ * A constant for the absolute path of the activities node.
139
+ * @since JCR 2.0
140
+ */
141
+ PATH_ACTIVITIES_NODE: string;
142
+
143
+ /**
144
+ * A constant for the name of the configurations node.
145
+ * @since JCR 2.0
146
+ */
147
+ NAME_CONFIGURATIONS_NODE: string;
148
+
149
+ /**
150
+ * A constant for the absolute path of the configurations node.
151
+ * @since JCR 2.0
152
+ */
153
+ PATH_CONFIGURATIONS_NODE: string;
154
+
155
+ /**
156
+ * A constant for the name of the unfiled storage node.
157
+ * @since JCR 2.0
158
+ */
159
+ NAME_UNFILED_NODE: string;
160
+
161
+ /**
162
+ * A constant for the absolute path of the unfiled storage node.
163
+ * @since JCR 2.0
164
+ */
165
+ PATH_UNFILED_NODE: string;
166
+
167
+ /**
168
+ * A constant for the name of the <code>jcr:xmltext</code> node produced on
169
+ * {@link #importXML}.
170
+ * @since JCR 2.0
171
+ */
172
+ NAME_JCR_XMLTEXT: string;
173
+
174
+ /**
175
+ * A constant for the name of the <code>jcr:xmlcharacters</code> property
176
+ * produced on {@link #importXML}.
177
+ * @since JCR 2.0
178
+ */
179
+ NAME_JCR_XMLCHARACTERS: string;
180
+
181
+ /**
182
+ * A constant for the relative path from the node representing the imported
183
+ * XML element of the <code>jcr:xmlcharacters</code> property produced on
184
+ * {@link #importXML}.
185
+ * @since JCR 2.0
186
+ */
187
+ RELPATH_JCR_XMLCHARACTERS: string;
664
188
  };
189
+
190
+ export = Workspace;