@sitevision/api 1.0.19 → 1.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. package/common/router/index.d.ts +1 -1
  2. package/hidden/javax/jcr/Binary/index.d.ts +86 -0
  3. package/hidden/javax/jcr/Credentials/index.d.ts +11 -0
  4. package/hidden/javax/jcr/ImportUUIDBehavior/index.d.ts +11 -0
  5. package/hidden/javax/jcr/Item/index.d.ts +353 -0
  6. package/hidden/javax/jcr/ItemVisitor/index.d.ts +41 -0
  7. package/hidden/javax/jcr/NamespaceRegistry/index.d.ts +100 -0
  8. package/hidden/javax/jcr/Node/index.d.ts +2808 -0
  9. package/hidden/javax/jcr/NodeIterator/index.d.ts +18 -0
  10. package/hidden/javax/jcr/Property/index.d.ts +801 -0
  11. package/hidden/javax/jcr/PropertyIterator/index.d.ts +17 -0
  12. package/hidden/javax/jcr/RangeIterator/index.d.ts +75 -0
  13. package/hidden/javax/jcr/Repository/index.d.ts +318 -0
  14. package/hidden/javax/jcr/RepositoryFactory/index.d.ts +90 -0
  15. package/hidden/javax/jcr/Value/index.d.ts +190 -0
  16. package/hidden/javax/jcr/ValueFactory/index.d.ts +179 -0
  17. package/hidden/javax/jcr/Workspace/index.d.ts +1061 -0
  18. package/hidden/javax/jcr/lock/Lock/index.d.ts +142 -0
  19. package/hidden/javax/jcr/lock/LockManager/index.d.ts +217 -0
  20. package/hidden/javax/jcr/nodetype/ItemDefinition/index.d.ts +219 -0
  21. package/hidden/javax/jcr/nodetype/NodeDefinition/index.d.ts +158 -0
  22. package/hidden/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +74 -0
  23. package/hidden/javax/jcr/nodetype/NodeType/index.d.ts +349 -0
  24. package/hidden/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +248 -0
  25. package/hidden/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +16 -0
  26. package/hidden/javax/jcr/nodetype/NodeTypeManager/index.d.ts +218 -0
  27. package/hidden/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +98 -0
  28. package/hidden/javax/jcr/nodetype/PropertyDefinition/index.d.ts +536 -0
  29. package/hidden/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +97 -0
  30. package/hidden/javax/jcr/observation/Event/index.d.ts +133 -0
  31. package/hidden/javax/jcr/observation/EventIterator/index.d.ts +20 -0
  32. package/hidden/javax/jcr/observation/EventJournal/index.d.ts +22 -0
  33. package/hidden/javax/jcr/observation/EventListener/index.d.ts +23 -0
  34. package/hidden/javax/jcr/observation/EventListenerIterator/index.d.ts +20 -0
  35. package/hidden/javax/jcr/observation/ObservationManager/index.d.ts +227 -0
  36. package/hidden/javax/jcr/query/Query/index.d.ts +201 -0
  37. package/hidden/javax/jcr/query/QueryManager/index.d.ts +73 -0
  38. package/hidden/javax/jcr/query/QueryResult/index.d.ts +51 -0
  39. package/hidden/javax/jcr/query/Row/index.d.ts +159 -0
  40. package/hidden/javax/jcr/query/RowIterator/index.d.ts +20 -0
  41. package/hidden/javax/jcr/query/qom/And/index.d.ts +26 -0
  42. package/hidden/javax/jcr/query/qom/BindVariableValue/index.d.ts +15 -0
  43. package/hidden/javax/jcr/query/qom/ChildNode/index.d.ts +27 -0
  44. package/hidden/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +27 -0
  45. package/hidden/javax/jcr/query/qom/Column/index.d.ts +39 -0
  46. package/hidden/javax/jcr/query/qom/Comparison/index.d.ts +82 -0
  47. package/hidden/javax/jcr/query/qom/Constraint/index.d.ts +13 -0
  48. package/hidden/javax/jcr/query/qom/DescendantNode/index.d.ts +31 -0
  49. package/hidden/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +29 -0
  50. package/hidden/javax/jcr/query/qom/DynamicOperand/index.d.ts +9 -0
  51. package/hidden/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +41 -0
  52. package/hidden/javax/jcr/query/qom/FullTextSearch/index.d.ts +89 -0
  53. package/hidden/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +24 -0
  54. package/hidden/javax/jcr/query/qom/Join/index.d.ts +36 -0
  55. package/hidden/javax/jcr/query/qom/JoinCondition/index.d.ts +9 -0
  56. package/hidden/javax/jcr/query/qom/Length/index.d.ts +24 -0
  57. package/hidden/javax/jcr/query/qom/Literal/index.d.ts +18 -0
  58. package/hidden/javax/jcr/query/qom/LowerCase/index.d.ts +26 -0
  59. package/hidden/javax/jcr/query/qom/NodeLocalName/index.d.ts +16 -0
  60. package/hidden/javax/jcr/query/qom/NodeName/index.d.ts +16 -0
  61. package/hidden/javax/jcr/query/qom/Not/index.d.ts +20 -0
  62. package/hidden/javax/jcr/query/qom/Operand/index.d.ts +9 -0
  63. package/hidden/javax/jcr/query/qom/Or/index.d.ts +30 -0
  64. package/hidden/javax/jcr/query/qom/Ordering/index.d.ts +53 -0
  65. package/hidden/javax/jcr/query/qom/PropertyExistence/index.d.ts +24 -0
  66. package/hidden/javax/jcr/query/qom/PropertyValue/index.d.ts +25 -0
  67. package/hidden/javax/jcr/query/qom/QueryObjectModel/index.d.ts +64 -0
  68. package/hidden/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +9 -0
  69. package/hidden/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +638 -0
  70. package/hidden/javax/jcr/query/qom/SameNode/index.d.ts +27 -0
  71. package/hidden/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +36 -0
  72. package/hidden/javax/jcr/query/qom/Selector/index.d.ts +35 -0
  73. package/hidden/javax/jcr/query/qom/Source/index.d.ts +9 -0
  74. package/hidden/javax/jcr/query/qom/StaticOperand/index.d.ts +10 -0
  75. package/hidden/javax/jcr/query/qom/UpperCase/index.d.ts +26 -0
  76. package/hidden/javax/jcr/retention/Hold/index.d.ts +34 -0
  77. package/hidden/javax/jcr/retention/RetentionManager/index.d.ts +189 -0
  78. package/hidden/javax/jcr/retention/RetentionPolicy/index.d.ts +21 -0
  79. package/hidden/javax/jcr/security/AccessControlEntry/index.d.ts +24 -0
  80. package/hidden/javax/jcr/security/AccessControlList/index.d.ts +91 -0
  81. package/hidden/javax/jcr/security/AccessControlManager/index.d.ts +297 -0
  82. package/hidden/javax/jcr/security/AccessControlPolicy/index.d.ts +11 -0
  83. package/hidden/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +20 -0
  84. package/hidden/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +22 -0
  85. package/hidden/javax/jcr/security/Privilege/index.d.ts +117 -0
  86. package/hidden/javax/jcr/version/Version/index.d.ts +121 -0
  87. package/hidden/javax/jcr/version/VersionHistory/index.d.ts +307 -0
  88. package/hidden/javax/jcr/version/VersionIterator/index.d.ts +20 -0
  89. package/hidden/javax/jcr/version/VersionManager/index.d.ts +1082 -0
  90. package/hidden/senselogic/sitevision/api/base/Builder/index.d.ts +102 -0
  91. package/hidden/senselogic/sitevision/api/base/Filter/index.d.ts +25 -0
  92. package/hidden/senselogic/sitevision/api/base/FilterSplit/index.d.ts +50 -0
  93. package/hidden/senselogic/sitevision/api/base/Loadable/index.d.ts +15 -0
  94. package/hidden/senselogic/sitevision/api/base/Resolver/index.d.ts +31 -0
  95. package/hidden/senselogic/sitevision/api/base/Wrapper/index.d.ts +24 -0
  96. package/hidden/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +417 -0
  97. package/hidden/senselogic/sitevision/api/format/NumericFormatter/index.d.ts +80 -0
  98. package/hidden/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +100 -0
  99. package/hidden/senselogic/sitevision/api/i18n/Currency/index.d.ts +120 -0
  100. package/hidden/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +45 -0
  101. package/hidden/senselogic/sitevision/api/link/CustomLinkRenderData/index.d.ts +65 -0
  102. package/hidden/senselogic/sitevision/api/mail/Mail/index.d.ts +32 -0
  103. package/hidden/senselogic/sitevision/api/message/MessageTextLinker/index.d.ts +15 -0
  104. package/hidden/senselogic/sitevision/api/metadata/value/LinkValue/index.d.ts +23 -0
  105. package/hidden/senselogic/sitevision/api/metadata/value/RelatedValue/index.d.ts +23 -0
  106. package/hidden/senselogic/sitevision/api/property/VersionedPropertyUtil/index.d.ts +642 -0
  107. package/hidden/senselogic/sitevision/api/render/BuddyIconRenderer/BuddyIconInfo/index.d.ts +51 -0
  108. package/hidden/senselogic/sitevision/api/render/ImageScaler/index.d.ts +58 -0
  109. package/hidden/senselogic/sitevision/api/render/TextModuleRenderer/index.d.ts +301 -0
  110. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ArticleUtilConstants/index.d.ts +85 -0
  111. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ExceptionSuppressingProxyConstants/index.d.ts +31 -0
  112. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/IndexingUtilConstants/index.d.ts +31 -0
  113. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/LinkPageUtilConstants/index.d.ts +67 -0
  114. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MathInstanceConstants/index.d.ts +25 -0
  115. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MimeTypeUtilConstants/index.d.ts +19 -0
  116. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/NodeTypeUtilConstants/index.d.ts +1243 -0
  117. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/OutputUtilConstants/index.d.ts +31 -0
  118. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PageUtilConstants/index.d.ts +91 -0
  119. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletContextUtilConstants/index.d.ts +27 -0
  120. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletUtilConstants/index.d.ts +19 -0
  121. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/QueryStringUtilConstants/index.d.ts +19 -0
  122. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchHitConstants/index.d.ts +25 -0
  123. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchResultConstants/index.d.ts +37 -0
  124. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/VersionUtilConstants/index.d.ts +25 -0
  125. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/index.d.ts +8 -0
  126. package/hidden/senselogic/sitevision/api/render/velocity/VelocityContext/index.d.ts +50 -0
  127. package/hidden/senselogic/sitevision/api/render/velocity/VelocityEvaluator/index.d.ts +89 -0
  128. package/hidden/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +119 -0
  129. package/hidden/senselogic/sitevision/api/script/app/RestAppInvoker/index.d.ts +272 -0
  130. package/hidden/senselogic/sitevision/api/script/factory/TypedArgument/index.d.ts +43 -0
  131. package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingCollection/index.d.ts +94 -0
  132. package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingIterator/index.d.ts +117 -0
  133. package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +90 -0
  134. package/hidden/senselogic/sitevision/api/search/SearchFieldUtil/index.d.ts +89 -0
  135. package/hidden/senselogic/sitevision/api/search/SearchHighlighter/index.d.ts +45 -0
  136. package/hidden/senselogic/sitevision/api/search/SearchHit/index.d.ts +1176 -0
  137. package/hidden/senselogic/sitevision/api/search/SearchResult/index.d.ts +414 -0
  138. package/hidden/senselogic/sitevision/api/search/facet/SearchFacetField/index.d.ts +27 -0
  139. package/hidden/senselogic/sitevision/api/search/facet/SearchFacetValue/index.d.ts +61 -0
  140. package/hidden/senselogic/sitevision/api/search/searcher/Searcher/index.d.ts +277 -0
  141. package/hidden/senselogic/sitevision/api/search/searcher/component/Filter/index.d.ts +25 -0
  142. package/hidden/senselogic/sitevision/api/search/searcher/component/Highlight/index.d.ts +29 -0
  143. package/hidden/senselogic/sitevision/api/search/searcher/component/Monitor/index.d.ts +25 -0
  144. package/hidden/senselogic/sitevision/api/search/searcher/component/Parser/index.d.ts +35 -0
  145. package/hidden/senselogic/sitevision/api/search/searcher/component/Sort/index.d.ts +25 -0
  146. package/hidden/senselogic/sitevision/api/search/searcher/component/SpellCheck/index.d.ts +29 -0
  147. package/hidden/senselogic/sitevision/api/search/sort/CustomSort/index.d.ts +82 -0
  148. package/hidden/senselogic/sitevision/api/search/suggestion/SearchSuggestion/index.d.ts +21 -0
  149. package/hidden/senselogic/sitevision/api/security/DirectoryAttributes/index.d.ts +70 -0
  150. package/hidden/senselogic/sitevision/api/security/MessageDigester/index.d.ts +50 -0
  151. package/hidden/senselogic/sitevision/api/security/RoleAssignment/index.d.ts +72 -0
  152. package/hidden/senselogic/sitevision/api/security/RoleMatcher/index.d.ts +29 -0
  153. package/hidden/senselogic/sitevision/api/security/SecretStore/index.d.ts +55 -0
  154. package/hidden/senselogic/sitevision/api/security/UserUtil/index.d.ts +80 -0
  155. package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +36 -0
  156. package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilterChain/index.d.ts +32 -0
  157. package/hidden/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +599 -0
  158. package/hidden/senselogic/sitevision/api/webresource/LinkTarget/index.d.ts +20 -0
  159. package/hidden/senselogic/sitevision/api/xml/XmlElement/index.d.ts +55 -0
  160. package/hidden/senselogic/sitevision/api/xml/XmlElementHandler/index.d.ts +17 -0
  161. package/package.json +2 -4
  162. package/server/AliasUtil/index.d.ts +25 -0
  163. package/server/AliasUtil/index.js +10 -0
  164. package/server/ArchiveUtil/index.d.ts +65 -11
  165. package/server/ArraysInstance/index.d.ts +1846 -0
  166. package/server/ArticleUtil/index.d.ts +381 -69
  167. package/server/AuthenticationUtil/index.d.ts +106 -0
  168. package/server/BookmarkUtil/index.d.ts +36 -28
  169. package/server/BuddyIconRenderer/index.d.ts +240 -0
  170. package/server/ClientUtil/index.d.ts +18 -4
  171. package/server/CollaborationFactory/index.d.ts +42 -25
  172. package/server/CollaborationGroupFolderUtil/index.d.ts +40 -29
  173. package/server/CollaborationGroupTemplateUtil/index.d.ts +71 -39
  174. package/server/CollaborationGroupUtil/index.d.ts +128 -55
  175. package/server/CollectionsInstance/index.d.ts +738 -0
  176. package/server/ColorUtil/index.d.ts +22 -17
  177. package/server/CompoundAndFilterBuilder/index.d.ts +60 -0
  178. package/server/CompoundComparatorBuilder/index.d.ts +63 -0
  179. package/server/CompoundOrFilterBuilder/index.d.ts +59 -0
  180. package/server/ContentNodeUtil/index.d.ts +76 -0
  181. package/server/CurrencyFactory/index.d.ts +135 -0
  182. package/server/DateUtil/index.d.ts +154 -77
  183. package/server/DecorationUtil/index.d.ts +23 -0
  184. package/server/DeviceUtil/index.d.ts +36 -0
  185. package/server/DirectoryUtil/index.d.ts +107 -47
  186. package/server/DocTypeUtil/index.d.ts +149 -0
  187. package/server/EndecUtil/index.d.ts +537 -91
  188. package/server/ExtendedDismaxParserBuilder/index.d.ts +311 -0
  189. package/server/FileIconRenderer/index.d.ts +346 -0
  190. package/server/FileUtil/index.d.ts +462 -0
  191. package/server/FilterBuilder/index.d.ts +120 -0
  192. package/server/FolderUtil/index.d.ts +161 -0
  193. package/server/FontUtil/index.d.ts +49 -0
  194. package/server/FormatterBuilderFactory/index.d.ts +129 -0
  195. package/server/HighlightBuilder/index.d.ts +194 -0
  196. package/server/IconUtil/index.d.ts +37 -0
  197. package/server/ImageLinkRenderer/index.d.ts +134 -0
  198. package/server/ImageRenderer/index.d.ts +613 -231
  199. package/server/ImageUtil/index.d.ts +430 -0
  200. package/server/IndexUtil/index.d.ts +71 -0
  201. package/server/IndexingUtil/index.d.ts +92 -0
  202. package/server/InstanceCreatorUtil/index.d.ts +661 -0
  203. package/server/InstanceTypeUtil/index.d.ts +202 -0
  204. package/server/JwtUtil/index.d.ts +217 -0
  205. package/server/LandingPageUtil/index.d.ts +67 -50
  206. package/server/LinkPageUtil/index.d.ts +468 -0
  207. package/server/LinkRenderer/index.d.ts +1157 -0
  208. package/server/LinkTargetBuilder/index.d.ts +146 -0
  209. package/server/LinkValueBuilder/index.d.ts +129 -52
  210. package/server/ListWrapper/index.d.ts +172 -0
  211. package/server/LocaleUtil/index.d.ts +695 -61
  212. package/server/LogUtil/index.d.ts +118 -77
  213. package/server/MailBuilder/index.d.ts +238 -0
  214. package/server/MailUtil/index.d.ts +98 -0
  215. package/server/MathInstance/index.d.ts +681 -0
  216. package/server/MessageDigesterFactory/index.d.ts +49 -0
  217. package/server/MetadataDefinitionUtil/index.d.ts +118 -0
  218. package/server/MetadataUtil/index.d.ts +524 -79
  219. package/server/MimeTypeUtil/index.d.ts +316 -0
  220. package/server/MonitorBuilder/index.d.ts +51 -0
  221. package/server/NodeComparatorUtil/index.d.ts +397 -0
  222. package/server/NodeFactoryUtil/index.d.ts +32 -0
  223. package/server/NodeFilterUtil/index.d.ts +924 -0
  224. package/server/NodeIteratorUtil/index.d.ts +322 -72
  225. package/server/NodeResolverUtil/index.d.ts +767 -0
  226. package/server/NodeTreeUtil/index.d.ts +339 -63
  227. package/server/NodeTypeUtil/index.d.ts +391 -197
  228. package/server/OfflineVersionPropertyUtil/index.d.ts +30 -0
  229. package/server/OnlineVersionPropertyUtil/index.d.ts +30 -0
  230. package/server/OutputUtil/index.d.ts +641 -0
  231. package/server/PageUtil/index.d.ts +330 -0
  232. package/server/PermissionUtil/index.d.ts +650 -0
  233. package/server/PortletContextUtil/index.d.ts +118 -37
  234. package/server/PortletContextUtil/index.js +1 -0
  235. package/server/PortletUtil/index.d.ts +40 -0
  236. package/server/PrincipalUtil/index.d.ts +51 -0
  237. package/server/Properties/index.d.ts +185 -38
  238. package/server/PropertyUtil/index.d.ts +2330 -406
  239. package/server/PublishingUtil/index.d.ts +385 -49
  240. package/server/QueryStringUtil/index.d.ts +737 -0
  241. package/server/RedirectUtil/index.d.ts +98 -0
  242. package/server/RelatedValueBuilder/index.d.ts +81 -39
  243. package/server/Requester/index.d.ts +441 -65
  244. package/server/ResourceLocatorUtil/index.d.ts +483 -227
  245. package/server/RestApi/index.d.ts +208 -23
  246. package/server/RestAppInvokerFactory/index.d.ts +73 -0
  247. package/server/RoleAssignmentBuilder/index.d.ts +60 -0
  248. package/server/RoleMatcherBuilder/index.d.ts +59 -0
  249. package/server/RoleUtil/index.d.ts +57 -0
  250. package/server/ScriptUtil/index.d.ts +625 -143
  251. package/server/SearchFactory/index.d.ts +133 -0
  252. package/server/SearchUtil/index.d.ts +164 -0
  253. package/server/SearcherBuilder/index.d.ts +260 -0
  254. package/server/Session/index.d.ts +1758 -0
  255. package/server/SimpleUserUtil/index.d.ts +39 -30
  256. package/server/SiteCookieUtil/index.d.ts +78 -53
  257. package/server/SortBuilder/index.d.ts +111 -0
  258. package/server/SpellCheckBuilder/index.d.ts +68 -0
  259. package/server/StandardParserBuilder/index.d.ts +112 -0
  260. package/server/StructureUtil/index.d.ts +167 -0
  261. package/server/SubscriberUtil/index.d.ts +122 -0
  262. package/server/SubscriptionUtil/index.d.ts +197 -0
  263. package/server/SystemUserUtil/index.d.ts +201 -98
  264. package/server/TagUtil/index.d.ts +193 -0
  265. package/server/TemplateUtil/index.d.ts +217 -0
  266. package/server/TemporaryFileNodeBuilder/index.d.ts +63 -0
  267. package/server/TemporaryNodeBuilder/index.d.ts +241 -0
  268. package/server/TextModuleRendererBuilder/index.d.ts +68 -0
  269. package/server/TimestampUtil/index.d.ts +98 -82
  270. package/server/TranslationUtil/index.d.ts +175 -0
  271. package/server/TrashcanUtil/index.d.ts +193 -24
  272. package/server/UserDataUtil/index.d.ts +167 -85
  273. package/server/UserFactory/index.d.ts +45 -30
  274. package/server/UserFieldRenderer/index.d.ts +258 -0
  275. package/server/UserIdentityUtil/index.d.ts +61 -29
  276. package/server/UserUtil/index.d.ts +69 -28
  277. package/server/Utils/index.d.ts +870 -12
  278. package/server/VelocityRenderer/index.d.ts +248 -0
  279. package/server/VersionUtil/index.d.ts +15 -12
  280. package/server/WebContentUtil/index.d.ts +644 -0
  281. package/server/WebResourceFactory/index.d.ts +66 -0
  282. package/server/XSLTUtil/index.d.ts +49 -10
  283. package/server/XmlParserUtil/index.d.ts +82 -81
  284. package/builtins/Binary/index.d.ts +0 -3
  285. package/builtins/Calendar/index.d.ts +0 -3
  286. package/builtins/Collection/index.d.ts +0 -3
  287. package/builtins/Date/index.d.ts +0 -3
  288. package/builtins/InputStream/index.d.ts +0 -3
  289. package/builtins/Instant/index.d.ts +0 -3
  290. package/builtins/List/index.d.ts +0 -3
  291. package/builtins/LocalDateTime/index.d.ts +0 -3
  292. package/builtins/Locale/index.d.ts +0 -3
  293. package/builtins/Node/index.d.ts +0 -3
  294. package/builtins/NodeIterator/index.d.ts +0 -27
  295. package/builtins/Property/index.d.ts +0 -3
  296. package/builtins/Serializable/index.d.ts +0 -3
  297. package/builtins/Set/index.d.ts +0 -3
  298. package/builtins/Throwable/index.d.ts +0 -3
  299. package/builtins/byte/index.d.ts +0 -3
@@ -0,0 +1,142 @@
1
+ import Node from "../../Node";
2
+
3
+ /**
4
+ * Represents a lock placed on an item.
5
+ *
6
+ * <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns the value of the <code>jcr:lockOwner</code> property. This is
7
+ * either the client supplied owner information (see {@link
8
+ * LockManager#lock(String, boolean, boolean, long, String)}), an
9
+ * implementation-dependent string identifying the user who either created
10
+ * the lock or who is bound to the session holding the lock, or
11
+ * <code>null</code> if none of these are available. The lock owner's
12
+ * identity is only provided for informational purposes. It does not govern
13
+ * who can perform an unlock or make changes to the locked nodes; that
14
+ * depends entirely upon who the token holder is.Returns <code>true</code> if this is a deep lock; <code>false</code>
15
+ * otherwise.Returns the lock holding node. Note that <code>N.getLock().getNode()</code>
16
+ * (where <code>N</code> is a locked node) will only return <code>N</code>
17
+ * if <code>N</code> is the lock holder. If <code>N</code> is in the
18
+ * subgraph of the lock holder, <code>H</code>, then this call will return
19
+ * <code>H</code>.May return the lock token for this lock. If this lock is open-scoped and
20
+ * the current session either holds the lock token for this lock, or the
21
+ * repository chooses to expose the lock token to the current session, then
22
+ * this method will return that lock token. Otherwise this method will
23
+ * return <code>null</code>.Returns the number of seconds remaining until this locks times out. If
24
+ * the lock has already timed out, a negative value is returned. If the
25
+ * number of seconds remaining is infinite or unknown,
26
+ * <code>Long.MAX_VALUE</code> is returned.Returns true if this <code>Lock</code> object represents a lock that is
27
+ * currently in effect. If this lock has been unlocked either explicitly or
28
+ * due to an implementation-specific limitation (like a timeout) then it
29
+ * returns <code>false</code>. Note that this method is intended for those
30
+ * cases where one is holding a <code>Lock</code> Java object and wants to
31
+ * find out whether the lock (the JCR-level entity that is attached to the
32
+ * lockable node) that this object originally represented still exists. For
33
+ * example, a timeout or explicit <code>unlock</code> will remove a lock
34
+ * from a node but the <code>Lock</code> Java object corresponding to that
35
+ * lock may still exist, and in that case its <code>isLive</code> method
36
+ * will return <code>false</code>.Returns <code>true</code> if this is a session-scoped lock and the scope
37
+ * is bound to the current session. Returns <code>false</code> otherwise.Returns <code>true</code> if the current session is the owner of this
38
+ * lock, either because it is session-scoped and bound to this session or
39
+ * open-scoped and this session currently holds the token for this lock.
40
+ * Returns <code>false</code> otherwise.If this lock's time-to-live is governed by a timer, this method resets
41
+ * that timer so that the lock does not timeout and expire. If this lock's
42
+ * time-to-live is not governed by a timer, then this method has no effect.
43
+
44
+ */
45
+ interface Lock {
46
+ /**
47
+ * Returns the value of the <code>jcr:lockOwner</code> property. This is
48
+ * either the client supplied owner information (see {@link
49
+ * LockManager#lock(String, boolean, boolean, long, String)}), an
50
+ * implementation-dependent string identifying the user who either created
51
+ * the lock or who is bound to the session holding the lock, or
52
+ * <code>null</code> if none of these are available. The lock owner's
53
+ * identity is only provided for informational purposes. It does not govern
54
+ * who can perform an unlock or make changes to the locked nodes; that
55
+ * depends entirely upon who the token holder is.
56
+ * @return a user ID.
57
+ */
58
+ getLockOwner(): string;
59
+
60
+ /**
61
+ * Returns <code>true</code> if this is a deep lock; <code>false</code>
62
+ * otherwise.
63
+ * @return a boolean
64
+ */
65
+ isDeep(): boolean;
66
+
67
+ /**
68
+ * Returns the lock holding node. Note that <code>N.getLock().getNode()</code>
69
+ * (where <code>N</code> is a locked node) will only return <code>N</code>
70
+ * if <code>N</code> is the lock holder. If <code>N</code> is in the
71
+ * subgraph of the lock holder, <code>H</code>, then this call will return
72
+ * <code>H</code>.
73
+ * @return an <code>Node</code>.
74
+ */
75
+ getNode(): Node;
76
+
77
+ /**
78
+ * May return the lock token for this lock. If this lock is open-scoped and
79
+ * the current session either holds the lock token for this lock, or the
80
+ * repository chooses to expose the lock token to the current session, then
81
+ * this method will return that lock token. Otherwise this method will
82
+ * return <code>null</code>.
83
+ * @return a <code>String</code>.
84
+ */
85
+ getLockToken(): string;
86
+
87
+ /**
88
+ * Returns the number of seconds remaining until this locks times out. If
89
+ * the lock has already timed out, a negative value is returned. If the
90
+ * number of seconds remaining is infinite or unknown,
91
+ * <code>Long.MAX_VALUE</code> is returned.
92
+ * @return the number of seconds remaining until this lock times out.
93
+ * @throws RepositoryException if an error occurs.
94
+ * @since JCR 2.0
95
+ */
96
+ getSecondsRemaining(): number;
97
+
98
+ /**
99
+ * Returns true if this <code>Lock</code> object represents a lock that is
100
+ * currently in effect. If this lock has been unlocked either explicitly or
101
+ * due to an implementation-specific limitation (like a timeout) then it
102
+ * returns <code>false</code>. Note that this method is intended for those
103
+ * cases where one is holding a <code>Lock</code> Java object and wants to
104
+ * find out whether the lock (the JCR-level entity that is attached to the
105
+ * lockable node) that this object originally represented still exists. For
106
+ * example, a timeout or explicit <code>unlock</code> will remove a lock
107
+ * from a node but the <code>Lock</code> Java object corresponding to that
108
+ * lock may still exist, and in that case its <code>isLive</code> method
109
+ * will return <code>false</code>.
110
+ * @return a <code>boolean</code>.
111
+ * @throws RepositoryException if an error occurs.
112
+ */
113
+ isLive(): boolean;
114
+
115
+ /**
116
+ * Returns <code>true</code> if this is a session-scoped lock and the scope
117
+ * is bound to the current session. Returns <code>false</code> otherwise.
118
+ * @return a <code>boolean</code>.
119
+ */
120
+ isSessionScoped(): boolean;
121
+
122
+ /**
123
+ * Returns <code>true</code> if the current session is the owner of this
124
+ * lock, either because it is session-scoped and bound to this session or
125
+ * open-scoped and this session currently holds the token for this lock.
126
+ * Returns <code>false</code> otherwise.
127
+ * @return a <code>boolean</code>.
128
+ * @since JCR 2.0
129
+ */
130
+ isLockOwningSession(): boolean;
131
+
132
+ /**
133
+ * If this lock's time-to-live is governed by a timer, this method resets
134
+ * that timer so that the lock does not timeout and expire. If this lock's
135
+ * time-to-live is not governed by a timer, then this method has no effect.
136
+ * @throws LockException if this <code>Session</code> does not hold the correct lock token for this lock.
137
+ * @throws RepositoryException if another error occurs.
138
+ */
139
+ refresh(): void;
140
+ }
141
+
142
+ export default Lock;
@@ -0,0 +1,217 @@
1
+ import Lock from "../Lock";
2
+
3
+ /**
4
+ * This interface encapsulates methods for the management of locks.
5
+ *
6
+ * <p><strong>Sitevision note:</strong> Unsupported operation</p>Adds the specified lock token to the current <code>Session</code>.
7
+ * Holding a lock token makes the current <code>Session</code> the owner of
8
+ * the lock specified by that particular lock token.Returns the <code>Lock</code> object that applies to the node at the
9
+ * specified <code>absPath</code>. This may be either a lock on that node
10
+ * itself or a deep lock on a node above that node.
11
+ * <p>Returns an array containing all lock tokens currently held by the current
12
+ * <code>Session</code>. Note that any such tokens will represent
13
+ * open-scoped locks, since session-scoped locks do not have tokens.Returns <code>true</code> if the node at <code>absPath</code> holds a
14
+ * lock; otherwise returns <code>false</code>. To <i>hold</i> a lock means
15
+ * that this node has actually had a lock placed on it specifically, as
16
+ * opposed to just having a lock <i>apply</i> to it due to a deep lock held
17
+ * by a node above.<p> Places a lock on the node at <code>absPath</code>. If successful,
18
+ * the node is said to <i>hold</i> the lock. <p> If <code>isDeep</code> is
19
+ * <code>true</code> then the lock applies to the specified node and all its
20
+ * descendant nodes; if <code>false</code>, the lock applies only to the
21
+ * specified node. On a successful lock, the <code>jcr:lockIsDeep</code>
22
+ * property of the locked node is set to this value. <p> If
23
+ * <code>isSessionScoped</code> is <code>true</code> then this lock will
24
+ * expire upon the expiration of the current session (either through an
25
+ * automatic or explicit <code>Session.logout</code>); if false, this lock
26
+ * does not expire until it is explicitly unlocked, it times out, or it is
27
+ * automatically unlocked due to a implementation-specific limitation. <p>
28
+ * The timeout parameter specifies the number of seconds until the lock
29
+ * times out (if it is not refreshed with <code>Lock.refresh</code> in the
30
+ * meantime). An implementation may use this information as a hint or ignore
31
+ * it altogether. Clients can discover the actual timeout by inspecting the
32
+ * returned <code>Lock</code> object. <p> The <code>ownerInfo</code>
33
+ * parameter can be used to pass a string holding owner information relevant
34
+ * to the client. An implementation may either use or ignore this parameter.
35
+ * If it uses the parameter it must set the <code>jcr:lockOwner</code>
36
+ * property of the locked node to this value and return this value on
37
+ * <code>Lock.getLockOwner</code>. If it ignores this parameter the
38
+ * <code>jcr:lockOwner</code> property (and the value returned by
39
+ * <code>Lock.getLockOwner</code>) is set to either the value returned by
40
+ * <code>Session.getUserID</code> of the owning session or an
41
+ * implementation-specific string identifying the owner. <p> The method
42
+ * returns a <code>Lock</code> object representing the new lock. If the lock
43
+ * is open-scoped the returned lock will include a lock token. The lock
44
+ * token is also automatically added to the set of lock tokens held by the
45
+ * current session. <p> The addition or change of the properties
46
+ * <code>jcr:lockIsDeep</code> and <code>jcr:lockOwner</code> are persisted
47
+ * immediately; there is no need to call <code>save</code>. <p> It is
48
+ * possible to lock a node even if it is checked-in.Returns <code>true</code> if the node at <code>absPath</code> is locked
49
+ * either as a result of a lock held by that node or by a deep lock on a
50
+ * node above that node; otherwise returns <code>false</code>.Removes the specified lock token from this <code>Session</code>.Removes the lock on the node at <code>absPath</code>. Also removes the
51
+ * properties <code>jcr:lockOwner</code> and <code>jcr:lockIsDeep</code>
52
+ * from that node. As well, the corresponding lock token is removed from the
53
+ * set of lock tokens held by the current <code>Session</code>.
54
+ * <p>
55
+ * If the node does not currently hold a lock or holds a lock for which this
56
+ * <code>Session</code> is not the owner and is not a "lock-superuser", then
57
+ * a <code>LockException</code> is thrown. Note that the system may give
58
+ * permission to a non-owning session to unlock a lock. Typically, such
59
+ * "lock-superuser" capability is intended to facilitate administrational
60
+ * clean-up of orphaned open-scoped locks.
61
+ * <p>
62
+ * Note that it is possible to unlock a node even if it is checked-in (the
63
+ * lock-related properties will be changed despite the checked-in status).
64
+ * <p>
65
+ * If the current session does not have sufficient privileges to remove the
66
+ * lock, an <code>AccessDeniedException</code> is thrown.
67
+ * @since Sitevision 3.5
68
+ * @since JCR 2.0
69
+ */
70
+ interface LockManager {
71
+ /**
72
+ * Adds the specified lock token to the current <code>Session</code>.
73
+ * Holding a lock token makes the current <code>Session</code> the owner of
74
+ * the lock specified by that particular lock token.
75
+ * @param lockToken a lock token (a string).
76
+ * @throws LockException if the specified lock token is already held by another <code>Session</code> and the implementation does not support simultaneous ownership of open-scoped locks.
77
+ * @throws RepositoryException if another error occurs.
78
+ */
79
+ addLockToken(lockToken: string): void;
80
+
81
+ /**
82
+ * Returns the <code>Lock</code> object that applies to the node at the
83
+ * specified <code>absPath</code>. This may be either a lock on that node
84
+ * itself or a deep lock on a node above that node.
85
+ * <p>
86
+ * @param absPath absolute path of node for which to obtain the lock
87
+ * @return The applicable <code>Lock</code> object.
88
+ * @throws LockException if no lock applies to this node.
89
+ * @throws AccessDeniedException if the current session does not have sufficent access to get the lock.
90
+ * @throws PathNotFoundException if no node is found at <code>absPath</code>
91
+ * @throws RepositoryException if another error occurs.
92
+ */
93
+ getLock(absPath: string): Lock;
94
+
95
+ /**
96
+ * Returns an array containing all lock tokens currently held by the current
97
+ * <code>Session</code>. Note that any such tokens will represent
98
+ * open-scoped locks, since session-scoped locks do not have tokens.
99
+ * @return an array of lock tokens (strings)
100
+ * @throws RepositoryException if an error occurs.
101
+ */
102
+ getLockTokens(): string;
103
+
104
+ /**
105
+ * Returns <code>true</code> if the node at <code>absPath</code> holds a
106
+ * lock; otherwise returns <code>false</code>. To <i>hold</i> a lock means
107
+ * that this node has actually had a lock placed on it specifically, as
108
+ * opposed to just having a lock <i>apply</i> to it due to a deep lock held
109
+ * by a node above.
110
+ * @param absPath absolute path of node
111
+ * @return a <code>boolean</code>.
112
+ * @throws PathNotFoundException if no node is found at <code>absPath</code>
113
+ * @throws RepositoryException if an error occurs.
114
+ */
115
+ holdsLock(absPath: string): boolean;
116
+
117
+ /**
118
+ * <p> Places a lock on the node at <code>absPath</code>. If successful,
119
+ * the node is said to <i>hold</i> the lock. <p> If <code>isDeep</code> is
120
+ * <code>true</code> then the lock applies to the specified node and all its
121
+ * descendant nodes; if <code>false</code>, the lock applies only to the
122
+ * specified node. On a successful lock, the <code>jcr:lockIsDeep</code>
123
+ * property of the locked node is set to this value. <p> If
124
+ * <code>isSessionScoped</code> is <code>true</code> then this lock will
125
+ * expire upon the expiration of the current session (either through an
126
+ * automatic or explicit <code>Session.logout</code>); if false, this lock
127
+ * does not expire until it is explicitly unlocked, it times out, or it is
128
+ * automatically unlocked due to a implementation-specific limitation. <p>
129
+ * The timeout parameter specifies the number of seconds until the lock
130
+ * times out (if it is not refreshed with <code>Lock.refresh</code> in the
131
+ * meantime). An implementation may use this information as a hint or ignore
132
+ * it altogether. Clients can discover the actual timeout by inspecting the
133
+ * returned <code>Lock</code> object. <p> The <code>ownerInfo</code>
134
+ * parameter can be used to pass a string holding owner information relevant
135
+ * to the client. An implementation may either use or ignore this parameter.
136
+ * If it uses the parameter it must set the <code>jcr:lockOwner</code>
137
+ * property of the locked node to this value and return this value on
138
+ * <code>Lock.getLockOwner</code>. If it ignores this parameter the
139
+ * <code>jcr:lockOwner</code> property (and the value returned by
140
+ * <code>Lock.getLockOwner</code>) is set to either the value returned by
141
+ * <code>Session.getUserID</code> of the owning session or an
142
+ * implementation-specific string identifying the owner. <p> The method
143
+ * returns a <code>Lock</code> object representing the new lock. If the lock
144
+ * is open-scoped the returned lock will include a lock token. The lock
145
+ * token is also automatically added to the set of lock tokens held by the
146
+ * current session. <p> The addition or change of the properties
147
+ * <code>jcr:lockIsDeep</code> and <code>jcr:lockOwner</code> are persisted
148
+ * immediately; there is no need to call <code>save</code>. <p> It is
149
+ * possible to lock a node even if it is checked-in.
150
+ * @param absPath absolute path of node to be locked
151
+ * @param isDeep if <code>true</code> this lock will apply to this node and all its descendants; if <code>false</code>, it applies only to this node.
152
+ * @param isSessionScoped if <code>true</code>, this lock expires with the current session; if <code>false</code> it expires when explicitly or automatically unlocked for some other reason.
153
+ * @param timeoutHint desired lock timeout in seconds (servers are free to ignore this value); specify {@link Long#MAX_VALUE} for no timeout.
154
+ * @param ownerInfo a string containing owner information supplied by the client; servers are free to ignore this value.
155
+ * @return A <code>Lock</code> object containing a lock token.
156
+ * @throws LockException if this node is not <code>mix:lockable</code> or this node is already locked or <code>isDeep</code> is <code>true</code> and a descendant node of this node already holds a lock.
157
+ * @throws AccessDeniedException if this session does not have sufficent access to lock this node.
158
+ * @throws InvalidItemStateException if this node has pending unsaved changes.
159
+ * @throws PathNotFoundException if no node is found at <code>absPath</code>
160
+ * @throws RepositoryException if another error occurs.
161
+ */
162
+ lock(
163
+ absPath: string,
164
+ isDeep: boolean,
165
+ isSessionScoped: boolean,
166
+ timeoutHint: number,
167
+ ownerInfo: string
168
+ ): Lock;
169
+
170
+ /**
171
+ * Returns <code>true</code> if the node at <code>absPath</code> is locked
172
+ * either as a result of a lock held by that node or by a deep lock on a
173
+ * node above that node; otherwise returns <code>false</code>.
174
+ * @param absPath absolute path of node
175
+ * @return a <code>boolean</code>.
176
+ * @throws PathNotFoundException if no node is found at <code>absPath</code>
177
+ * @throws RepositoryException if an error occurs.
178
+ */
179
+ isLocked(absPath: string): boolean;
180
+
181
+ /**
182
+ * Removes the specified lock token from this <code>Session</code>.
183
+ * @param lockToken a lock token (a string)
184
+ * @throws LockException if the current <code>Session</code> does not hold the specified lock token.
185
+ * @throws RepositoryException if another error occurs.
186
+ */
187
+ removeLockToken(lockToken: string): void;
188
+
189
+ /**
190
+ * Removes the lock on the node at <code>absPath</code>. Also removes the
191
+ * properties <code>jcr:lockOwner</code> and <code>jcr:lockIsDeep</code>
192
+ * from that node. As well, the corresponding lock token is removed from the
193
+ * set of lock tokens held by the current <code>Session</code>.
194
+ * <p>
195
+ * If the node does not currently hold a lock or holds a lock for which this
196
+ * <code>Session</code> is not the owner and is not a "lock-superuser", then
197
+ * a <code>LockException</code> is thrown. Note that the system may give
198
+ * permission to a non-owning session to unlock a lock. Typically, such
199
+ * "lock-superuser" capability is intended to facilitate administrational
200
+ * clean-up of orphaned open-scoped locks.
201
+ * <p>
202
+ * Note that it is possible to unlock a node even if it is checked-in (the
203
+ * lock-related properties will be changed despite the checked-in status).
204
+ * <p>
205
+ * If the current session does not have sufficient privileges to remove the
206
+ * lock, an <code>AccessDeniedException</code> is thrown.
207
+ * @param absPath absolute path of node to be unlocked
208
+ * @throws LockException if this node does not currently hold a lock or holds a lock for which this Session does not have the correct lock token.
209
+ * @throws AccessDeniedException if the current session does not have permission to unlock this node.
210
+ * @throws InvalidItemStateException if this node has pending unsaved changes.
211
+ * @throws PathNotFoundException if no node is found at <code>absPath</code>
212
+ * @throws RepositoryException if another error occurs.
213
+ */
214
+ unlock(absPath: string): void;
215
+ }
216
+
217
+ export default LockManager;
@@ -0,0 +1,219 @@
1
+ import NodeType from "../NodeType";
2
+
3
+ /**
4
+ * Superclass of {@link NodeDefinition} and {@link PropertyDefinition}.Gets the node type that contains the declaration of <i>this</i>
5
+ * <code>ItemDefinition</code>.
6
+ * <p>
7
+ * In implementations that support node type registration an
8
+ * <code>ItemDefinition</code> object may be acquired (in the form of a
9
+ * <code>NodeDefinitionTemplate</code> or <code>PropertyDefinitionTemplate</code>)
10
+ * that is not attached to a live <code>NodeType</code>. In such cases this
11
+ * method returns <code>null</code>.
12
+ *
13
+ * <p><strong>Sitevision note:</strong> Unsupported operation</p>Gets the name of the child item. If <code>"*"</code>, this
14
+ * <code>ItemDefinition</code> defines a residual set of child items. That
15
+ * is, it defines the characteristics of all those child items with names
16
+ * apart from the names explicitly used in other child item definitions.
17
+ * <p>
18
+ * In implementations that support node type registration, if this
19
+ * <code>ItemDefinition</code> object is actually a newly-created empty
20
+ * <code>PropertyDefinitionTemplate</code> or <code>NodeDefinitionTemplate</code>,
21
+ * then this method will return <code>null</code>.
22
+ *
23
+ * <p><strong>Sitevision note:</strong> Unsupported operation</p>Reports whether the item is to be automatically created when its parent
24
+ * node is created. If <code>true</code>, then this <code>ItemDefinition</code>
25
+ * will necessarily not be a residual set definition but will specify an
26
+ * actual item name (in other words getName() will not return "*").
27
+ * <p>
28
+ * An autocreated non-protected item must be created immediately when its
29
+ * parent node is created in the transient session space. Creation of
30
+ * autocreated non-protected items is never delayed until
31
+ * <code>save</code>.
32
+ * </p>
33
+ * <p>
34
+ * An autocreated protected item should be created immediately when its
35
+ * parent node is created in the transient session space. Creation of
36
+ * autocreated protected items should not be delayed until
37
+ * <code>save</code>, though doing so does not violate JCR compliance.
38
+ * <p>
39
+ * In implementations that support node type registration, if this
40
+ * <code>ItemDefinition</code> object is actually a newly-created empty
41
+ * <code>PropertyDefinitionTemplate</code> or <code>NodeDefinitionTemplate</code>,
42
+ * then this method will return <code>false</code>.
43
+ *
44
+ * <p><strong>Sitevision note:</strong> Unsupported operation</p>Reports whether the item is mandatory. A mandatory item is one that, if
45
+ * its parent node exists, must also exist.
46
+ * <p>
47
+ * This means that a mandatory single-value property must have a value
48
+ * (since there is no such thing a <code>null</code> value). In the case of
49
+ * multi-value properties this means that the property must exist, though it
50
+ * can have zero or more values.
51
+ * <p>
52
+ * An attempt to save a node that has a mandatory child item without first
53
+ * creating that child item will throw a <code>ConstraintViolationException</code>
54
+ * on <code>save</code>.
55
+ * <p>
56
+ * In implementations that support node type registration, if this
57
+ * <code>ItemDefinition</code> object is actually a newly-created empty
58
+ * <code>PropertyDefinitionTemplate</code> or <code>NodeDefinitionTemplate</code>,
59
+ * then this method will return <code>false</code>.
60
+ * <p>
61
+ * An item definition cannot be both residual and mandatory.
62
+ *
63
+ * <p><strong>Sitevision note:</strong> Unsupported operation</p>Gets the <code>OnParentVersion </code> status of the child item. This
64
+ * governs what occurs (in implementations that support versioning) when the
65
+ * parent node of this item is checked-in. One of: <ul>
66
+ * <li><code>OnParentVersionAction.COPY</code></li> <li><code>OnParentVersionAction.VERSION</code></li>
67
+ * <li><code>OnParentVersionAction.IGNORE</code></li>
68
+ * <li><code>OnParentVersionAction.INITIALIZE</code></li>
69
+ * <li><code>OnParentVersionAction.COMPUTE</code></li>
70
+ * <li><code>OnParentVersionAction.ABORT</code></li> </ul>
71
+ * <p>
72
+ * In implementations that support node type registration, if this
73
+ * <code>ItemDefinition</code> object is actually a newly-created empty
74
+ * <code>PropertyDefinitionTemplate</code> or <code>NodeDefinitionTemplate</code>,
75
+ * then this method will return <code>OnParentVersionAction.COPY</code>.
76
+ *
77
+ * <p><strong>Sitevision note:</strong> Unsupported operation</p>Reports whether the child item is protected. In level 2 implementations,
78
+ * a protected item is one that cannot be removed (except by removing its
79
+ * parent) or modified through the the standard write methods of this API
80
+ * (that is, <code>Item.remove</code>, <code>Node.addNode</code>,
81
+ * <code>Node.setProperty</code> and <code>Property.setValue</code>).
82
+ * <p>
83
+ * A protected node may be removed or modified (in a level 2
84
+ * implementation), however, through some mechanism not defined by this
85
+ * specification or as a side-effect of operations other than the standard
86
+ * write methods of the API.
87
+ * <p>
88
+ * In implementations that support node type registration, if this
89
+ * <code>ItemDefinition</code> object is actually a newly-created empty
90
+ * <code>PropertyDefinitionTemplate</code> or <code>NodeDefinitionTemplate</code>,
91
+ * then this method will return <code>false</code>.
92
+
93
+ */
94
+ interface ItemDefinition {
95
+ /**
96
+ * Gets the node type that contains the declaration of <i>this</i>
97
+ * <code>ItemDefinition</code>.
98
+ * <p>
99
+ * In implementations that support node type registration an
100
+ * <code>ItemDefinition</code> object may be acquired (in the form of a
101
+ * <code>NodeDefinitionTemplate</code> or <code>PropertyDefinitionTemplate</code>)
102
+ * that is not attached to a live <code>NodeType</code>. In such cases this
103
+ * method returns <code>null</code>.
104
+ *
105
+ * <p><strong>Sitevision note:</strong> Unsupported operation</p>
106
+ * @return a <code>NodeType</code> object.
107
+ */
108
+ getDeclaringNodeType(): NodeType;
109
+
110
+ /**
111
+ * Gets the name of the child item. If <code>"*"</code>, this
112
+ * <code>ItemDefinition</code> defines a residual set of child items. That
113
+ * is, it defines the characteristics of all those child items with names
114
+ * apart from the names explicitly used in other child item definitions.
115
+ * <p>
116
+ * In implementations that support node type registration, if this
117
+ * <code>ItemDefinition</code> object is actually a newly-created empty
118
+ * <code>PropertyDefinitionTemplate</code> or <code>NodeDefinitionTemplate</code>,
119
+ * then this method will return <code>null</code>.
120
+ *
121
+ * <p><strong>Sitevision note:</strong> Unsupported operation</p>
122
+ * @return a <code>String</code> denoting the name or <code>"*"</code>.
123
+ */
124
+ getName(): string;
125
+
126
+ /**
127
+ * Reports whether the item is to be automatically created when its parent
128
+ * node is created. If <code>true</code>, then this <code>ItemDefinition</code>
129
+ * will necessarily not be a residual set definition but will specify an
130
+ * actual item name (in other words getName() will not return "*").
131
+ * <p>
132
+ * An autocreated non-protected item must be created immediately when its
133
+ * parent node is created in the transient session space. Creation of
134
+ * autocreated non-protected items is never delayed until
135
+ * <code>save</code>.
136
+ * </p>
137
+ * <p>
138
+ * An autocreated protected item should be created immediately when its
139
+ * parent node is created in the transient session space. Creation of
140
+ * autocreated protected items should not be delayed until
141
+ * <code>save</code>, though doing so does not violate JCR compliance.
142
+ * <p>
143
+ * In implementations that support node type registration, if this
144
+ * <code>ItemDefinition</code> object is actually a newly-created empty
145
+ * <code>PropertyDefinitionTemplate</code> or <code>NodeDefinitionTemplate</code>,
146
+ * then this method will return <code>false</code>.
147
+ *
148
+ * <p><strong>Sitevision note:</strong> Unsupported operation</p>
149
+ * @return a <code>boolean</code>.
150
+ */
151
+ isAutoCreated(): boolean;
152
+
153
+ /**
154
+ * Reports whether the item is mandatory. A mandatory item is one that, if
155
+ * its parent node exists, must also exist.
156
+ * <p>
157
+ * This means that a mandatory single-value property must have a value
158
+ * (since there is no such thing a <code>null</code> value). In the case of
159
+ * multi-value properties this means that the property must exist, though it
160
+ * can have zero or more values.
161
+ * <p>
162
+ * An attempt to save a node that has a mandatory child item without first
163
+ * creating that child item will throw a <code>ConstraintViolationException</code>
164
+ * on <code>save</code>.
165
+ * <p>
166
+ * In implementations that support node type registration, if this
167
+ * <code>ItemDefinition</code> object is actually a newly-created empty
168
+ * <code>PropertyDefinitionTemplate</code> or <code>NodeDefinitionTemplate</code>,
169
+ * then this method will return <code>false</code>.
170
+ * <p>
171
+ * An item definition cannot be both residual and mandatory.
172
+ *
173
+ * <p><strong>Sitevision note:</strong> Unsupported operation</p>
174
+ * @return a <code>boolean</code>
175
+ */
176
+ isMandatory(): boolean;
177
+
178
+ /**
179
+ * Gets the <code>OnParentVersion </code> status of the child item. This
180
+ * governs what occurs (in implementations that support versioning) when the
181
+ * parent node of this item is checked-in. One of: <ul>
182
+ * <li><code>OnParentVersionAction.COPY</code></li> <li><code>OnParentVersionAction.VERSION</code></li>
183
+ * <li><code>OnParentVersionAction.IGNORE</code></li>
184
+ * <li><code>OnParentVersionAction.INITIALIZE</code></li>
185
+ * <li><code>OnParentVersionAction.COMPUTE</code></li>
186
+ * <li><code>OnParentVersionAction.ABORT</code></li> </ul>
187
+ * <p>
188
+ * In implementations that support node type registration, if this
189
+ * <code>ItemDefinition</code> object is actually a newly-created empty
190
+ * <code>PropertyDefinitionTemplate</code> or <code>NodeDefinitionTemplate</code>,
191
+ * then this method will return <code>OnParentVersionAction.COPY</code>.
192
+ *
193
+ * <p><strong>Sitevision note:</strong> Unsupported operation</p>
194
+ * @return a <code>int</code> constant member of {@link javax.jcr.version.OnParentVersionAction}.
195
+ */
196
+ getOnParentVersion(): number;
197
+
198
+ /**
199
+ * Reports whether the child item is protected. In level 2 implementations,
200
+ * a protected item is one that cannot be removed (except by removing its
201
+ * parent) or modified through the the standard write methods of this API
202
+ * (that is, <code>Item.remove</code>, <code>Node.addNode</code>,
203
+ * <code>Node.setProperty</code> and <code>Property.setValue</code>).
204
+ * <p>
205
+ * A protected node may be removed or modified (in a level 2
206
+ * implementation), however, through some mechanism not defined by this
207
+ * specification or as a side-effect of operations other than the standard
208
+ * write methods of the API.
209
+ * <p>
210
+ * In implementations that support node type registration, if this
211
+ * <code>ItemDefinition</code> object is actually a newly-created empty
212
+ * <code>PropertyDefinitionTemplate</code> or <code>NodeDefinitionTemplate</code>,
213
+ * then this method will return <code>false</code>.
214
+ * @return a <code>boolean</code>.
215
+ */
216
+ isProtected(): boolean;
217
+ }
218
+
219
+ export default ItemDefinition;