@sitevision/api 1.0.20 → 1.1.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (307) hide show
  1. package/hidden/javax/jcr/Binary/index.d.ts +86 -0
  2. package/hidden/javax/jcr/Credentials/index.d.ts +11 -0
  3. package/hidden/javax/jcr/ImportUUIDBehavior/index.d.ts +11 -0
  4. package/hidden/javax/jcr/Item/index.d.ts +353 -0
  5. package/hidden/javax/jcr/ItemVisitor/index.d.ts +41 -0
  6. package/hidden/javax/jcr/NamespaceRegistry/index.d.ts +100 -0
  7. package/hidden/javax/jcr/Node/index.d.ts +2808 -0
  8. package/hidden/javax/jcr/NodeIterator/index.d.ts +18 -0
  9. package/hidden/javax/jcr/Property/index.d.ts +801 -0
  10. package/hidden/javax/jcr/PropertyIterator/index.d.ts +17 -0
  11. package/hidden/javax/jcr/RangeIterator/index.d.ts +75 -0
  12. package/hidden/javax/jcr/Repository/index.d.ts +318 -0
  13. package/hidden/javax/jcr/RepositoryFactory/index.d.ts +90 -0
  14. package/hidden/javax/jcr/Value/index.d.ts +190 -0
  15. package/hidden/javax/jcr/ValueFactory/index.d.ts +179 -0
  16. package/hidden/javax/jcr/Workspace/index.d.ts +1061 -0
  17. package/hidden/javax/jcr/lock/Lock/index.d.ts +142 -0
  18. package/hidden/javax/jcr/lock/LockManager/index.d.ts +217 -0
  19. package/hidden/javax/jcr/nodetype/ItemDefinition/index.d.ts +219 -0
  20. package/hidden/javax/jcr/nodetype/NodeDefinition/index.d.ts +158 -0
  21. package/hidden/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +74 -0
  22. package/hidden/javax/jcr/nodetype/NodeType/index.d.ts +349 -0
  23. package/hidden/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +248 -0
  24. package/hidden/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +16 -0
  25. package/hidden/javax/jcr/nodetype/NodeTypeManager/index.d.ts +218 -0
  26. package/hidden/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +98 -0
  27. package/hidden/javax/jcr/nodetype/PropertyDefinition/index.d.ts +536 -0
  28. package/hidden/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +97 -0
  29. package/hidden/javax/jcr/observation/Event/index.d.ts +133 -0
  30. package/hidden/javax/jcr/observation/EventIterator/index.d.ts +20 -0
  31. package/hidden/javax/jcr/observation/EventJournal/index.d.ts +22 -0
  32. package/hidden/javax/jcr/observation/EventListener/index.d.ts +23 -0
  33. package/hidden/javax/jcr/observation/EventListenerIterator/index.d.ts +20 -0
  34. package/hidden/javax/jcr/observation/ObservationManager/index.d.ts +227 -0
  35. package/hidden/javax/jcr/query/Query/index.d.ts +201 -0
  36. package/hidden/javax/jcr/query/QueryManager/index.d.ts +73 -0
  37. package/hidden/javax/jcr/query/QueryResult/index.d.ts +51 -0
  38. package/hidden/javax/jcr/query/Row/index.d.ts +159 -0
  39. package/hidden/javax/jcr/query/RowIterator/index.d.ts +20 -0
  40. package/hidden/javax/jcr/query/qom/And/index.d.ts +26 -0
  41. package/hidden/javax/jcr/query/qom/BindVariableValue/index.d.ts +15 -0
  42. package/hidden/javax/jcr/query/qom/ChildNode/index.d.ts +27 -0
  43. package/hidden/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +27 -0
  44. package/hidden/javax/jcr/query/qom/Column/index.d.ts +39 -0
  45. package/hidden/javax/jcr/query/qom/Comparison/index.d.ts +82 -0
  46. package/hidden/javax/jcr/query/qom/Constraint/index.d.ts +13 -0
  47. package/hidden/javax/jcr/query/qom/DescendantNode/index.d.ts +31 -0
  48. package/hidden/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +29 -0
  49. package/hidden/javax/jcr/query/qom/DynamicOperand/index.d.ts +9 -0
  50. package/hidden/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +41 -0
  51. package/hidden/javax/jcr/query/qom/FullTextSearch/index.d.ts +89 -0
  52. package/hidden/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +24 -0
  53. package/hidden/javax/jcr/query/qom/Join/index.d.ts +36 -0
  54. package/hidden/javax/jcr/query/qom/JoinCondition/index.d.ts +9 -0
  55. package/hidden/javax/jcr/query/qom/Length/index.d.ts +24 -0
  56. package/hidden/javax/jcr/query/qom/Literal/index.d.ts +18 -0
  57. package/hidden/javax/jcr/query/qom/LowerCase/index.d.ts +26 -0
  58. package/hidden/javax/jcr/query/qom/NodeLocalName/index.d.ts +16 -0
  59. package/hidden/javax/jcr/query/qom/NodeName/index.d.ts +16 -0
  60. package/hidden/javax/jcr/query/qom/Not/index.d.ts +20 -0
  61. package/hidden/javax/jcr/query/qom/Operand/index.d.ts +9 -0
  62. package/hidden/javax/jcr/query/qom/Or/index.d.ts +30 -0
  63. package/hidden/javax/jcr/query/qom/Ordering/index.d.ts +53 -0
  64. package/hidden/javax/jcr/query/qom/PropertyExistence/index.d.ts +24 -0
  65. package/hidden/javax/jcr/query/qom/PropertyValue/index.d.ts +25 -0
  66. package/hidden/javax/jcr/query/qom/QueryObjectModel/index.d.ts +64 -0
  67. package/hidden/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +9 -0
  68. package/hidden/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +638 -0
  69. package/hidden/javax/jcr/query/qom/SameNode/index.d.ts +27 -0
  70. package/hidden/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +36 -0
  71. package/hidden/javax/jcr/query/qom/Selector/index.d.ts +35 -0
  72. package/hidden/javax/jcr/query/qom/Source/index.d.ts +9 -0
  73. package/hidden/javax/jcr/query/qom/StaticOperand/index.d.ts +10 -0
  74. package/hidden/javax/jcr/query/qom/UpperCase/index.d.ts +26 -0
  75. package/hidden/javax/jcr/retention/Hold/index.d.ts +34 -0
  76. package/hidden/javax/jcr/retention/RetentionManager/index.d.ts +189 -0
  77. package/hidden/javax/jcr/retention/RetentionPolicy/index.d.ts +21 -0
  78. package/hidden/javax/jcr/security/AccessControlEntry/index.d.ts +24 -0
  79. package/hidden/javax/jcr/security/AccessControlList/index.d.ts +91 -0
  80. package/hidden/javax/jcr/security/AccessControlManager/index.d.ts +297 -0
  81. package/hidden/javax/jcr/security/AccessControlPolicy/index.d.ts +11 -0
  82. package/hidden/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +20 -0
  83. package/hidden/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +22 -0
  84. package/hidden/javax/jcr/security/Privilege/index.d.ts +117 -0
  85. package/hidden/javax/jcr/version/Version/index.d.ts +121 -0
  86. package/hidden/javax/jcr/version/VersionHistory/index.d.ts +307 -0
  87. package/hidden/javax/jcr/version/VersionIterator/index.d.ts +20 -0
  88. package/hidden/javax/jcr/version/VersionManager/index.d.ts +1082 -0
  89. package/hidden/senselogic/sitevision/api/base/Builder/index.d.ts +102 -0
  90. package/hidden/senselogic/sitevision/api/base/Filter/index.d.ts +25 -0
  91. package/hidden/senselogic/sitevision/api/base/FilterSplit/index.d.ts +50 -0
  92. package/hidden/senselogic/sitevision/api/base/Loadable/index.d.ts +15 -0
  93. package/hidden/senselogic/sitevision/api/base/Resolver/index.d.ts +31 -0
  94. package/hidden/senselogic/sitevision/api/base/Wrapper/index.d.ts +24 -0
  95. package/hidden/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +417 -0
  96. package/hidden/senselogic/sitevision/api/format/NumericFormatter/index.d.ts +80 -0
  97. package/hidden/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +100 -0
  98. package/hidden/senselogic/sitevision/api/i18n/Currency/index.d.ts +120 -0
  99. package/hidden/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +45 -0
  100. package/hidden/senselogic/sitevision/api/link/CustomLinkRenderData/index.d.ts +65 -0
  101. package/hidden/senselogic/sitevision/api/mail/Mail/index.d.ts +32 -0
  102. package/hidden/senselogic/sitevision/api/message/MessageTextLinker/index.d.ts +15 -0
  103. package/hidden/senselogic/sitevision/api/metadata/value/LinkValue/index.d.ts +23 -0
  104. package/hidden/senselogic/sitevision/api/metadata/value/RelatedValue/index.d.ts +23 -0
  105. package/hidden/senselogic/sitevision/api/property/VersionedPropertyUtil/index.d.ts +642 -0
  106. package/hidden/senselogic/sitevision/api/render/BuddyIconRenderer/BuddyIconInfo/index.d.ts +51 -0
  107. package/hidden/senselogic/sitevision/api/render/ImageScaler/index.d.ts +58 -0
  108. package/hidden/senselogic/sitevision/api/render/TextModuleRenderer/index.d.ts +301 -0
  109. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ArticleUtilConstants/index.d.ts +85 -0
  110. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ExceptionSuppressingProxyConstants/index.d.ts +31 -0
  111. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/IndexingUtilConstants/index.d.ts +31 -0
  112. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/LinkPageUtilConstants/index.d.ts +67 -0
  113. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MathInstanceConstants/index.d.ts +25 -0
  114. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MimeTypeUtilConstants/index.d.ts +19 -0
  115. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/NodeTypeUtilConstants/index.d.ts +1243 -0
  116. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/OutputUtilConstants/index.d.ts +31 -0
  117. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PageUtilConstants/index.d.ts +91 -0
  118. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletContextUtilConstants/index.d.ts +27 -0
  119. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletUtilConstants/index.d.ts +19 -0
  120. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/QueryStringUtilConstants/index.d.ts +19 -0
  121. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchHitConstants/index.d.ts +25 -0
  122. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchResultConstants/index.d.ts +37 -0
  123. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/VersionUtilConstants/index.d.ts +25 -0
  124. package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/index.d.ts +8 -0
  125. package/hidden/senselogic/sitevision/api/render/velocity/VelocityContext/index.d.ts +50 -0
  126. package/hidden/senselogic/sitevision/api/render/velocity/VelocityEvaluator/index.d.ts +89 -0
  127. package/hidden/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +119 -0
  128. package/hidden/senselogic/sitevision/api/script/app/RestAppInvoker/index.d.ts +272 -0
  129. package/hidden/senselogic/sitevision/api/script/factory/TypedArgument/index.d.ts +43 -0
  130. package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingCollection/index.d.ts +94 -0
  131. package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingIterator/index.d.ts +117 -0
  132. package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +90 -0
  133. package/hidden/senselogic/sitevision/api/search/SearchFieldUtil/index.d.ts +89 -0
  134. package/hidden/senselogic/sitevision/api/search/SearchHighlighter/index.d.ts +45 -0
  135. package/hidden/senselogic/sitevision/api/search/SearchHit/index.d.ts +1176 -0
  136. package/hidden/senselogic/sitevision/api/search/SearchResult/index.d.ts +414 -0
  137. package/hidden/senselogic/sitevision/api/search/facet/SearchFacetField/index.d.ts +27 -0
  138. package/hidden/senselogic/sitevision/api/search/facet/SearchFacetValue/index.d.ts +61 -0
  139. package/hidden/senselogic/sitevision/api/search/searcher/Searcher/index.d.ts +277 -0
  140. package/hidden/senselogic/sitevision/api/search/searcher/component/Filter/index.d.ts +25 -0
  141. package/hidden/senselogic/sitevision/api/search/searcher/component/Highlight/index.d.ts +29 -0
  142. package/hidden/senselogic/sitevision/api/search/searcher/component/Monitor/index.d.ts +25 -0
  143. package/hidden/senselogic/sitevision/api/search/searcher/component/Parser/index.d.ts +35 -0
  144. package/hidden/senselogic/sitevision/api/search/searcher/component/Sort/index.d.ts +25 -0
  145. package/hidden/senselogic/sitevision/api/search/searcher/component/SpellCheck/index.d.ts +29 -0
  146. package/hidden/senselogic/sitevision/api/search/sort/CustomSort/index.d.ts +82 -0
  147. package/hidden/senselogic/sitevision/api/search/suggestion/SearchSuggestion/index.d.ts +21 -0
  148. package/hidden/senselogic/sitevision/api/security/DirectoryAttributes/index.d.ts +70 -0
  149. package/hidden/senselogic/sitevision/api/security/MessageDigester/index.d.ts +50 -0
  150. package/hidden/senselogic/sitevision/api/security/RoleAssignment/index.d.ts +72 -0
  151. package/hidden/senselogic/sitevision/api/security/RoleMatcher/index.d.ts +29 -0
  152. package/hidden/senselogic/sitevision/api/security/SecretStore/index.d.ts +55 -0
  153. package/hidden/senselogic/sitevision/api/security/UserUtil/index.d.ts +80 -0
  154. package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +36 -0
  155. package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilterChain/index.d.ts +32 -0
  156. package/hidden/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +599 -0
  157. package/hidden/senselogic/sitevision/api/webresource/LinkTarget/index.d.ts +20 -0
  158. package/hidden/senselogic/sitevision/api/xml/XmlElement/index.d.ts +55 -0
  159. package/hidden/senselogic/sitevision/api/xml/XmlElementHandler/index.d.ts +17 -0
  160. package/index.d.ts +103 -4
  161. package/package.json +2 -4
  162. package/server/AliasUtil/index.d.ts +25 -0
  163. package/server/AliasUtil/index.js +10 -0
  164. package/server/ArchiveUtil/index.d.ts +65 -11
  165. package/server/ArraysInstance/index.d.ts +1846 -0
  166. package/server/ArticleUtil/index.d.ts +381 -69
  167. package/server/AuthenticationUtil/index.d.ts +106 -0
  168. package/server/BookmarkUtil/index.d.ts +36 -28
  169. package/server/BuddyIconRenderer/index.d.ts +240 -0
  170. package/server/ClientUtil/index.d.ts +18 -4
  171. package/server/CollaborationFactory/index.d.ts +42 -25
  172. package/server/CollaborationGroupFolderUtil/index.d.ts +40 -29
  173. package/server/CollaborationGroupTemplateUtil/index.d.ts +71 -39
  174. package/server/CollaborationGroupUtil/index.d.ts +128 -55
  175. package/server/CollectionsInstance/index.d.ts +738 -0
  176. package/server/ColorUtil/index.d.ts +22 -17
  177. package/server/CompoundAndFilterBuilder/index.d.ts +60 -0
  178. package/server/CompoundComparatorBuilder/index.d.ts +63 -0
  179. package/server/CompoundOrFilterBuilder/index.d.ts +59 -0
  180. package/server/ContentNodeUtil/index.d.ts +76 -0
  181. package/server/CurrencyFactory/index.d.ts +135 -0
  182. package/server/DateUtil/index.d.ts +154 -77
  183. package/server/DecorationUtil/index.d.ts +23 -0
  184. package/server/DeviceUtil/index.d.ts +36 -0
  185. package/server/DirectoryUtil/index.d.ts +107 -47
  186. package/server/DocTypeUtil/index.d.ts +149 -0
  187. package/server/EndecUtil/index.d.ts +537 -91
  188. package/server/ExtendedDismaxParserBuilder/index.d.ts +311 -0
  189. package/server/FileIconRenderer/index.d.ts +346 -0
  190. package/server/FileUtil/index.d.ts +462 -0
  191. package/server/FilterBuilder/index.d.ts +120 -0
  192. package/server/FolderUtil/index.d.ts +161 -0
  193. package/server/FontUtil/index.d.ts +49 -0
  194. package/server/FormatterBuilderFactory/index.d.ts +129 -0
  195. package/server/HighlightBuilder/index.d.ts +194 -0
  196. package/server/IconUtil/index.d.ts +37 -0
  197. package/server/ImageLinkRenderer/index.d.ts +134 -0
  198. package/server/ImageRenderer/index.d.ts +613 -231
  199. package/server/ImageUtil/index.d.ts +430 -0
  200. package/server/IndexUtil/index.d.ts +71 -0
  201. package/server/IndexingUtil/index.d.ts +92 -0
  202. package/server/InstanceCreatorUtil/index.d.ts +661 -0
  203. package/server/InstanceTypeUtil/index.d.ts +202 -0
  204. package/server/JwtUtil/index.d.ts +217 -0
  205. package/server/LandingPageUtil/index.d.ts +67 -50
  206. package/server/LinkPageUtil/index.d.ts +468 -0
  207. package/server/LinkRenderer/index.d.ts +1157 -0
  208. package/server/LinkTargetBuilder/index.d.ts +146 -0
  209. package/server/LinkValueBuilder/index.d.ts +129 -52
  210. package/server/ListWrapper/index.d.ts +172 -0
  211. package/server/LocaleUtil/index.d.ts +695 -61
  212. package/server/LogUtil/index.d.ts +118 -77
  213. package/server/MailBuilder/index.d.ts +238 -0
  214. package/server/MailUtil/index.d.ts +98 -0
  215. package/server/MathInstance/index.d.ts +681 -0
  216. package/server/MessageDigesterFactory/index.d.ts +49 -0
  217. package/server/MetadataDefinitionUtil/index.d.ts +118 -0
  218. package/server/MetadataUtil/index.d.ts +524 -79
  219. package/server/MimeTypeUtil/index.d.ts +316 -0
  220. package/server/MonitorBuilder/index.d.ts +51 -0
  221. package/server/NodeComparatorUtil/index.d.ts +397 -0
  222. package/server/NodeFactoryUtil/index.d.ts +32 -0
  223. package/server/NodeFilterUtil/index.d.ts +924 -0
  224. package/server/NodeIteratorUtil/index.d.ts +322 -72
  225. package/server/NodeResolverUtil/index.d.ts +767 -0
  226. package/server/NodeTreeUtil/index.d.ts +339 -63
  227. package/server/NodeTypeUtil/index.d.ts +391 -197
  228. package/server/OfflineVersionPropertyUtil/index.d.ts +30 -0
  229. package/server/OnlineVersionPropertyUtil/index.d.ts +30 -0
  230. package/server/OutputUtil/index.d.ts +641 -0
  231. package/server/PageUtil/index.d.ts +330 -0
  232. package/server/PermissionUtil/index.d.ts +650 -0
  233. package/server/PortletContextUtil/index.d.ts +118 -37
  234. package/server/PortletContextUtil/index.js +1 -0
  235. package/server/PortletUtil/index.d.ts +40 -0
  236. package/server/PrincipalUtil/index.d.ts +51 -0
  237. package/server/Properties/index.d.ts +185 -38
  238. package/server/PropertyUtil/index.d.ts +2330 -406
  239. package/server/PublishingUtil/index.d.ts +385 -49
  240. package/server/QueryStringUtil/index.d.ts +737 -0
  241. package/server/RedirectUtil/index.d.ts +98 -0
  242. package/server/RelatedValueBuilder/index.d.ts +81 -39
  243. package/server/Requester/index.d.ts +441 -65
  244. package/server/ResourceLocatorUtil/index.d.ts +483 -227
  245. package/server/RestApi/index.d.ts +208 -23
  246. package/server/RestAppInvokerFactory/index.d.ts +73 -0
  247. package/server/RoleAssignmentBuilder/index.d.ts +60 -0
  248. package/server/RoleMatcherBuilder/index.d.ts +59 -0
  249. package/server/RoleUtil/index.d.ts +57 -0
  250. package/server/ScriptUtil/index.d.ts +625 -143
  251. package/server/SearchFactory/index.d.ts +133 -0
  252. package/server/SearchUtil/index.d.ts +164 -0
  253. package/server/SearcherBuilder/index.d.ts +260 -0
  254. package/server/Session/index.d.ts +1758 -0
  255. package/server/SimpleUserUtil/index.d.ts +39 -30
  256. package/server/SiteCookieUtil/index.d.ts +78 -53
  257. package/server/SortBuilder/index.d.ts +111 -0
  258. package/server/SpellCheckBuilder/index.d.ts +68 -0
  259. package/server/StandardParserBuilder/index.d.ts +112 -0
  260. package/server/StructureUtil/index.d.ts +167 -0
  261. package/server/SubscriberUtil/index.d.ts +122 -0
  262. package/server/SubscriptionUtil/index.d.ts +197 -0
  263. package/server/SystemUserUtil/index.d.ts +201 -98
  264. package/server/TagUtil/index.d.ts +193 -0
  265. package/server/TemplateUtil/index.d.ts +217 -0
  266. package/server/TemporaryFileNodeBuilder/index.d.ts +63 -0
  267. package/server/TemporaryNodeBuilder/index.d.ts +241 -0
  268. package/server/TextModuleRendererBuilder/index.d.ts +68 -0
  269. package/server/TimestampUtil/index.d.ts +98 -82
  270. package/server/TranslationUtil/index.d.ts +175 -0
  271. package/server/TrashcanUtil/index.d.ts +193 -24
  272. package/server/UserDataUtil/index.d.ts +167 -85
  273. package/server/UserFactory/index.d.ts +45 -30
  274. package/server/UserFieldRenderer/index.d.ts +258 -0
  275. package/server/UserIdentityUtil/index.d.ts +61 -29
  276. package/server/UserUtil/index.d.ts +69 -28
  277. package/server/Utils/index.d.ts +870 -12
  278. package/server/VelocityRenderer/index.d.ts +248 -0
  279. package/server/VersionUtil/index.d.ts +15 -12
  280. package/server/WebContentUtil/index.d.ts +644 -0
  281. package/server/WebResourceFactory/index.d.ts +66 -0
  282. package/server/XSLTUtil/index.d.ts +49 -10
  283. package/server/XmlParserUtil/index.d.ts +82 -81
  284. package/builtins/Binary/index.d.ts +0 -3
  285. package/builtins/Calendar/index.d.ts +0 -3
  286. package/builtins/Collection/index.d.ts +0 -3
  287. package/builtins/Date/index.d.ts +0 -3
  288. package/builtins/InputStream/index.d.ts +0 -3
  289. package/builtins/Instant/index.d.ts +0 -3
  290. package/builtins/List/index.d.ts +0 -3
  291. package/builtins/LocalDateTime/index.d.ts +0 -3
  292. package/builtins/Locale/index.d.ts +0 -3
  293. package/builtins/Node/index.d.ts +0 -3
  294. package/builtins/NodeIterator/index.d.ts +0 -27
  295. package/builtins/Property/index.d.ts +0 -3
  296. package/builtins/Serializable/index.d.ts +0 -3
  297. package/builtins/Set/index.d.ts +0 -3
  298. package/builtins/Throwable/index.d.ts +0 -3
  299. package/builtins/byte/index.d.ts +0 -3
  300. package/server/CollaborationGroupState/index.d.ts +0 -6
  301. package/server/CollaborationGroupState/index.js +0 -1
  302. package/server/CollaborationGroupType/index.d.ts +0 -7
  303. package/server/CollaborationGroupType/index.js +0 -1
  304. package/server/CollaborationGroupWrapper/index.d.ts +0 -136
  305. package/server/CollaborationGroupWrapper/index.js +0 -1
  306. package/server/DimensionMode/index.d.ts +0 -7
  307. package/server/DimensionMode/index.js +0 -1
@@ -1,110 +1,555 @@
1
- import Property from '../../builtins/Property';
2
- import List from '../../builtins/List';
3
- import { LinkValueBuilder } from '../LinkValueBuilder';
4
- import { RelatedValueBuilder } from '../RelatedValueBuilder';
1
+ import Node from "../../hidden/javax/jcr/Node";
2
+ import Property from "../../hidden/javax/jcr/Property";
3
+ import LinkValueBuilder from "../LinkValueBuilder";
4
+ import RelatedValueBuilder from "../RelatedValueBuilder";
5
5
 
6
6
  /**
7
- * Returns a Node for a link metadata on a specified Node.
8
- * @returns {Node} a temporary Node representing the link metadata value, or null if no link could be found.
9
- * @param {Node} aNode - the Node that contains the link metadata value. May not be null
10
- * @param {string} aPropertyName - the name of the link metadata property that should be queried. May not be null
11
- */
12
- export function getLinkMetadataPropertyValue(aNode: Node, aPropertyName: string): Node;
7
+ * <p>
8
+ * Set a new value to a metadata <code>Property</code> on a <code>Node</code>. The node must
9
+ * be of such a type where it is possible to define a metadata value (e.g. page, article, template, file, image)
10
+ * or an <code>IllegalArgumentException</code> will be thrown.
11
+ * </p>
12
+ * <p>
13
+ * <strong>For comprehensive information about supported metadata</strong> see alternate method
14
+ * {@link #setMetadataPropertyValue(javax.jcr.Node, String, Object)}.
15
+ * </p>
16
+ *
17
+ * <p>
18
+ * <strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}.
19
+ * Hence, if you set a metadata value, <code>aNode</code> must be published (see {@link senselogic.sitevision.api.versioning.PublishingUtil})
20
+ * to have any effect in the {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}
21
+ * </p>
22
+ * @param aNode the <code>Node</code> where the metadata value should be altered. May not be <code>null</code>
23
+ * @param aProperty the <code>Property</code> that should be altered. May not be <code>null</code>
24
+ * @param aValue the new value. May not be <code>null</code>
25
+ * @throws LockException is thrown if the specified is locked for editing (i.e. someone else is currently editing the same node)
26
+ * @throws RepositoryException if anything goes wrong
27
+ * @see #setMetadataPropertyValue(javax.jcr.Node, String, Object)
28
+ */
29
+ export function setMetadataPropertyValue(
30
+ aNode: Node,
31
+ aProperty: Property,
32
+ aValue: unknown
33
+ ): void;
13
34
 
14
35
  /**
15
- * Returns a link value builder that can be used to build LinkValue instances.
16
- * @returns {LinkValueBuilder} a link value builder.
17
- */
18
- export function getLinkValueBuilder(): LinkValueBuilder;
36
+ * <p>
37
+ * Set a new value to a metadata <code>Property</code> on a <code>Node</code>. The node must
38
+ * be of such a type where it is possible to define a metadata value (e.g. page, article, template, file, image)
39
+ * or an <code>IllegalArgumentException</code> will be thrown.
40
+ * </p>
41
+ *
42
+ * <p>This method currently supports alternation of the following metadata types:</p>
43
+ * <ul>
44
+ * <li>
45
+ * <strong>text</strong><br>
46
+ * The value will be handled as string (i.e. toString).
47
+ * </li>
48
+ * <li>
49
+ * <strong>single alternative</strong><br>
50
+ * The value must be a valid alternative, or the metadata definition
51
+ * must support 'other' values. If not, an <code>UnsupportedOperationException</code> is
52
+ * thrown. The value is handled as a string (i.e. toString).
53
+ * </li>
54
+ * <li>
55
+ * <strong>multiple alternative</strong><br>
56
+ * The value must be a valid alternative, or the metadata definition
57
+ * must support 'other' values. Any invalid value will be ignored. If no valid alternatives
58
+ * are provided an <code>UnsupportedOperationException</code> is thrown. The value is
59
+ * a comma separated string of the alternatives. It is also possible to provide a collection
60
+ * or an array of strings corresponding to the alternatives.
61
+ * </li>
62
+ * <li>
63
+ * <strong>date</strong><br>
64
+ * The value must be a <code>Date</code>, <code>Calendar</code>, <code>Long</code>,
65
+ * <code>Integer</code> or <code>Double</code>. If no valid value is provided an
66
+ * <code>UnsupportedOperationException</code> is thrown.
67
+ * </li>
68
+ * <li>
69
+ * <strong>user</strong><br>
70
+ * The value must be a <code>Node</code> (of type sv:user or sv:simpleUser) or an id <code>String</code> to a JCR-node
71
+ * corresponding to the designated user. If no valid value is provided an
72
+ * <code>UnsupportedOperationException</code> is thrown.
73
+ * </li>
74
+ * <li>
75
+ * <strong>directory object</strong><br>
76
+ * The value must be a <code>Node</code> (of type sv:user, sv:userGroup or sv:userContainer) or an id <code>String</code> to a JCR-node
77
+ * corresponding to the designated directory object. It is also possible to provide a collection, an
78
+ * array of such objects or a comma separated list of ids. If no valid value is provided an
79
+ * <code>UnsupportedOperationException</code> is thrown.
80
+ * </li>
81
+ * <li>
82
+ * <strong>link</strong><br>
83
+ * The value must be a {@link senselogic.sitevision.api.metadata.value.LinkValue} <em>(since Sitevision 3.6)</em>,
84
+ * a <code>Node</code> or an id <code>String</code> to a JCR-node that can be used as link (e.g. page, article, image, file).
85
+ * If no valid value is provided an <code>UnsupportedOperationException</code> is thrown.
86
+ * </li>
87
+ * <li>
88
+ * <strong>link to portlet</strong> <em>(since Sitevision 2.6.2)</em><br>
89
+ * The value will be handled as string (i.e. toString).
90
+ * </li>
91
+ * <li>
92
+ * <strong>number</strong> <em>(since Sitevision 2.6.2)</em><br>
93
+ * The value must be a <code>Number</code> (e.g. <code>Integer</code>, <code>Long</code>, <code>Double</code> etc.)
94
+ * or the toString() method of the value must be parseable as an int <em>(i.e. Integer.parseInt(aValue.toString())
95
+ * must not throw a NumberFormatException)</em>.
96
+ * If no valid value is provided an <code>UnsupportedOperationException</code> is thrown.
97
+ * </li>
98
+ * <li>
99
+ * <strong>related</strong> <em>(since Sitevision 3.6)</em><br>
100
+ * The value must be a {@link senselogic.sitevision.api.metadata.value.RelatedValue}.
101
+ * If no valid value is provided an <code>UnsupportedOperationException</code> is thrown.
102
+ * </li>
103
+ * <li>
104
+ * <strong>single tag</strong> <em>(since Sitevision 7.2)</em><br>
105
+ * The value must be a valid tag, or the metadata definition
106
+ * must allow custom tags. If not, an <code>UnsupportedOperationException</code> is
107
+ * thrown. The value must be of type <code>sv:tag</code> or a tag name as a <code>String</code>.
108
+ * </li>
109
+ * <li>
110
+ * <strong>multiple tags</strong> <em>(since Sitevision 7.2)</em><br>
111
+ * The value must be a valid tag, or the metadata definition
112
+ * must allow custom tags. Any invalid tags will be ignored. If no valid tags
113
+ * are provided an <code>UnsupportedOperationException</code> is thrown. The value is
114
+ * a comma separated string of the tag names. Note that tag names provided as a comma separated string must be prefixed with #.
115
+ * It is also possible to provide a collection or an array of <code>sv:tag</code> or strings of tag names.
116
+ * </li>
117
+ * </ul>
118
+ *
119
+ * <p>
120
+ * <strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}.
121
+ * Hence, if you set a metadata value, <code>aNode</code> must be published (see {@link senselogic.sitevision.api.versioning.PublishingUtil})
122
+ * to have any effect in the {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}
123
+ * </p>
124
+ *
125
+ * <p>
126
+ * Throws <code>NullPointerException</code> or <code>IllegalArgumentException</code> if an illegal argument is provided.
127
+ * Throws <code>UnsupportedOperationException</code> if an invalid value or metadata property type is specified.
128
+ * Throws <code>ConstraintViolationException</code> <em>(i.e. a <code>RepositoryException</code>)</em> if current user
129
+ * doesn't have permission to write metadata on the node.
130
+ * </p>
131
+ * @param aNode the <code>Node</code> where the metadata value should be altered. May not be <code>null</code>
132
+ * @param aPropertyName the name of the metadata property that should be altered. May not be <code>null</code>
133
+ * @param aValue the new value. May not be <code>null</code>
134
+ * @throws LockException is thrown if the specified node is locked for editing (i.e. someone else is currently editing the same node)
135
+ * @throws RepositoryException if anything goes wrong
136
+ * @see #setMetadataPropertyValue(javax.jcr.Node, javax.jcr.Property, Object)
137
+ */
138
+ export function setMetadataPropertyValue(
139
+ aNode: Node,
140
+ aPropertyName: string,
141
+ aValue: unknown
142
+ ): void;
19
143
 
20
144
  /**
21
- * Returns a List containing all related metadata values for a specified Node.
22
- * @returns {List} a List containing all related metadata values, or an empty List if no could be found.
23
- * @param {Node} aNode - the Node that contains the metadata value. May not be null
24
- * @param {string} aPropertyName - the name of the metadata property that should be queried. May not be null
25
- */
26
- export function getRelatedMetadataPropertyValues(aNode: Node, aPropertyName: string): List<any>;
145
+ * <p>Removes a metadata <code>Property</code> value on a <code>Node</code>. The node must
146
+ * be of such a type where it is possible to define a metadata value (e.g. page, article, template,
147
+ * file, image) or an <code>IllegalArgumentException</code> will be thrown.</p>
148
+ *
149
+ * <p>
150
+ * For comprehensive information, see alternate method
151
+ * {@link #removeMetadataPropertyValue(javax.jcr.Node, String) removeMetadataPropertyValue(Node, String)}
152
+ * </p>.
153
+ *
154
+ * <p><strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}.
155
+ * Hence, if you remove a metadata value, <code>aNode</code> must be published (see {@link senselogic.sitevision.api.versioning.PublishingUtil})
156
+ * to have any effect in the {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}</p>
157
+ * @param aNode the <code>Node</code> where the metadata value should be removed. May not be <code>null</code>
158
+ * @param aProperty the <code>Property</code> that should be removed. May not be <code>null</code>
159
+ * @throws RepositoryException if anything goes wrong
160
+ * @see #removeMetadataPropertyValue(javax.jcr.Node, String)
161
+ */
162
+ export function removeMetadataPropertyValue(
163
+ aNode: Node,
164
+ aProperty: Property
165
+ ): void;
27
166
 
28
167
  /**
29
- * Returns a related value builder that can be used to build RelatedValue instances.
30
- * @returns {RelatedValueBuilder} a related value builder.
31
- */
32
- export function getRelatedValueBuilder(): RelatedValueBuilder;
168
+ * <p>Removes a metadata <code>Property</code> value on a <code>Node</code>. The node must
169
+ * be of such a type where it is possible to define a metadata value (e.g. page, article, template,
170
+ * file, image) or an <code>IllegalArgumentException</code> will be thrown.</p>
171
+ *
172
+ * <p>Due to the hierarchical nature of the metadata and the inheritance mechanism, a removal of a value
173
+ * does not necessarily mean that the value is removed (it may then be inherited from a parent node)</p>
174
+ *
175
+ * <p>Note that the result of removal of a text metadata on the node where the metadata definition is defined
176
+ * is not the <code>null</code> value but an empty <code>String</code>. This means that the JCR property will be available after
177
+ * the removal and contain "" as value.</p>
178
+ *
179
+ * <p><strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}.
180
+ * Hence, if you remove a metadata value, <code>aNode</code> must be published (see {@link senselogic.sitevision.api.versioning.PublishingUtil})
181
+ * to have any effect in the {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}</p>
182
+ *
183
+ * <p>Throws <code>NullPointerException</code> or <code>IllegalArgumentException</code> if illegal arguments
184
+ * are used. Throws <code>ConstraintViolationException</code> <em>(i.e. a <code>RepositoryException</code>)</em>
185
+ * if current user doesn't have permission to write metadata on the node.</p>
186
+ * @param aNode the <code>Node</code> where the metadata value should be removed. May not be <code>null</code>
187
+ * @param aPropertyName the name of the metadata property that should be removed. May not be <code>null</code>
188
+ * @throws RepositoryException if anything goes wrong
189
+ * @see #removeMetadataPropertyValue(javax.jcr.Node, javax.jcr.Property)
190
+ */
191
+ export function removeMetadataPropertyValue(
192
+ aNode: Node,
193
+ aPropertyName: string
194
+ ): void;
33
195
 
34
196
  /**
35
- * Returns a boolean indicating that the metadata value on the Node is inherited from a parent node.
36
- * @returns {boolean} a boolean indicating the inheritance
37
- * @param {Node} aNode - the Node that contains the metadata value. May not be null
38
- * @param {Property} aProperty - the metadata Property that should be queried. May not be null
39
- */
40
- export function isMetadataValueInherited(aNode: Node, aProperty: Property): boolean;
197
+ * <p>Returns a <code>boolean</code> indicating that the metadata value on the <code>Node</code> is
198
+ * inherited from a parent node.</p>
199
+ *
200
+ * <p>Note that this method returns <code>true</code> when the metadata definition is defined on the
201
+ * <code>Node</code> and the value is <code>null</code></p>
202
+ *
203
+ * <p><strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}</p>
204
+ * @param aNode the <code>Node</code> that contains the metadata value. May not be <code>null</code>
205
+ * @param aProperty the metadata <code>Property</code> that should be queried. May not be <code>null</code>
206
+ * @return a <code>boolean</code> indicating the inheritance
207
+ * @throws RepositoryException if anything goes wrong
208
+ * @see #isMetadataValueInherited(javax.jcr.Node, javax.jcr.Property, int)
209
+ */
210
+ export function isMetadataValueInherited(
211
+ aNode: Node,
212
+ aProperty: Property
213
+ ): boolean;
41
214
 
42
215
  /**
43
- * Returns a boolean indicating that the metadata value in a specified version on the Node is inherited from a parent node.
44
- * @returns {boolean} a boolean indicating the inheritance
45
- * @param {Node} aNode - the Node that contains the metadata value. May not be null
46
- * @param {Property} aProperty - the metadata Property that should be queried. May not be null
47
- * @param {number} aVersion - VersionUtil.OFFLINE_VERSION or VersionUtil.ONLINE_VERSION
48
- */
49
- export function isMetadataValueInherited(aNode: Node, aProperty: Property, aVersion: number): boolean;
216
+ * <p>Returns a <code>boolean</code> indicating that the metadata value in a specified version on the <code>Node</code> is
217
+ * inherited from a parent node.</p>
218
+ *
219
+ * <p>Note that this method returns <code>true</code> when the metadata definition is defined on the
220
+ * <code>Node</code> and the value is <code>null</code></p>
221
+ * @param aNode the <code>Node</code> that contains the metadata value. May not be <code>null</code>
222
+ * @param aProperty the metadata <code>Property</code> that should be queried. May not be <code>null</code>
223
+ * @param aVersion {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION} or {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}
224
+ * @return a <code>boolean</code> indicating the inheritance
225
+ * @throws RepositoryException if anything goes wrong
226
+ * @since Sitevision 2.6.1_04
227
+ */
228
+ export function isMetadataValueInherited(
229
+ aNode: Node,
230
+ aProperty: Property,
231
+ aVersion: number
232
+ ): boolean;
50
233
 
51
234
  /**
52
- * Returns a boolean indicating that the metadata value on the Node is inherited from a parent node.
53
- * @returns {boolean} a boolean indicating the inheritance
54
- * @param {Node} aNode - the Node that contains the metadata value. May not be null
55
- * @param {string} aPropertyName - the name of the metadata property that should be queried. May not be null
56
- */
57
- export function isMetadataValueInherited(aNode: Node, aPropertyName: string): boolean;
235
+ * <p>Returns a <code>boolean</code> indicating that the metadata value on the <code>Node</code> is
236
+ * inherited from a parent node.</p>
237
+ *
238
+ * <p>Note that this method returns <code>true</code> when the metadata definition is defined on the
239
+ * <code>Node</code> and the value is <code>null</code></p>
240
+ *
241
+ * <p><strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}</p>
242
+ * @param aNode the <code>Node</code> that contains the metadata value. May not be <code>null</code>
243
+ * @param aPropertyName the name of the metadata property that should be queried. May not be <code>null</code>
244
+ * @return a <code>boolean</code> indicating the inheritance
245
+ * @throws RepositoryException if anything goes wrong
246
+ * @see #isMetadataValueInherited(javax.jcr.Node, String, int)
247
+ */
248
+ export function isMetadataValueInherited(
249
+ aNode: Node,
250
+ aPropertyName: string
251
+ ): boolean;
58
252
 
59
253
  /**
60
- * Returns a boolean indicating that the metadata value in a specified version on the Node is inherited from a parent node.
61
- * @returns {boolean} a boolean indicating the inheritance
62
- * @param {Node} aNode - the Node that contains the metadata value. May not be null
63
- * @param {string} aPropertyName - the name of the metadata property that should be queried. May not be null
64
- * @param {number} aVersion - VersionUtil.OFFLINE_VERSION or VersionUtil.ONLINE_VERSION
65
- */
66
- export function isMetadataValueInherited(aNode: Node, aPropertyName: string, aVersion: number): boolean;
254
+ * <p>Returns a <code>boolean</code> indicating that the metadata value in a specified version on the <code>Node</code> is
255
+ * inherited from a parent node.</p>
256
+ *
257
+ * <p>Note that this method returns <code>true</code> when the metadata definition is defined on the
258
+ * <code>Node</code> and the value is <code>null</code></p>
259
+ * @param aNode the <code>Node</code> that contains the metadata value. May not be <code>null</code>
260
+ * @param aPropertyName the name of the metadata property that should be queried. May not be <code>null</code>
261
+ * @param aVersion {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION} or {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}
262
+ * @return a <code>boolean</code> indicating the inheritance
263
+ * @throws RepositoryException if anything goes wrong
264
+ * @since Sitevision 2.6.1_04
265
+ */
266
+ export function isMetadataValueInherited(
267
+ aNode: Node,
268
+ aPropertyName: string,
269
+ aVersion: number
270
+ ): boolean;
67
271
 
68
272
  /**
69
- * Removes a metadata Property value on a Node.
70
- * @param {Node} aNode - the Node where the metadata value should be removed. May not be null
71
- * @param {Property} aProperty - the Property that should be removed. May not be null
72
- */
73
- export function removeMetadataPropertyValue(aNode: Node, aProperty: Property): void;
273
+ * <p>
274
+ * Returns a <code>List</code> containing all related metadata values for a specified <code>Node</code>.
275
+ * </p>
276
+ *
277
+ * <p>
278
+ * <strong>Important note!</strong> The returned List is not type safe and my contain either a <code>Node</code>
279
+ * and/or a <code>String</code> depending on its findings.
280
+ * </p>
281
+ * @param aNode the <code>Node</code> that contains the metadata value. May not be <code>null</code>
282
+ * @param aPropertyName the name of the metadata property that should be queried. May not be <code>null</code>
283
+ * @return a <code>List</code> containing all related metadata values, or an <code>empty List</code> if no could be found.
284
+ * @throws NullPointerException if <code>aNode</code> or <code>aPropertyName</code> is <code>null</code>.
285
+ * @throws IllegalArgumentException if <code>aNode</code> is of wrong type (a node that doesn't have metadata).
286
+ * @throws RepositoryException if anything goes wrong while accessing <code>aNode</code> or extracting the result
287
+ * @since Sitevision 2.6.2_03
288
+ */
289
+ export function getRelatedMetadataPropertyValues(
290
+ aNode: Node,
291
+ aPropertyName: string
292
+ ): unknown[];
74
293
 
75
294
  /**
76
- * Removes a metadata Property value on a Node.
77
- * @param {Node} aNode - the Node where the metadata value should be removed. May not be null
78
- * @param {string} aPropertyName - the name of the metadata property that should be removed. May not be null
79
- */
80
- export function removeMetadataPropertyValue(aNode: Node, aPropertyName: string): void;
295
+ * <p>Returns a <code>Node</code> for a link metadata on a specified <code>Node</code>.</p>
296
+ *
297
+ * <p><strong>Important note!</strong> The nodes returned by this method are temporary objects and are not part of the
298
+ * Sitevision model. This means that methods like {@link javax.jcr.Node#getPath()}, {@link javax.jcr.Node#getParent()} and
299
+ * {@link javax.jcr.Node#getName()} etc. will not return any information.</p>
300
+ * @param aNode the <code>Node</code> that contains the link metadata value. May not be <code>null</code>
301
+ * @param aPropertyName the name of the link metadata property that should be queried. May not be <code>null</code>
302
+ * @return a temporary <code>Node</code> representing the link metadata value, or <code>null</code> if no link could be found.
303
+ * @throws NullPointerException if <code>aNode</code> or <code>aPropertyName</code> is <code>null</code>.
304
+ * @throws IllegalArgumentException if <code>aNode</code> is of wrong type (a node that doesn't have metadata).
305
+ * @throws RepositoryException if anything goes wrong while accessing <code>aNode</code> or extracting the result
306
+ * @since Sitevision 3.1
307
+ */
308
+ export function getLinkMetadataPropertyValue(
309
+ aNode: Node,
310
+ aPropertyName: string
311
+ ): Node;
81
312
 
82
313
  /**
83
- * Set a new value to a metadata Property on a Node.
84
- * @param {Node} aNode - the Node where the metadata value should be altered. May not be null
85
- * @param {Property} aProperty - the Property that should be altered. May not be null
86
- * @param {any} aValue - the new value. May not be null
87
- */
88
- export function setMetadataPropertyValue(aNode: Node, aProperty: Property, aValue: any): void;
314
+ * <p>
315
+ * Returns a link value builder that can be used to build <code>LinkValue</code> instances.
316
+ * </p>
317
+ *
318
+ * <p>
319
+ * <strong>Tip!</strong> A <code>LinkValue</code> can be used to set a <em>link metadata</em>
320
+ * via {@link #setMetadataPropertyValue(javax.jcr.Node, String, Object)}
321
+ * or {@link #setMetadataPropertyValue(javax.jcr.Node, javax.jcr.Property, Object)}.
322
+ * </p>
323
+ * @return a link value builder.
324
+ * @since Sitevision 3.6
325
+ */
326
+ export function getLinkValueBuilder(): LinkValueBuilder;
89
327
 
90
328
  /**
91
- * Set a new value to a metadata Property on a Node.
92
- * @param {Node} aNode - the Node where the metadata value should be altered. May not be null
93
- * @param {string} aPropertyName - the name of the metadata property that should be altered. May not be null
94
- * @param {any} aValue - the new value. May not be null
95
- */
96
- export function setMetadataPropertyValue(aNode: Node, aPropertyName: string, aValue: any): void;
329
+ * <p>
330
+ * Returns a related value builder that can be used to build <code>RelatedValue</code> instances.
331
+ * </p>
332
+ *
333
+ * <p>
334
+ * <strong>Tip!</strong> A <code>RelatedValue</code> can be used to set a <em>related metadata</em>
335
+ * via {@link #setMetadataPropertyValue(javax.jcr.Node, String, Object)}
336
+ * or {@link #setMetadataPropertyValue(javax.jcr.Node, javax.jcr.Property, Object)}.
337
+ * </p>
338
+ * @return a related value builder.
339
+ * @since Sitevision 3.6
340
+ */
341
+ export function getRelatedValueBuilder(): RelatedValueBuilder;
97
342
 
98
- declare namespace metadataUtil {
343
+ /**
344
+ * <p>
345
+ * Utility used to handle metadata. Due to the nature of the Sitevision metadata it is not suited to alter the values using JCR
346
+ * (i.e. due to inheritance). This utility adds the functionality needed to access and alter metadata.
347
+ * </p>
348
+ *
349
+ * <p>
350
+ * Note that any metadata value is available as property on a JCR-node.
351
+ * </p>
352
+ *
353
+ * <p>
354
+ * An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getMetadataUtil()}.
355
+ * See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
356
+ * </p><p>
357
+ * Set a new value to a metadata <code>Property</code> on a <code>Node</code>. The node must
358
+ * be of such a type where it is possible to define a metadata value (e.g. page, article, template, file, image)
359
+ * or an <code>IllegalArgumentException</code> will be thrown.
360
+ * </p>
361
+ * <p>
362
+ * <strong>For comprehensive information about supported metadata</strong> see alternate method
363
+ * {@link #setMetadataPropertyValue(javax.jcr.Node, String, Object)}.
364
+ * </p>
365
+ *
366
+ * <p>
367
+ * <strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}.
368
+ * Hence, if you set a metadata value, <code>aNode</code> must be published (see {@link senselogic.sitevision.api.versioning.PublishingUtil})
369
+ * to have any effect in the {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}
370
+ * </p><p>
371
+ * Set a new value to a metadata <code>Property</code> on a <code>Node</code>. The node must
372
+ * be of such a type where it is possible to define a metadata value (e.g. page, article, template, file, image)
373
+ * or an <code>IllegalArgumentException</code> will be thrown.
374
+ * </p>
375
+ *
376
+ * <p>This method currently supports alternation of the following metadata types:</p>
377
+ * <ul>
378
+ * <li>
379
+ * <strong>text</strong><br>
380
+ * The value will be handled as string (i.e. toString).
381
+ * </li>
382
+ * <li>
383
+ * <strong>single alternative</strong><br>
384
+ * The value must be a valid alternative, or the metadata definition
385
+ * must support 'other' values. If not, an <code>UnsupportedOperationException</code> is
386
+ * thrown. The value is handled as a string (i.e. toString).
387
+ * </li>
388
+ * <li>
389
+ * <strong>multiple alternative</strong><br>
390
+ * The value must be a valid alternative, or the metadata definition
391
+ * must support 'other' values. Any invalid value will be ignored. If no valid alternatives
392
+ * are provided an <code>UnsupportedOperationException</code> is thrown. The value is
393
+ * a comma separated string of the alternatives. It is also possible to provide a collection
394
+ * or an array of strings corresponding to the alternatives.
395
+ * </li>
396
+ * <li>
397
+ * <strong>date</strong><br>
398
+ * The value must be a <code>Date</code>, <code>Calendar</code>, <code>Long</code>,
399
+ * <code>Integer</code> or <code>Double</code>. If no valid value is provided an
400
+ * <code>UnsupportedOperationException</code> is thrown.
401
+ * </li>
402
+ * <li>
403
+ * <strong>user</strong><br>
404
+ * The value must be a <code>Node</code> (of type sv:user or sv:simpleUser) or an id <code>String</code> to a JCR-node
405
+ * corresponding to the designated user. If no valid value is provided an
406
+ * <code>UnsupportedOperationException</code> is thrown.
407
+ * </li>
408
+ * <li>
409
+ * <strong>directory object</strong><br>
410
+ * The value must be a <code>Node</code> (of type sv:user, sv:userGroup or sv:userContainer) or an id <code>String</code> to a JCR-node
411
+ * corresponding to the designated directory object. It is also possible to provide a collection, an
412
+ * array of such objects or a comma separated list of ids. If no valid value is provided an
413
+ * <code>UnsupportedOperationException</code> is thrown.
414
+ * </li>
415
+ * <li>
416
+ * <strong>link</strong><br>
417
+ * The value must be a {@link senselogic.sitevision.api.metadata.value.LinkValue} <em>(since Sitevision 3.6)</em>,
418
+ * a <code>Node</code> or an id <code>String</code> to a JCR-node that can be used as link (e.g. page, article, image, file).
419
+ * If no valid value is provided an <code>UnsupportedOperationException</code> is thrown.
420
+ * </li>
421
+ * <li>
422
+ * <strong>link to portlet</strong> <em>(since Sitevision 2.6.2)</em><br>
423
+ * The value will be handled as string (i.e. toString).
424
+ * </li>
425
+ * <li>
426
+ * <strong>number</strong> <em>(since Sitevision 2.6.2)</em><br>
427
+ * The value must be a <code>Number</code> (e.g. <code>Integer</code>, <code>Long</code>, <code>Double</code> etc.)
428
+ * or the toString() method of the value must be parseable as an int <em>(i.e. Integer.parseInt(aValue.toString())
429
+ * must not throw a NumberFormatException)</em>.
430
+ * If no valid value is provided an <code>UnsupportedOperationException</code> is thrown.
431
+ * </li>
432
+ * <li>
433
+ * <strong>related</strong> <em>(since Sitevision 3.6)</em><br>
434
+ * The value must be a {@link senselogic.sitevision.api.metadata.value.RelatedValue}.
435
+ * If no valid value is provided an <code>UnsupportedOperationException</code> is thrown.
436
+ * </li>
437
+ * <li>
438
+ * <strong>single tag</strong> <em>(since Sitevision 7.2)</em><br>
439
+ * The value must be a valid tag, or the metadata definition
440
+ * must allow custom tags. If not, an <code>UnsupportedOperationException</code> is
441
+ * thrown. The value must be of type <code>sv:tag</code> or a tag name as a <code>String</code>.
442
+ * </li>
443
+ * <li>
444
+ * <strong>multiple tags</strong> <em>(since Sitevision 7.2)</em><br>
445
+ * The value must be a valid tag, or the metadata definition
446
+ * must allow custom tags. Any invalid tags will be ignored. If no valid tags
447
+ * are provided an <code>UnsupportedOperationException</code> is thrown. The value is
448
+ * a comma separated string of the tag names. Note that tag names provided as a comma separated string must be prefixed with #.
449
+ * It is also possible to provide a collection or an array of <code>sv:tag</code> or strings of tag names.
450
+ * </li>
451
+ * </ul>
452
+ *
453
+ * <p>
454
+ * <strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}.
455
+ * Hence, if you set a metadata value, <code>aNode</code> must be published (see {@link senselogic.sitevision.api.versioning.PublishingUtil})
456
+ * to have any effect in the {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}
457
+ * </p>
458
+ *
459
+ * <p>
460
+ * Throws <code>NullPointerException</code> or <code>IllegalArgumentException</code> if an illegal argument is provided.
461
+ * Throws <code>UnsupportedOperationException</code> if an invalid value or metadata property type is specified.
462
+ * Throws <code>ConstraintViolationException</code> <em>(i.e. a <code>RepositoryException</code>)</em> if current user
463
+ * doesn't have permission to write metadata on the node.
464
+ * </p><p>Removes a metadata <code>Property</code> value on a <code>Node</code>. The node must
465
+ * be of such a type where it is possible to define a metadata value (e.g. page, article, template,
466
+ * file, image) or an <code>IllegalArgumentException</code> will be thrown.</p>
467
+ *
468
+ * <p>
469
+ * For comprehensive information, see alternate method
470
+ * {@link #removeMetadataPropertyValue(javax.jcr.Node, String) removeMetadataPropertyValue(Node, String)}
471
+ * </p>.
472
+ *
473
+ * <p><strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}.
474
+ * Hence, if you remove a metadata value, <code>aNode</code> must be published (see {@link senselogic.sitevision.api.versioning.PublishingUtil})
475
+ * to have any effect in the {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}</p><p>Removes a metadata <code>Property</code> value on a <code>Node</code>. The node must
476
+ * be of such a type where it is possible to define a metadata value (e.g. page, article, template,
477
+ * file, image) or an <code>IllegalArgumentException</code> will be thrown.</p>
478
+ *
479
+ * <p>Due to the hierarchical nature of the metadata and the inheritance mechanism, a removal of a value
480
+ * does not necessarily mean that the value is removed (it may then be inherited from a parent node)</p>
481
+ *
482
+ * <p>Note that the result of removal of a text metadata on the node where the metadata definition is defined
483
+ * is not the <code>null</code> value but an empty <code>String</code>. This means that the JCR property will be available after
484
+ * the removal and contain "" as value.</p>
485
+ *
486
+ * <p><strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}.
487
+ * Hence, if you remove a metadata value, <code>aNode</code> must be published (see {@link senselogic.sitevision.api.versioning.PublishingUtil})
488
+ * to have any effect in the {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}</p>
489
+ *
490
+ * <p>Throws <code>NullPointerException</code> or <code>IllegalArgumentException</code> if illegal arguments
491
+ * are used. Throws <code>ConstraintViolationException</code> <em>(i.e. a <code>RepositoryException</code>)</em>
492
+ * if current user doesn't have permission to write metadata on the node.</p><p>Returns a <code>boolean</code> indicating that the metadata value on the <code>Node</code> is
493
+ * inherited from a parent node.</p>
494
+ *
495
+ * <p>Note that this method returns <code>true</code> when the metadata definition is defined on the
496
+ * <code>Node</code> and the value is <code>null</code></p>
497
+ *
498
+ * <p><strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}</p><p>Returns a <code>boolean</code> indicating that the metadata value in a specified version on the <code>Node</code> is
499
+ * inherited from a parent node.</p>
500
+ *
501
+ * <p>Note that this method returns <code>true</code> when the metadata definition is defined on the
502
+ * <code>Node</code> and the value is <code>null</code></p><p>Returns a <code>boolean</code> indicating that the metadata value on the <code>Node</code> is
503
+ * inherited from a parent node.</p>
504
+ *
505
+ * <p>Note that this method returns <code>true</code> when the metadata definition is defined on the
506
+ * <code>Node</code> and the value is <code>null</code></p>
507
+ *
508
+ * <p><strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}</p><p>Returns a <code>boolean</code> indicating that the metadata value in a specified version on the <code>Node</code> is
509
+ * inherited from a parent node.</p>
510
+ *
511
+ * <p>Note that this method returns <code>true</code> when the metadata definition is defined on the
512
+ * <code>Node</code> and the value is <code>null</code></p><p>
513
+ * Returns a <code>List</code> containing all related metadata values for a specified <code>Node</code>.
514
+ * </p>
515
+ *
516
+ * <p>
517
+ * <strong>Important note!</strong> The returned List is not type safe and my contain either a <code>Node</code>
518
+ * and/or a <code>String</code> depending on its findings.
519
+ * </p><p>Returns a <code>Node</code> for a link metadata on a specified <code>Node</code>.</p>
520
+ *
521
+ * <p><strong>Important note!</strong> The nodes returned by this method are temporary objects and are not part of the
522
+ * Sitevision model. This means that methods like {@link javax.jcr.Node#getPath()}, {@link javax.jcr.Node#getParent()} and
523
+ * {@link javax.jcr.Node#getName()} etc. will not return any information.</p><p>
524
+ * Returns a link value builder that can be used to build <code>LinkValue</code> instances.
525
+ * </p>
526
+ *
527
+ * <p>
528
+ * <strong>Tip!</strong> A <code>LinkValue</code> can be used to set a <em>link metadata</em>
529
+ * via {@link #setMetadataPropertyValue(javax.jcr.Node, String, Object)}
530
+ * or {@link #setMetadataPropertyValue(javax.jcr.Node, javax.jcr.Property, Object)}.
531
+ * </p><p>
532
+ * Returns a related value builder that can be used to build <code>RelatedValue</code> instances.
533
+ * </p>
534
+ *
535
+ * <p>
536
+ * <strong>Tip!</strong> A <code>RelatedValue</code> can be used to set a <em>related metadata</em>
537
+ * via {@link #setMetadataPropertyValue(javax.jcr.Node, String, Object)}
538
+ * or {@link #setMetadataPropertyValue(javax.jcr.Node, javax.jcr.Property, Object)}.
539
+ * </p>
540
+ * @author Mikael Wikblom
541
+ * @since Sitevision 2.6.1
542
+ */
543
+ declare namespace MetadataUtil {
99
544
  export {
545
+ setMetadataPropertyValue,
546
+ removeMetadataPropertyValue,
547
+ isMetadataValueInherited,
548
+ getRelatedMetadataPropertyValues,
100
549
  getLinkMetadataPropertyValue,
101
550
  getLinkValueBuilder,
102
- getRelatedMetadataPropertyValues,
103
551
  getRelatedValueBuilder,
104
- isMetadataValueInherited,
105
- removeMetadataPropertyValue,
106
- setMetadataPropertyValue,
107
- }
552
+ };
108
553
  }
109
554
 
110
- export default metadataUtil;
555
+ export default MetadataUtil;