@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,462 @@
1
+ import Node from "../../hidden/javax/jcr/Node";
2
+
3
+ /**
4
+ * <p>
5
+ * Adds several files to a sv:localFileRepository, sv:fileRepository, sv:personalFileRepository or a sv:folder
6
+ * residing as sub node to a file repository.
7
+ * </p>
8
+ * <p>
9
+ * Files are specified by a map where the keys denotes the file names (will correspond to the property fileName
10
+ * of the sv:file nodes) and the values denotes the URIs pointing to the file resources. The file resources
11
+ * (i.e. the URIs) must be accessible from the Sitevision server. Sitevision opens a stream with the URI value
12
+ * when creating/uploading the binary content of the file. If a firewall or such blocks outgoing communication
13
+ * from the server - file creation will fail.
14
+ * </p>
15
+ * <p>
16
+ * <strong>Permission note!</strong> Current user must be authorized to alter the parent node
17
+ * (e.g. {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
18
+ * </p>
19
+ * <p>
20
+ * A warning will be written to the system log if Sitevision for any reason is unable to create one of the files.
21
+ * </p>
22
+ * @param aParent the parent node for the files
23
+ * @param aFileMappings a map of file name to URI pairs
24
+ * @throws java.lang.NullPointerException if <code>aParent</code> or <code>aFileMappings</code> is <code>null</code>
25
+ * @throws ConstraintViolationException if the user is not authorized to alter the parent node, if an invalid parent node is specified or if file exceeds file size limit
26
+ * @throws RepositoryException if something else goes wrong
27
+ */
28
+ export function createFiles(
29
+ aParent: Node,
30
+ aFileMappings: Record<unknown, unknown>
31
+ ): void;
32
+
33
+ /**
34
+ * Creates a file using a uri string.
35
+ *
36
+ * <p>
37
+ * Note that the <code>aParent</code> of the file must be a <code>sv:localFileRepository</code>, <code>sv:fileRepository</code>,
38
+ * <code>sv:personalFileRepository</code> or a <code>sv:folder</code> residing as sub node to a file repository.
39
+ * </p>
40
+ * <p>
41
+ * <strong>Permission note!</strong> Current user must be authorized to alter the parent node
42
+ * (e.g. {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
43
+ * </p>
44
+ * <p>
45
+ * <strong>URI note!</strong> The file resource must be accessible from the Sitevision server! Sitevision opens
46
+ * a stream to an URL with the <code>aUri</code> value when creating/uploading the binary content of the file.
47
+ * If a firewall or such blocks outgoing communication from the server - file creation will fail.
48
+ * </p>
49
+ * @param aParent the parent node of the file
50
+ * @param aFileName the filename
51
+ * @param aUri the URI pointing to the file resource retrievable from the Sitevision server
52
+ * @return a sv:file node corresponding to the newly created file. Will never return <code>null</code>
53
+ * @throws java.lang.NullPointerException if <code>aParent</code>, <code>aFileName</code> or <code>aUri</code> is <code>null</code>
54
+ * @throws ConstraintViolationException if the user is not authorized to alter the parent node, if an invalid parent node is specified or if file exceeds file size limit
55
+ * @throws RepositoryException if something else goes wrong
56
+ */
57
+ export function createFile(
58
+ aParent: Node,
59
+ aFileName: string,
60
+ aUri: string
61
+ ): Node;
62
+
63
+ /**
64
+ * Creates a file using a base64 string.
65
+ *
66
+ * <p>
67
+ * The base64 decoder uses "The Base64 Alphabet" as specified in Table 1 of RFC 4648 and RFC 2045 for decoding operation.
68
+ * The decoder rejects data that contains characters outside the base64 alphabet.
69
+ * </p>
70
+ * <p>
71
+ * Note that the <code>aParent</code> of the file must be a <code>sv:localFileRepository</code>, <code>sv:fileRepository</code>,
72
+ * <code>sv:personalFileRepository</code> or a <code>sv:folder</code> residing as sub node to a file repository.
73
+ * </p>
74
+ * <p>
75
+ * <strong>Permission note!</strong> Current user must be authorized to alter the parent node
76
+ * (e.g. {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
77
+ * </p>
78
+ * @param aParent the parent node of the file
79
+ * @param aFileName the filename
80
+ * @param aBase64EncodedString a base64 encoded string
81
+ * @return a sv:file node corresponding to the newly created file. Will never return <code>null</code>
82
+ * @throws java.lang.NullPointerException if <code>aParent</code>, <code>aFileName</code> or <code>aBase64EncodedString</code> is <code>null</code>
83
+ * @throws ConstraintViolationException if the user is not authorized to alter the parent node, if an invalid parent node is specified, if <code>aBase64EncodedString</code> is not base64 encoded or if file exceeds file size limit
84
+ * @throws RepositoryException if something else goes wrong
85
+ * @since Sitevision 4.5.4
86
+ */
87
+ export function createFileFromBase64(
88
+ aParent: Node,
89
+ aFileName: string,
90
+ aBase64EncodedString: string
91
+ ): Node;
92
+
93
+ /**
94
+ * Creates a file using a sv:temporaryFile.
95
+ *
96
+ * <p>
97
+ * Note that the <code>aParent</code> of the file must be a <code>sv:localFileRepository</code>, <code>sv:fileRepository</code>,
98
+ * <code>sv:personalFileRepository</code> or a <code>sv:folder</code> residing as sub node to a file repository.
99
+ * </p>
100
+ * <p>
101
+ * <strong>Permission note!</strong> Current user must be authorized to alter the parent node
102
+ * (e.g. {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
103
+ * </p>
104
+ * @param aParent the parent node of the file
105
+ * @param aTemporaryFile a sv:temporaryFile (typically created via {@link senselogic.sitevision.api.node.builder.TemporaryFileNodeBuilder})
106
+ * @return a sv:file node corresponding to the newly created file. Will never return <code>null</code>
107
+ * @throws ConstraintViolationException if the user is not authorized to alter the parent node, if an invalid parent node is specified, if an invalid temporary node is specified or if file exceeds file size limit
108
+ * @throws RepositoryException if something else goes wrong
109
+ * @since Sitevision 4.5.4
110
+ */
111
+ export function createFileFromTemporary(
112
+ aParent: Node,
113
+ aTemporaryFile: Node
114
+ ): Node;
115
+
116
+ /**
117
+ * Updates the binary content of an existing file using a uri string.
118
+ *
119
+ * <p>
120
+ * Properties related to the binary content will also be updated (e.g. <code>length</code>). A new version will
121
+ * be created if the binary content of a <em>group file</em> is updated.
122
+ * </p>
123
+ * <p>
124
+ * <strong>URI note!</strong> The URI must be accessible from the Sitevision server and the ending part
125
+ * of the URI must match the file extension of the existing file that should be updated! Sitevision opens
126
+ * a stream to an URL with the <code>anUri</code> value when uploading the binary content of the file.
127
+ * If a firewall or such blocks outgoing communication from the server - file update will fail.
128
+ * </p>
129
+ * <p>
130
+ * <strong>Permission note!</strong> Current user must be authorized to alter the file node that
131
+ * should be updated (e.g. {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
132
+ * </p>
133
+ * @param aFile the file
134
+ * @param aUri the URI pointing to the file resource to fetch new binary content from
135
+ * @throws ConstraintViolationException if the user is not authorized to alter the file node, if an invalid node is specified, if the end part of <code>aUri</code> doesn't match the file extension of <code>aFile</code> or if file exceeds file size limit
136
+ * @throws RepositoryException if something else goes wrong
137
+ * @since Sitevision 3.6.3
138
+ */
139
+ export function updateBinaryContent(aFile: Node, aUri: string): void;
140
+
141
+ /**
142
+ * Updates the binary content of an existing file using a base64 string.
143
+ *
144
+ * <p>
145
+ * The base64 decoder uses "The Base64 Alphabet" as specified in Table 1 of RFC 4648 and RFC 2045 for decoding operation.
146
+ * The decoder rejects data that contains characters outside the base64 alphabet.
147
+ * </p>
148
+ * <p>
149
+ * Properties related to the binary content will also be updated (e.g. <code>length</code>). A new version will
150
+ * be created if the binary content of a <em>group file</em> is updated.
151
+ * </p>
152
+ * <p>
153
+ * <strong>Permission note!</strong> Current user must be authorized to alter the file node that
154
+ * should be updated (e.g. {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
155
+ * </p>
156
+ * @param aFile the file
157
+ * @param aBase64EncodedString a base64 encoded string
158
+ * @throws ConstraintViolationException if the user is not authorized to alter the file node, if an invalid node is specified, if <code>aBase64EncodedString</code> is not base64 encoded, if file exceeds file size limit or if file exceeds file size limit
159
+ * @throws RepositoryException if something else goes wrong
160
+ * @since Sitevision 4.5.4
161
+ */
162
+ export function updateBinaryContentFromBase64(
163
+ aFile: Node,
164
+ aBase64EncodedString: string
165
+ ): void;
166
+
167
+ /**
168
+ * Updates the binary content of an existing file using a sv:temporaryFile.
169
+ *
170
+ * <p>
171
+ * Properties related to the binary content will also be updated (e.g. <code>length</code>). A new version will
172
+ * be created if the binary content of a <em>group file</em> is updated.
173
+ * </p>
174
+ * <p>
175
+ * <strong>Permission note!</strong> Current user must be authorized to alter the file node that
176
+ * should be updated (e.g. {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
177
+ * </p>
178
+ * @param aFile the file
179
+ * @param aTemporaryFile the sv:temporaryFile (typically created via {@link senselogic.sitevision.api.node.builder.TemporaryFileNodeBuilder})
180
+ * @throws ConstraintViolationException if the user is not authorized to alter the file node, if an invalid node is specified, if the end part of the file represented by <code>aTemporaryFile</code> doesn't match the file extension of <code>aFile</code> or if file exceeds file size limit
181
+ * @throws RepositoryException if something else goes wrong
182
+ * @since Sitevision 4.5.4
183
+ */
184
+ export function updateBinaryContentFromTemporary(
185
+ aFile: Node,
186
+ aTemporaryFile: Node
187
+ ): void;
188
+
189
+ /**
190
+ * Gets the contents of a file as a String using the UTF-8 character encoding.
191
+ *
192
+ * <p>
193
+ * <em>Note! This is mere a convenience method for {@link #getContentAsString(Node, String)} using UTF-8 as character encoding.</em>
194
+ * </p>
195
+ * @param aFile the file Node (sv:file or sv:temporaryFile)
196
+ * @return the UTF-8 file content, or null if aFile isn't a character-based file
197
+ * @see #getContentAsString(Node, String)
198
+ * @since Sitevision 4.1.1
199
+ */
200
+ export function getContentAsString(aFile: Node): string;
201
+
202
+ /**
203
+ * Gets the contents of a file as a String using a given character encoding.
204
+ *
205
+ * <p>
206
+ * <em>Note!</em> This method operates on character-based file nodes only! That is:
207
+ * </p>
208
+ * <ul>
209
+ * <li>
210
+ * Files that are of <em>text type</em> (as of {@link senselogic.sitevision.api.webresource.mime.MimeTypeUtil#isTextType(String)}).
211
+ * </li>
212
+ * <li>
213
+ * Files that are of <em>xml type</em> (as of {@link senselogic.sitevision.api.webresource.mime.MimeTypeUtil#isXmlType(String)}).
214
+ * </li>
215
+ * <li>
216
+ * Common "cross-over/mixed-types" files, such as <em>json</em> (application type) and <em>svg</em> (image type).
217
+ * </li>
218
+ * </ul>
219
+ * @param aFile the file Node (sv:file or sv:temporaryFile)
220
+ * @param aCharacterEncoding the character encoding (Note! UTF-8 will be used instead for null, empty and illegal/unsupported encoding)
221
+ * @return the file content using the specified character encoding, or null if aFile isn't a character-based file
222
+ * @since Sitevision 4.1.1
223
+ */
224
+ export function getContentAsString(
225
+ aFile: Node,
226
+ aCharacterEncoding: string
227
+ ): string;
228
+
229
+ /**
230
+ * Alters the name of a file.
231
+ *
232
+ * <p>
233
+ * If no file is specified a <code>NullPointerException</code> is thrown.
234
+ * If the node is not a sv:file an <code>IllegalArgumentException</code> is thrown.
235
+ * If no name is provided a <code>NullPointerException</code> is thrown.
236
+ * </p>
237
+ *
238
+ * <p>
239
+ * <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
240
+ * on the file node that should be updated (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
241
+ * <em>Updating a file for a <code>sv:userIdentity</code> requires
242
+ * {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_USER_IDENTITIES} on current page.</em>
243
+ * </p>
244
+ * @param aFile the sv:file that should be renamed. May not be <code>null</code>
245
+ * @param aNewName the new name of the file. May not be <code>null</code>
246
+ * @throws ConstraintViolationException if the current user is not authorized to alter the name of the file or if the file extension doesn't match
247
+ * @throws RepositoryException if something else goes wrong
248
+ * @since Sitevision 4.5.2
249
+ */
250
+ export function renameFile(aFile: Node, aNewName: string): void;
251
+
252
+ /**
253
+ * Modifies versioning for a file.
254
+ *
255
+ * <p>
256
+ * <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
257
+ * on the file node that should be updated (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
258
+ * </p>
259
+ * @param aFile the sv:file. May not be null
260
+ * @param aVersioned the new state of versioning for this file
261
+ * @throws ConstraintViolationException if the current user is not authorized to mutate aFile or if aFile is not a sv:file
262
+ * @throws RepositoryException if something else goes wrong
263
+ * @since Sitevision 9.1
264
+ */
265
+ export function setVersioned(aFile: Node, aVersioned: boolean): void;
266
+
267
+ /**
268
+ * Modifies download protection for a file.
269
+ *
270
+ * <p>
271
+ * <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission and MANAGE_DOWNLOAD_PROTECTION
272
+ * permission on the file node that should be updated (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}
273
+ * and {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_DOWNLOAD_PROTECTION}).
274
+ * </p>
275
+ *
276
+ * <p>
277
+ * <em>Tip! Use {@link senselogic.sitevision.api.property.PropertyUtil} or {@link senselogic.sitevision.api.property.Properties}
278
+ * to check current state, i.e. the "downloadProtected" boolean property.</em>
279
+ * </p>
280
+ * @param aFile the sv:file. May not be null
281
+ * @param aDownloadProtected the new state of download protection for aFile
282
+ * @throws ConstraintViolationException if the current user is not authorized to mutate aFile or if aFile is not a sv:file
283
+ * @throws RepositoryException if something else goes wrong
284
+ * @since Sitevision 2022.08.1
285
+ */
286
+ export function setDownloadProtected(
287
+ aFile: Node,
288
+ aDownloadProtected: boolean
289
+ ): void;
290
+
291
+ /**
292
+ * File utility interface that handles nodes with primary node type <code>sv:file</code> and <code>sv:temporaryFile</code>.
293
+ *
294
+ * <p>
295
+ * <em>Note!</em> This interface is used to <em>create</em> files. You would typically use
296
+ * {@link senselogic.sitevision.api.webresource.structure.StructureUtil} to <em>move</em> a file
297
+ * and {@link senselogic.sitevision.api.webresource.structure.TrashcanUtil} to <em>delete</em> a file.
298
+ * To check <em>MIME/Content-Type</em> for a file you would typically use {@link senselogic.sitevision.api.webresource.mime.MimeTypeUtil}.
299
+ * </p>
300
+ *
301
+ * <p>
302
+ * An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getFileUtil()}.
303
+ * See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
304
+ * </p><p>
305
+ * Adds several files to a sv:localFileRepository, sv:fileRepository, sv:personalFileRepository or a sv:folder
306
+ * residing as sub node to a file repository.
307
+ * </p>
308
+ * <p>
309
+ * Files are specified by a map where the keys denotes the file names (will correspond to the property fileName
310
+ * of the sv:file nodes) and the values denotes the URIs pointing to the file resources. The file resources
311
+ * (i.e. the URIs) must be accessible from the Sitevision server. Sitevision opens a stream with the URI value
312
+ * when creating/uploading the binary content of the file. If a firewall or such blocks outgoing communication
313
+ * from the server - file creation will fail.
314
+ * </p>
315
+ * <p>
316
+ * <strong>Permission note!</strong> Current user must be authorized to alter the parent node
317
+ * (e.g. {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
318
+ * </p>
319
+ * <p>
320
+ * A warning will be written to the system log if Sitevision for any reason is unable to create one of the files.
321
+ * </p>Creates a file using a uri string.
322
+ *
323
+ * <p>
324
+ * Note that the <code>aParent</code> of the file must be a <code>sv:localFileRepository</code>, <code>sv:fileRepository</code>,
325
+ * <code>sv:personalFileRepository</code> or a <code>sv:folder</code> residing as sub node to a file repository.
326
+ * </p>
327
+ * <p>
328
+ * <strong>Permission note!</strong> Current user must be authorized to alter the parent node
329
+ * (e.g. {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
330
+ * </p>
331
+ * <p>
332
+ * <strong>URI note!</strong> The file resource must be accessible from the Sitevision server! Sitevision opens
333
+ * a stream to an URL with the <code>aUri</code> value when creating/uploading the binary content of the file.
334
+ * If a firewall or such blocks outgoing communication from the server - file creation will fail.
335
+ * </p>Creates a file using a base64 string.
336
+ *
337
+ * <p>
338
+ * The base64 decoder uses "The Base64 Alphabet" as specified in Table 1 of RFC 4648 and RFC 2045 for decoding operation.
339
+ * The decoder rejects data that contains characters outside the base64 alphabet.
340
+ * </p>
341
+ * <p>
342
+ * Note that the <code>aParent</code> of the file must be a <code>sv:localFileRepository</code>, <code>sv:fileRepository</code>,
343
+ * <code>sv:personalFileRepository</code> or a <code>sv:folder</code> residing as sub node to a file repository.
344
+ * </p>
345
+ * <p>
346
+ * <strong>Permission note!</strong> Current user must be authorized to alter the parent node
347
+ * (e.g. {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
348
+ * </p>Creates a file using a sv:temporaryFile.
349
+ *
350
+ * <p>
351
+ * Note that the <code>aParent</code> of the file must be a <code>sv:localFileRepository</code>, <code>sv:fileRepository</code>,
352
+ * <code>sv:personalFileRepository</code> or a <code>sv:folder</code> residing as sub node to a file repository.
353
+ * </p>
354
+ * <p>
355
+ * <strong>Permission note!</strong> Current user must be authorized to alter the parent node
356
+ * (e.g. {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
357
+ * </p>Updates the binary content of an existing file using a uri string.
358
+ *
359
+ * <p>
360
+ * Properties related to the binary content will also be updated (e.g. <code>length</code>). A new version will
361
+ * be created if the binary content of a <em>group file</em> is updated.
362
+ * </p>
363
+ * <p>
364
+ * <strong>URI note!</strong> The URI must be accessible from the Sitevision server and the ending part
365
+ * of the URI must match the file extension of the existing file that should be updated! Sitevision opens
366
+ * a stream to an URL with the <code>anUri</code> value when uploading the binary content of the file.
367
+ * If a firewall or such blocks outgoing communication from the server - file update will fail.
368
+ * </p>
369
+ * <p>
370
+ * <strong>Permission note!</strong> Current user must be authorized to alter the file node that
371
+ * should be updated (e.g. {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
372
+ * </p>Updates the binary content of an existing file using a base64 string.
373
+ *
374
+ * <p>
375
+ * The base64 decoder uses "The Base64 Alphabet" as specified in Table 1 of RFC 4648 and RFC 2045 for decoding operation.
376
+ * The decoder rejects data that contains characters outside the base64 alphabet.
377
+ * </p>
378
+ * <p>
379
+ * Properties related to the binary content will also be updated (e.g. <code>length</code>). A new version will
380
+ * be created if the binary content of a <em>group file</em> is updated.
381
+ * </p>
382
+ * <p>
383
+ * <strong>Permission note!</strong> Current user must be authorized to alter the file node that
384
+ * should be updated (e.g. {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
385
+ * </p>Updates the binary content of an existing file using a sv:temporaryFile.
386
+ *
387
+ * <p>
388
+ * Properties related to the binary content will also be updated (e.g. <code>length</code>). A new version will
389
+ * be created if the binary content of a <em>group file</em> is updated.
390
+ * </p>
391
+ * <p>
392
+ * <strong>Permission note!</strong> Current user must be authorized to alter the file node that
393
+ * should be updated (e.g. {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
394
+ * </p>Gets the contents of a file as a String using the UTF-8 character encoding.
395
+ *
396
+ * <p>
397
+ * <em>Note! This is mere a convenience method for {@link #getContentAsString(Node, String)} using UTF-8 as character encoding.</em>
398
+ * </p>Gets the contents of a file as a String using a given character encoding.
399
+ *
400
+ * <p>
401
+ * <em>Note!</em> This method operates on character-based file nodes only! That is:
402
+ * </p>
403
+ * <ul>
404
+ * <li>
405
+ * Files that are of <em>text type</em> (as of {@link senselogic.sitevision.api.webresource.mime.MimeTypeUtil#isTextType(String)}).
406
+ * </li>
407
+ * <li>
408
+ * Files that are of <em>xml type</em> (as of {@link senselogic.sitevision.api.webresource.mime.MimeTypeUtil#isXmlType(String)}).
409
+ * </li>
410
+ * <li>
411
+ * Common "cross-over/mixed-types" files, such as <em>json</em> (application type) and <em>svg</em> (image type).
412
+ * </li>
413
+ * </ul>Alters the name of a file.
414
+ *
415
+ * <p>
416
+ * If no file is specified a <code>NullPointerException</code> is thrown.
417
+ * If the node is not a sv:file an <code>IllegalArgumentException</code> is thrown.
418
+ * If no name is provided a <code>NullPointerException</code> is thrown.
419
+ * </p>
420
+ *
421
+ * <p>
422
+ * <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
423
+ * on the file node that should be updated (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
424
+ * <em>Updating a file for a <code>sv:userIdentity</code> requires
425
+ * {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_USER_IDENTITIES} on current page.</em>
426
+ * </p>Modifies versioning for a file.
427
+ *
428
+ * <p>
429
+ * <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
430
+ * on the file node that should be updated (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
431
+ * </p>Modifies download protection for a file.
432
+ *
433
+ * <p>
434
+ * <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission and MANAGE_DOWNLOAD_PROTECTION
435
+ * permission on the file node that should be updated (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}
436
+ * and {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_DOWNLOAD_PROTECTION}).
437
+ * </p>
438
+ *
439
+ * <p>
440
+ * <em>Tip! Use {@link senselogic.sitevision.api.property.PropertyUtil} or {@link senselogic.sitevision.api.property.Properties}
441
+ * to check current state, i.e. the "downloadProtected" boolean property.</em>
442
+ * </p>
443
+ * @author Mikael Wikblom
444
+ * @since Sitevision 2.6.2
445
+ */
446
+ declare namespace FileUtil {
447
+ export {
448
+ createFiles,
449
+ createFile,
450
+ createFileFromBase64,
451
+ createFileFromTemporary,
452
+ updateBinaryContent,
453
+ updateBinaryContentFromBase64,
454
+ updateBinaryContentFromTemporary,
455
+ getContentAsString,
456
+ renameFile,
457
+ setVersioned,
458
+ setDownloadProtected,
459
+ };
460
+ }
461
+
462
+ export default FileUtil;
@@ -0,0 +1,120 @@
1
+ import Filter from "../../hidden/senselogic/sitevision/api/search/searcher/component/Filter";
2
+
3
+ /**
4
+ * Adds a filter query.
5
+ *
6
+ * <p>
7
+ * <em>Solr note: this is the 'fq' param</em>
8
+ * </p>
9
+ *
10
+ * <p>
11
+ * <strong>Query syntax note! </strong>Query strings should be expressed according to the <em>Solr query syntax</em>.
12
+ * The syntax is basically the <em>
13
+ * <a href="http://lucene.apache.org/core/4_10_3/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#package_description">
14
+ * Lucene query syntax</a></em>
15
+ * with <em><a href="http://wiki.apache.org/solr/SolrQuerySyntax#Differences_From_Lucene_Query_Parser">some minor differences</a></em>.
16
+ * Also note that a general recommendation is to always use the <em>prefix operators</em> (<code>+</code>/<code>-</code>) instead of the
17
+ * <em>boolean keywords</em> (AND/OR/NOT) to avoid unexpected behaviour. For deeper understanding, see for example
18
+ * <a href="http://searchhub.org/2011/12/28/why-not-and-or-and-not/">Why Not AND, OR, And NOT?</a>.
19
+ * </p>
20
+ * @param aFilterQuery the filter query, a <code>null</code> or whitespace-only value will be ignored
21
+ * @return this builder
22
+ */
23
+ export function addFilterQuery(aFilterQuery: string): FilterBuilder;
24
+
25
+ /**
26
+ * Removes all previously added filter queries.
27
+ * @return this builder
28
+ */
29
+ export function clearFilterQueries(): FilterBuilder;
30
+
31
+ /**
32
+ * Creates a Filter component instance using currently specified state/behaviour.
33
+ * @return a filter component
34
+ * @throws IllegalStateException if no filter query exist
35
+ */
36
+ export function build(): Filter;
37
+
38
+ /**
39
+ * <p>
40
+ * Builder for creating a {@link senselogic.sitevision.api.search.searcher.component.Filter} component with specific behaviour.
41
+ * </p>
42
+ *
43
+ * <p>
44
+ * FilterBuilder has one <strong>mandatory attribute</strong>:
45
+ * </p>
46
+ * <ul>
47
+ * <li>
48
+ * <em>filter query</em> - The query/queries. Must be non-null.
49
+ * </li>
50
+ * </ul>
51
+ *
52
+ * <p>
53
+ * Using the FilterBuilder is pretty straightforward, if you remember that it is <strong>stateful</strong>. Conceptually you
54
+ * would typically use it like this:
55
+ * </p>
56
+ * <ol>
57
+ * <li>Get the FilterBuilder</li>
58
+ * <li>Add a filter query</li>
59
+ * <li>Possibly add another filter query</li>
60
+ * <li>...</li>
61
+ * <li>Do build</li>
62
+ * </ol>
63
+ * <p>
64
+ * When you have built a <code>Filter</code> instance, you can re-use the FilterBuilder to build more instances. Typically like:
65
+ * </p>
66
+ * <ol>
67
+ * <li>Clear the filter queries</li>
68
+ * <li>Add a filter query</li>
69
+ * <li>Possibly add another filter query</li>
70
+ * <li>...</li>
71
+ * <li>Do build</li>
72
+ * </ol>
73
+ * <p>
74
+ * <strong>Example of how this strategy could be implemented in Velocity:</strong>
75
+ * </p>
76
+ * <pre><code>
77
+ * <em>## Get the builder</em>
78
+ * #set ($searchFactory = $sitevisionUtils.searchFactory)
79
+ * #set ($filterBuilder = $searchFactory.FilterBuilder)
80
+ *
81
+ * <em>## Create a Filter</em>
82
+ * #set ($nameMustStartWithAndersFilter = $filterBuilder.addFilterQuery('+name:Anders*').build())
83
+ *
84
+ * <em>## Re-use the builder to create another Filter</em>
85
+ * #set ($nameMustContainMagnusFilter = $filterBuilder.clearFilterQueries().addFilterQuery('+name.analyzed:magnus*').build())
86
+ * </code></pre>
87
+ *
88
+ * <p>
89
+ * <strong>Tip!</strong> The {@link senselogic.sitevision.api.base.Builder Builder interface documentation} contains
90
+ * more information about Builders and how to work with them!
91
+ * </p>
92
+ *
93
+ * <p>
94
+ * An instance of the Sitevision class implementing this interface can be obtained via
95
+ * {@link senselogic.sitevision.api.search.SearchFactory#getFilterBuilder()}.
96
+ * See {@link senselogic.sitevision.api.search.SearchFactory} for how to obtain an instance of the <code>SearchFactory</code> interface.
97
+ * </p>Adds a filter query.
98
+ *
99
+ * <p>
100
+ * <em>Solr note: this is the 'fq' param</em>
101
+ * </p>
102
+ *
103
+ * <p>
104
+ * <strong>Query syntax note! </strong>Query strings should be expressed according to the <em>Solr query syntax</em>.
105
+ * The syntax is basically the <em>
106
+ * <a href="http://lucene.apache.org/core/4_10_3/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#package_description">
107
+ * Lucene query syntax</a></em>
108
+ * with <em><a href="http://wiki.apache.org/solr/SolrQuerySyntax#Differences_From_Lucene_Query_Parser">some minor differences</a></em>.
109
+ * Also note that a general recommendation is to always use the <em>prefix operators</em> (<code>+</code>/<code>-</code>) instead of the
110
+ * <em>boolean keywords</em> (AND/OR/NOT) to avoid unexpected behaviour. For deeper understanding, see for example
111
+ * <a href="http://searchhub.org/2011/12/28/why-not-and-or-and-not/">Why Not AND, OR, And NOT?</a>.
112
+ * </p>Removes all previously added filter queries.Creates a Filter component instance using currently specified state/behaviour.
113
+ * @author Magnus Lövgren
114
+ * @since Sitevision 3.6
115
+ */
116
+ declare namespace FilterBuilder {
117
+ export { addFilterQuery, clearFilterQueries, build };
118
+ }
119
+
120
+ export default FilterBuilder;