@sitevision/api 1.0.20 → 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.
- package/hidden/javax/jcr/Binary/index.d.ts +86 -0
- package/hidden/javax/jcr/Credentials/index.d.ts +11 -0
- package/hidden/javax/jcr/ImportUUIDBehavior/index.d.ts +11 -0
- package/hidden/javax/jcr/Item/index.d.ts +353 -0
- package/hidden/javax/jcr/ItemVisitor/index.d.ts +41 -0
- package/hidden/javax/jcr/NamespaceRegistry/index.d.ts +100 -0
- package/hidden/javax/jcr/Node/index.d.ts +2808 -0
- package/hidden/javax/jcr/NodeIterator/index.d.ts +18 -0
- package/hidden/javax/jcr/Property/index.d.ts +801 -0
- package/hidden/javax/jcr/PropertyIterator/index.d.ts +17 -0
- package/hidden/javax/jcr/RangeIterator/index.d.ts +75 -0
- package/hidden/javax/jcr/Repository/index.d.ts +318 -0
- package/hidden/javax/jcr/RepositoryFactory/index.d.ts +90 -0
- package/hidden/javax/jcr/Value/index.d.ts +190 -0
- package/hidden/javax/jcr/ValueFactory/index.d.ts +179 -0
- package/hidden/javax/jcr/Workspace/index.d.ts +1061 -0
- package/hidden/javax/jcr/lock/Lock/index.d.ts +142 -0
- package/hidden/javax/jcr/lock/LockManager/index.d.ts +217 -0
- package/hidden/javax/jcr/nodetype/ItemDefinition/index.d.ts +219 -0
- package/hidden/javax/jcr/nodetype/NodeDefinition/index.d.ts +158 -0
- package/hidden/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +74 -0
- package/hidden/javax/jcr/nodetype/NodeType/index.d.ts +349 -0
- package/hidden/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +248 -0
- package/hidden/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +16 -0
- package/hidden/javax/jcr/nodetype/NodeTypeManager/index.d.ts +218 -0
- package/hidden/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +98 -0
- package/hidden/javax/jcr/nodetype/PropertyDefinition/index.d.ts +536 -0
- package/hidden/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +97 -0
- package/hidden/javax/jcr/observation/Event/index.d.ts +133 -0
- package/hidden/javax/jcr/observation/EventIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/observation/EventJournal/index.d.ts +22 -0
- package/hidden/javax/jcr/observation/EventListener/index.d.ts +23 -0
- package/hidden/javax/jcr/observation/EventListenerIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/observation/ObservationManager/index.d.ts +227 -0
- package/hidden/javax/jcr/query/Query/index.d.ts +201 -0
- package/hidden/javax/jcr/query/QueryManager/index.d.ts +73 -0
- package/hidden/javax/jcr/query/QueryResult/index.d.ts +51 -0
- package/hidden/javax/jcr/query/Row/index.d.ts +159 -0
- package/hidden/javax/jcr/query/RowIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/query/qom/And/index.d.ts +26 -0
- package/hidden/javax/jcr/query/qom/BindVariableValue/index.d.ts +15 -0
- package/hidden/javax/jcr/query/qom/ChildNode/index.d.ts +27 -0
- package/hidden/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +27 -0
- package/hidden/javax/jcr/query/qom/Column/index.d.ts +39 -0
- package/hidden/javax/jcr/query/qom/Comparison/index.d.ts +82 -0
- package/hidden/javax/jcr/query/qom/Constraint/index.d.ts +13 -0
- package/hidden/javax/jcr/query/qom/DescendantNode/index.d.ts +31 -0
- package/hidden/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +29 -0
- package/hidden/javax/jcr/query/qom/DynamicOperand/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +41 -0
- package/hidden/javax/jcr/query/qom/FullTextSearch/index.d.ts +89 -0
- package/hidden/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +24 -0
- package/hidden/javax/jcr/query/qom/Join/index.d.ts +36 -0
- package/hidden/javax/jcr/query/qom/JoinCondition/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/Length/index.d.ts +24 -0
- package/hidden/javax/jcr/query/qom/Literal/index.d.ts +18 -0
- package/hidden/javax/jcr/query/qom/LowerCase/index.d.ts +26 -0
- package/hidden/javax/jcr/query/qom/NodeLocalName/index.d.ts +16 -0
- package/hidden/javax/jcr/query/qom/NodeName/index.d.ts +16 -0
- package/hidden/javax/jcr/query/qom/Not/index.d.ts +20 -0
- package/hidden/javax/jcr/query/qom/Operand/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/Or/index.d.ts +30 -0
- package/hidden/javax/jcr/query/qom/Ordering/index.d.ts +53 -0
- package/hidden/javax/jcr/query/qom/PropertyExistence/index.d.ts +24 -0
- package/hidden/javax/jcr/query/qom/PropertyValue/index.d.ts +25 -0
- package/hidden/javax/jcr/query/qom/QueryObjectModel/index.d.ts +64 -0
- package/hidden/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +638 -0
- package/hidden/javax/jcr/query/qom/SameNode/index.d.ts +27 -0
- package/hidden/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +36 -0
- package/hidden/javax/jcr/query/qom/Selector/index.d.ts +35 -0
- package/hidden/javax/jcr/query/qom/Source/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/StaticOperand/index.d.ts +10 -0
- package/hidden/javax/jcr/query/qom/UpperCase/index.d.ts +26 -0
- package/hidden/javax/jcr/retention/Hold/index.d.ts +34 -0
- package/hidden/javax/jcr/retention/RetentionManager/index.d.ts +189 -0
- package/hidden/javax/jcr/retention/RetentionPolicy/index.d.ts +21 -0
- package/hidden/javax/jcr/security/AccessControlEntry/index.d.ts +24 -0
- package/hidden/javax/jcr/security/AccessControlList/index.d.ts +91 -0
- package/hidden/javax/jcr/security/AccessControlManager/index.d.ts +297 -0
- package/hidden/javax/jcr/security/AccessControlPolicy/index.d.ts +11 -0
- package/hidden/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +22 -0
- package/hidden/javax/jcr/security/Privilege/index.d.ts +117 -0
- package/hidden/javax/jcr/version/Version/index.d.ts +121 -0
- package/hidden/javax/jcr/version/VersionHistory/index.d.ts +307 -0
- package/hidden/javax/jcr/version/VersionIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/version/VersionManager/index.d.ts +1082 -0
- package/hidden/senselogic/sitevision/api/base/Builder/index.d.ts +102 -0
- package/hidden/senselogic/sitevision/api/base/Filter/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/base/FilterSplit/index.d.ts +50 -0
- package/hidden/senselogic/sitevision/api/base/Loadable/index.d.ts +15 -0
- package/hidden/senselogic/sitevision/api/base/Resolver/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/base/Wrapper/index.d.ts +24 -0
- package/hidden/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +417 -0
- package/hidden/senselogic/sitevision/api/format/NumericFormatter/index.d.ts +80 -0
- package/hidden/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +100 -0
- package/hidden/senselogic/sitevision/api/i18n/Currency/index.d.ts +120 -0
- package/hidden/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +45 -0
- package/hidden/senselogic/sitevision/api/link/CustomLinkRenderData/index.d.ts +65 -0
- package/hidden/senselogic/sitevision/api/mail/Mail/index.d.ts +32 -0
- package/hidden/senselogic/sitevision/api/message/MessageTextLinker/index.d.ts +15 -0
- package/hidden/senselogic/sitevision/api/metadata/value/LinkValue/index.d.ts +23 -0
- package/hidden/senselogic/sitevision/api/metadata/value/RelatedValue/index.d.ts +23 -0
- package/hidden/senselogic/sitevision/api/property/VersionedPropertyUtil/index.d.ts +642 -0
- package/hidden/senselogic/sitevision/api/render/BuddyIconRenderer/BuddyIconInfo/index.d.ts +51 -0
- package/hidden/senselogic/sitevision/api/render/ImageScaler/index.d.ts +58 -0
- package/hidden/senselogic/sitevision/api/render/TextModuleRenderer/index.d.ts +301 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ArticleUtilConstants/index.d.ts +85 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ExceptionSuppressingProxyConstants/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/IndexingUtilConstants/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/LinkPageUtilConstants/index.d.ts +67 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MathInstanceConstants/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MimeTypeUtilConstants/index.d.ts +19 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/NodeTypeUtilConstants/index.d.ts +1243 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/OutputUtilConstants/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PageUtilConstants/index.d.ts +91 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletContextUtilConstants/index.d.ts +27 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletUtilConstants/index.d.ts +19 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/QueryStringUtilConstants/index.d.ts +19 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchHitConstants/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchResultConstants/index.d.ts +37 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/VersionUtilConstants/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/index.d.ts +8 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityContext/index.d.ts +50 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityEvaluator/index.d.ts +89 -0
- package/hidden/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +119 -0
- package/hidden/senselogic/sitevision/api/script/app/RestAppInvoker/index.d.ts +272 -0
- package/hidden/senselogic/sitevision/api/script/factory/TypedArgument/index.d.ts +43 -0
- package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingCollection/index.d.ts +94 -0
- package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingIterator/index.d.ts +117 -0
- package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +90 -0
- package/hidden/senselogic/sitevision/api/search/SearchFieldUtil/index.d.ts +89 -0
- package/hidden/senselogic/sitevision/api/search/SearchHighlighter/index.d.ts +45 -0
- package/hidden/senselogic/sitevision/api/search/SearchHit/index.d.ts +1176 -0
- package/hidden/senselogic/sitevision/api/search/SearchResult/index.d.ts +414 -0
- package/hidden/senselogic/sitevision/api/search/facet/SearchFacetField/index.d.ts +27 -0
- package/hidden/senselogic/sitevision/api/search/facet/SearchFacetValue/index.d.ts +61 -0
- package/hidden/senselogic/sitevision/api/search/searcher/Searcher/index.d.ts +277 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Filter/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Highlight/index.d.ts +29 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Monitor/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Parser/index.d.ts +35 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Sort/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/SpellCheck/index.d.ts +29 -0
- package/hidden/senselogic/sitevision/api/search/sort/CustomSort/index.d.ts +82 -0
- package/hidden/senselogic/sitevision/api/search/suggestion/SearchSuggestion/index.d.ts +21 -0
- package/hidden/senselogic/sitevision/api/security/DirectoryAttributes/index.d.ts +70 -0
- package/hidden/senselogic/sitevision/api/security/MessageDigester/index.d.ts +50 -0
- package/hidden/senselogic/sitevision/api/security/RoleAssignment/index.d.ts +72 -0
- package/hidden/senselogic/sitevision/api/security/RoleMatcher/index.d.ts +29 -0
- package/hidden/senselogic/sitevision/api/security/SecretStore/index.d.ts +55 -0
- package/hidden/senselogic/sitevision/api/security/UserUtil/index.d.ts +80 -0
- package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +36 -0
- package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilterChain/index.d.ts +32 -0
- package/hidden/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +599 -0
- package/hidden/senselogic/sitevision/api/webresource/LinkTarget/index.d.ts +20 -0
- package/hidden/senselogic/sitevision/api/xml/XmlElement/index.d.ts +55 -0
- package/hidden/senselogic/sitevision/api/xml/XmlElementHandler/index.d.ts +17 -0
- package/package.json +2 -4
- package/server/AliasUtil/index.d.ts +25 -0
- package/server/AliasUtil/index.js +10 -0
- package/server/ArchiveUtil/index.d.ts +65 -11
- package/server/ArraysInstance/index.d.ts +1846 -0
- package/server/ArticleUtil/index.d.ts +381 -69
- package/server/AuthenticationUtil/index.d.ts +106 -0
- package/server/BookmarkUtil/index.d.ts +36 -28
- package/server/BuddyIconRenderer/index.d.ts +240 -0
- package/server/ClientUtil/index.d.ts +18 -4
- package/server/CollaborationFactory/index.d.ts +42 -25
- package/server/CollaborationGroupFolderUtil/index.d.ts +40 -29
- package/server/CollaborationGroupTemplateUtil/index.d.ts +71 -39
- package/server/CollaborationGroupUtil/index.d.ts +128 -55
- package/server/CollectionsInstance/index.d.ts +738 -0
- package/server/ColorUtil/index.d.ts +22 -17
- package/server/CompoundAndFilterBuilder/index.d.ts +60 -0
- package/server/CompoundComparatorBuilder/index.d.ts +63 -0
- package/server/CompoundOrFilterBuilder/index.d.ts +59 -0
- package/server/ContentNodeUtil/index.d.ts +76 -0
- package/server/CurrencyFactory/index.d.ts +135 -0
- package/server/DateUtil/index.d.ts +154 -77
- package/server/DecorationUtil/index.d.ts +23 -0
- package/server/DeviceUtil/index.d.ts +36 -0
- package/server/DirectoryUtil/index.d.ts +107 -47
- package/server/DocTypeUtil/index.d.ts +149 -0
- package/server/EndecUtil/index.d.ts +537 -91
- package/server/ExtendedDismaxParserBuilder/index.d.ts +311 -0
- package/server/FileIconRenderer/index.d.ts +346 -0
- package/server/FileUtil/index.d.ts +462 -0
- package/server/FilterBuilder/index.d.ts +120 -0
- package/server/FolderUtil/index.d.ts +161 -0
- package/server/FontUtil/index.d.ts +49 -0
- package/server/FormatterBuilderFactory/index.d.ts +129 -0
- package/server/HighlightBuilder/index.d.ts +194 -0
- package/server/IconUtil/index.d.ts +37 -0
- package/server/ImageLinkRenderer/index.d.ts +134 -0
- package/server/ImageRenderer/index.d.ts +613 -231
- package/server/ImageUtil/index.d.ts +430 -0
- package/server/IndexUtil/index.d.ts +71 -0
- package/server/IndexingUtil/index.d.ts +92 -0
- package/server/InstanceCreatorUtil/index.d.ts +661 -0
- package/server/InstanceTypeUtil/index.d.ts +202 -0
- package/server/JwtUtil/index.d.ts +217 -0
- package/server/LandingPageUtil/index.d.ts +67 -50
- package/server/LinkPageUtil/index.d.ts +468 -0
- package/server/LinkRenderer/index.d.ts +1157 -0
- package/server/LinkTargetBuilder/index.d.ts +146 -0
- package/server/LinkValueBuilder/index.d.ts +129 -52
- package/server/ListWrapper/index.d.ts +172 -0
- package/server/LocaleUtil/index.d.ts +695 -61
- package/server/LogUtil/index.d.ts +118 -77
- package/server/MailBuilder/index.d.ts +238 -0
- package/server/MailUtil/index.d.ts +98 -0
- package/server/MathInstance/index.d.ts +681 -0
- package/server/MessageDigesterFactory/index.d.ts +49 -0
- package/server/MetadataDefinitionUtil/index.d.ts +118 -0
- package/server/MetadataUtil/index.d.ts +524 -79
- package/server/MimeTypeUtil/index.d.ts +316 -0
- package/server/MonitorBuilder/index.d.ts +51 -0
- package/server/NodeComparatorUtil/index.d.ts +397 -0
- package/server/NodeFactoryUtil/index.d.ts +32 -0
- package/server/NodeFilterUtil/index.d.ts +924 -0
- package/server/NodeIteratorUtil/index.d.ts +322 -72
- package/server/NodeResolverUtil/index.d.ts +767 -0
- package/server/NodeTreeUtil/index.d.ts +339 -63
- package/server/NodeTypeUtil/index.d.ts +391 -197
- package/server/OfflineVersionPropertyUtil/index.d.ts +30 -0
- package/server/OnlineVersionPropertyUtil/index.d.ts +30 -0
- package/server/OutputUtil/index.d.ts +641 -0
- package/server/PageUtil/index.d.ts +330 -0
- package/server/PermissionUtil/index.d.ts +650 -0
- package/server/PortletContextUtil/index.d.ts +118 -37
- package/server/PortletContextUtil/index.js +1 -0
- package/server/PortletUtil/index.d.ts +40 -0
- package/server/PrincipalUtil/index.d.ts +51 -0
- package/server/Properties/index.d.ts +185 -38
- package/server/PropertyUtil/index.d.ts +2330 -406
- package/server/PublishingUtil/index.d.ts +385 -49
- package/server/QueryStringUtil/index.d.ts +737 -0
- package/server/RedirectUtil/index.d.ts +98 -0
- package/server/RelatedValueBuilder/index.d.ts +81 -39
- package/server/Requester/index.d.ts +441 -65
- package/server/ResourceLocatorUtil/index.d.ts +483 -227
- package/server/RestApi/index.d.ts +208 -23
- package/server/RestAppInvokerFactory/index.d.ts +73 -0
- package/server/RoleAssignmentBuilder/index.d.ts +60 -0
- package/server/RoleMatcherBuilder/index.d.ts +59 -0
- package/server/RoleUtil/index.d.ts +57 -0
- package/server/ScriptUtil/index.d.ts +625 -143
- package/server/SearchFactory/index.d.ts +133 -0
- package/server/SearchUtil/index.d.ts +164 -0
- package/server/SearcherBuilder/index.d.ts +260 -0
- package/server/Session/index.d.ts +1758 -0
- package/server/SimpleUserUtil/index.d.ts +39 -30
- package/server/SiteCookieUtil/index.d.ts +78 -53
- package/server/SortBuilder/index.d.ts +111 -0
- package/server/SpellCheckBuilder/index.d.ts +68 -0
- package/server/StandardParserBuilder/index.d.ts +112 -0
- package/server/StructureUtil/index.d.ts +167 -0
- package/server/SubscriberUtil/index.d.ts +122 -0
- package/server/SubscriptionUtil/index.d.ts +197 -0
- package/server/SystemUserUtil/index.d.ts +201 -98
- package/server/TagUtil/index.d.ts +193 -0
- package/server/TemplateUtil/index.d.ts +217 -0
- package/server/TemporaryFileNodeBuilder/index.d.ts +63 -0
- package/server/TemporaryNodeBuilder/index.d.ts +241 -0
- package/server/TextModuleRendererBuilder/index.d.ts +68 -0
- package/server/TimestampUtil/index.d.ts +98 -82
- package/server/TranslationUtil/index.d.ts +175 -0
- package/server/TrashcanUtil/index.d.ts +193 -24
- package/server/UserDataUtil/index.d.ts +167 -85
- package/server/UserFactory/index.d.ts +45 -30
- package/server/UserFieldRenderer/index.d.ts +258 -0
- package/server/UserIdentityUtil/index.d.ts +61 -29
- package/server/UserUtil/index.d.ts +69 -28
- package/server/Utils/index.d.ts +870 -12
- package/server/VelocityRenderer/index.d.ts +248 -0
- package/server/VersionUtil/index.d.ts +15 -12
- package/server/WebContentUtil/index.d.ts +644 -0
- package/server/WebResourceFactory/index.d.ts +66 -0
- package/server/XSLTUtil/index.d.ts +49 -10
- package/server/XmlParserUtil/index.d.ts +82 -81
- package/builtins/Binary/index.d.ts +0 -3
- package/builtins/Calendar/index.d.ts +0 -3
- package/builtins/Collection/index.d.ts +0 -3
- package/builtins/Date/index.d.ts +0 -3
- package/builtins/InputStream/index.d.ts +0 -3
- package/builtins/Instant/index.d.ts +0 -3
- package/builtins/List/index.d.ts +0 -3
- package/builtins/LocalDateTime/index.d.ts +0 -3
- package/builtins/Locale/index.d.ts +0 -3
- package/builtins/Node/index.d.ts +0 -3
- package/builtins/NodeIterator/index.d.ts +0 -27
- package/builtins/Property/index.d.ts +0 -3
- package/builtins/Serializable/index.d.ts +0 -3
- package/builtins/Set/index.d.ts +0 -3
- package/builtins/Throwable/index.d.ts +0 -3
- package/builtins/byte/index.d.ts +0 -3
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An event fired by the observation mechanism.
|
|
3
|
+
*
|
|
4
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns the type of this event: a constant defined by this interface. One
|
|
5
|
+
* of: <ul> <li><code>NODE_ADDED</code></li> <li><code>NODE_REMOVED</code></li>
|
|
6
|
+
* <li><code>PROPERTY_ADDED</code></li> <li><code>PROPERTY_REMOVED</code></li>
|
|
7
|
+
* <li><code>PROPERTY_CHANGED</code></li> <li><code>NODE_MOVED</code></li>
|
|
8
|
+
* <li><code>PERSIST</code></li> </ul>Returns the absolute path associated with this event or <code>null</code>
|
|
9
|
+
* if this event has no associated identifier. The meaning of the associated
|
|
10
|
+
* path depends upon the type of the event. See event type constants above.Returns the user ID connected with this event. This is the string
|
|
11
|
+
* returned by {@link javax.jcr.Session#getUserID} of the session that
|
|
12
|
+
* caused the event.Returns the identifier associated with this event or <code>null</code> if
|
|
13
|
+
* this event has no associated identifier. The meaning of the associated
|
|
14
|
+
* identifier depends upon the type of the event. See event type constants
|
|
15
|
+
* above.Returns the information map associated with this event. The meaning of
|
|
16
|
+
* the map depends upon the type of the event. See event type constants
|
|
17
|
+
* above.Returns the user data set through {@link ObservationManager#setUserData}
|
|
18
|
+
* on the <code>ObservationManager</code> bound to the <code>Session</code>
|
|
19
|
+
* that caused the event.Returns the date when the change was persisted that caused this event.
|
|
20
|
+
* The date is represented as a millisecond value that is an offset from the
|
|
21
|
+
* Epoch, January 1, 1970 00:00:00.000 GMT (Gregorian). The granularity of
|
|
22
|
+
* the returned value is implementation dependent.Generated on persist when a node is added. <ul> <li>{@link #getPath}
|
|
23
|
+
* returns the absolute path of the node that was added.</li> <li>{@link
|
|
24
|
+
* #getIdentifier} returns the identifier of the node that was added.</li>
|
|
25
|
+
* <li>{@link #getInfo} returns an empty <code>Map</code> object.</li>
|
|
26
|
+
* </ul>Generated on persist when a node is removed. <ul> <li>{@link #getPath}
|
|
27
|
+
* returns the absolute path of the node that was removed.</li> <li>{@link
|
|
28
|
+
* #getIdentifier} returns the identifier of the node that was removed.</li>
|
|
29
|
+
* <li>{@link #getInfo} returns an empty <code>Map</code> object.</li>
|
|
30
|
+
* </ul>Generated on persist when a property is added. <ul> <li>{@link #getPath}
|
|
31
|
+
* returns the absolute path of the property that was added.</li> <li>{@link
|
|
32
|
+
* #getIdentifier} returns the identifier of the parent node of the property
|
|
33
|
+
* that was added. <li>{@link #getInfo} returns an empty <code>Map</code>
|
|
34
|
+
* object.</li> </ul>Generated on persist when a property is removed. <ul> <li>{@link
|
|
35
|
+
* #getPath} returns the absolute path of the property that was
|
|
36
|
+
* removed.</li> <li>{@link #getIdentifier} returns the identifier of the
|
|
37
|
+
* parent node of the property that was removed. <li>{@link #getInfo}
|
|
38
|
+
* returns an empty <code>Map</code> object.</li> </ul>Generated on persist when a property is changed. <ul> <li>{@link
|
|
39
|
+
* #getPath} returns the absolute path of the property that was
|
|
40
|
+
* changed.</li> <li>{@link #getIdentifier} returns the identifier of the
|
|
41
|
+
* parent node of the property that was changed. <li>{@link #getInfo}
|
|
42
|
+
* returns an empty <code>Map</code> object.</li> </ul>Generated on persist when a node is moved. <ul> <li>{@link #getPath}
|
|
43
|
+
* returns the absolute path of the destination of the move.</li> <li>{@link
|
|
44
|
+
* #getIdentifier} returns the identifier of the moved node. <li> {@link
|
|
45
|
+
* #getInfo} If the method that caused this event was a {@link
|
|
46
|
+
* javax.jcr.Session#move Session.move} or {@link javax.jcr.Workspace#move
|
|
47
|
+
* Workspace.move} then the returned {@link java.util.Map Map} has keys
|
|
48
|
+
* <code>srcAbsPath</code> and <code>destAbsPath</code> with values
|
|
49
|
+
* corresponding to the parameters passed to the <code>move</code> method.
|
|
50
|
+
* <p>
|
|
51
|
+
* If the method that caused this event was a {@link
|
|
52
|
+
* javax.jcr.Node#orderBefore Node.orderBefore} then the returned
|
|
53
|
+
* <code>Map</code> has keys <code>srcChildRelPath</code> and
|
|
54
|
+
* <code>destChildRelPath</code> with values corresponding to the parameters
|
|
55
|
+
* passed to the <code>orderBefore</code> method. </li> </ul>If event bundling is supported, this event is used to indicate a bundle
|
|
56
|
+
* boundary within the event journal. <ul> <li>{@link #getPath} returns
|
|
57
|
+
* <code>null</code>.</li> <li>{@link #getIdentifier} returns
|
|
58
|
+
* <code>null</code>.</li> <li>{@link #getInfo} returns an empty
|
|
59
|
+
* <code>Map</code> object.</li> </ul>
|
|
60
|
+
|
|
61
|
+
*/
|
|
62
|
+
interface Event {
|
|
63
|
+
/**
|
|
64
|
+
* Returns the type of this event: a constant defined by this interface. One
|
|
65
|
+
* of: <ul> <li><code>NODE_ADDED</code></li> <li><code>NODE_REMOVED</code></li>
|
|
66
|
+
* <li><code>PROPERTY_ADDED</code></li> <li><code>PROPERTY_REMOVED</code></li>
|
|
67
|
+
* <li><code>PROPERTY_CHANGED</code></li> <li><code>NODE_MOVED</code></li>
|
|
68
|
+
* <li><code>PERSIST</code></li> </ul>
|
|
69
|
+
* @return the type of this event.
|
|
70
|
+
*/
|
|
71
|
+
getType(): number;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Returns the absolute path associated with this event or <code>null</code>
|
|
75
|
+
* if this event has no associated identifier. The meaning of the associated
|
|
76
|
+
* path depends upon the type of the event. See event type constants above.
|
|
77
|
+
* @return the absolute path associated with this event or <code>null</code>.
|
|
78
|
+
* @throws RepositoryException if an error occurs.
|
|
79
|
+
*/
|
|
80
|
+
getPath(): string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Returns the user ID connected with this event. This is the string
|
|
84
|
+
* returned by {@link javax.jcr.Session#getUserID} of the session that
|
|
85
|
+
* caused the event.
|
|
86
|
+
* @return the user ID.
|
|
87
|
+
*/
|
|
88
|
+
getUserID(): string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Returns the identifier associated with this event or <code>null</code> if
|
|
92
|
+
* this event has no associated identifier. The meaning of the associated
|
|
93
|
+
* identifier depends upon the type of the event. See event type constants
|
|
94
|
+
* above.
|
|
95
|
+
* @return the identifier associated with this event or <code>null</code>.
|
|
96
|
+
* @throws RepositoryException if an error occurs.
|
|
97
|
+
* @since JCR 2.0
|
|
98
|
+
*/
|
|
99
|
+
getIdentifier(): string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Returns the information map associated with this event. The meaning of
|
|
103
|
+
* the map depends upon the type of the event. See event type constants
|
|
104
|
+
* above.
|
|
105
|
+
* @return A <code>Map</code> containing parameter information for instances of a <code>NODE_MOVED</code> event.
|
|
106
|
+
* @throws RepositoryException if an error occurs.
|
|
107
|
+
* @since JCR 2.0
|
|
108
|
+
*/
|
|
109
|
+
getInfo(): Record<unknown, unknown>;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Returns the user data set through {@link ObservationManager#setUserData}
|
|
113
|
+
* on the <code>ObservationManager</code> bound to the <code>Session</code>
|
|
114
|
+
* that caused the event.
|
|
115
|
+
* @return The user data string.
|
|
116
|
+
* @throws RepositoryException if an error occurs.
|
|
117
|
+
* @since JCR 2.0
|
|
118
|
+
*/
|
|
119
|
+
getUserData(): string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Returns the date when the change was persisted that caused this event.
|
|
123
|
+
* The date is represented as a millisecond value that is an offset from the
|
|
124
|
+
* Epoch, January 1, 1970 00:00:00.000 GMT (Gregorian). The granularity of
|
|
125
|
+
* the returned value is implementation dependent.
|
|
126
|
+
* @return the date when the change was persisted that caused this event.
|
|
127
|
+
* @throws RepositoryException if an error occurs.
|
|
128
|
+
* @since JCR 2.0
|
|
129
|
+
*/
|
|
130
|
+
getDate(): number;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export default Event;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Event from "../Event";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Allows easy iteration through a list of <code>Event</code>s with
|
|
5
|
+
* <code>nextEvent</code> as well as a <code>skip</code> method inherited from
|
|
6
|
+
* <code>RangeIterator</code>.
|
|
7
|
+
*
|
|
8
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns the next <code>Event</code> in the iteration.
|
|
9
|
+
|
|
10
|
+
*/
|
|
11
|
+
interface EventIterator {
|
|
12
|
+
/**
|
|
13
|
+
* Returns the next <code>Event</code> in the iteration.
|
|
14
|
+
* @return the next <code>Event</code> in the iteration.
|
|
15
|
+
* @throws java.util.NoSuchElementException if iteration has no more <code>Event</code>s.
|
|
16
|
+
*/
|
|
17
|
+
nextEvent(): Event;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default EventIterator;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An <code>EventJournal</code> is an extension of <code>EventIterator</code>
|
|
3
|
+
* that provides the additional method {@link #skipTo(long)}.
|
|
4
|
+
*
|
|
5
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Skip all elements of the iterator earlier than <code>date</code>.
|
|
6
|
+
* <p>
|
|
7
|
+
* If an attempt is made to skip past the last element of the iterator, no
|
|
8
|
+
* exception is thrown but the subsequent {@link #nextEvent()} will fail.
|
|
9
|
+
* @since JCR 2.0
|
|
10
|
+
*/
|
|
11
|
+
interface EventJournal {
|
|
12
|
+
/**
|
|
13
|
+
* Skip all elements of the iterator earlier than <code>date</code>.
|
|
14
|
+
* <p>
|
|
15
|
+
* If an attempt is made to skip past the last element of the iterator, no
|
|
16
|
+
* exception is thrown but the subsequent {@link #nextEvent()} will fail.
|
|
17
|
+
* @param date a long value that represents an offset in milliseconds from the Epoch, January 1, 1970 00:00:00.000 GMT (Gregorian).
|
|
18
|
+
*/
|
|
19
|
+
skipTo(date: number): void;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export default EventJournal;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import EventIterator from "../EventIterator";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* An event listener.
|
|
5
|
+
* <p>
|
|
6
|
+
* An <code>EventListener</code> can be registered via the <code>{@link
|
|
7
|
+
* javax.jcr.observation.ObservationManager}</code> object. Event listeners are
|
|
8
|
+
* notified asynchronously, and see events after they occur and the transaction
|
|
9
|
+
* is committed. An event listener only sees events for which the session that
|
|
10
|
+
* registered it has sufficient access rights.
|
|
11
|
+
*
|
|
12
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>This method is called when a bundle of events is dispatched.
|
|
13
|
+
|
|
14
|
+
*/
|
|
15
|
+
interface EventListener {
|
|
16
|
+
/**
|
|
17
|
+
* This method is called when a bundle of events is dispatched.
|
|
18
|
+
* @param events The event set received.
|
|
19
|
+
*/
|
|
20
|
+
onEvent(events: EventIterator): void;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default EventListener;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import EventListener from "../EventListener";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Allows easy iteration through a list of <code>EventListener</code>s with
|
|
5
|
+
* <code>nextEventListener</code> as well as a <code>skip</code> method
|
|
6
|
+
* inherited from <code>RangeIterator</code>.
|
|
7
|
+
*
|
|
8
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns the next <code>EventListener</code> in the iteration.
|
|
9
|
+
|
|
10
|
+
*/
|
|
11
|
+
interface EventListenerIterator {
|
|
12
|
+
/**
|
|
13
|
+
* Returns the next <code>EventListener</code> in the iteration.
|
|
14
|
+
* @return the next <code>EventListener</code> in the iteration.
|
|
15
|
+
* @throws java.util.NoSuchElementException if iteration has no more <code>EventListener</code>s.
|
|
16
|
+
*/
|
|
17
|
+
nextEventListener(): EventListener;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default EventListenerIterator;
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import EventListener from "../EventListener";
|
|
2
|
+
import EventListenerIterator from "../EventListenerIterator";
|
|
3
|
+
import EventJournal from "../EventJournal";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The ObservationManager object.
|
|
7
|
+
* <p>
|
|
8
|
+
* Acquired via <code>{@link javax.jcr.Workspace#getObservationManager()}</code>.
|
|
9
|
+
* Allows for the registration and deregistration of event listeners.
|
|
10
|
+
*
|
|
11
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Adds an event listener that listens for the specified
|
|
12
|
+
* <code>eventTypes</code> (a combination of one or more event types encoded
|
|
13
|
+
* as a bit mask value).
|
|
14
|
+
* <p>
|
|
15
|
+
* The set of events will be further filtered by the access rights of the
|
|
16
|
+
* current <code>Session</code> as well as the restrictions specified by the
|
|
17
|
+
* parameters of this method. These restrictions are stated in terms of
|
|
18
|
+
* characteristics of the <i>associated parent node</i> of the event.
|
|
19
|
+
* <p>
|
|
20
|
+
* The associated parent node of an event is the parent node of the item at
|
|
21
|
+
* (or formerly at) the path returned by {@link Event#getPath}. The
|
|
22
|
+
* following restrictions are available: <ul> <li> <code>absPath</code>,
|
|
23
|
+
* <code>isDeep</code>: Only events whose associated parent node is at
|
|
24
|
+
* <code>absPath</code> (or within its subgraph, if <code>isDeep</code> is
|
|
25
|
+
* <code>true</code>) will be received. It is permissible to register a
|
|
26
|
+
* listener for a path where no node currently exists. </li> <li>
|
|
27
|
+
* <code>uuid</code>: Only events whose associated parent node has one of
|
|
28
|
+
* the identifiers in this list will be received. If his parameter is
|
|
29
|
+
* <code>null</code> then no identifier-related restriction is placed on
|
|
30
|
+
* events received. Note that specifying an empty array instead of
|
|
31
|
+
* <code>null</code> would result in no nodes being listened to. The term
|
|
32
|
+
* "UUID" is used for compatibility with JCR 1.0. </li> <li>
|
|
33
|
+
* <code>nodeTypeName</code>: Only events whose associated parent node has
|
|
34
|
+
* one of the node types (or a subtype of one of the node types) in this
|
|
35
|
+
* list will be received. If his parameter is <code>null</code> then no node
|
|
36
|
+
* type-related restriction is placed on events received. Note that
|
|
37
|
+
* specifying an empty array instead of <code>null</code> would result in no
|
|
38
|
+
* nodes types being listened to. </li> </ul> The restrictions are "ANDed"
|
|
39
|
+
* together. In other words, for a particular node to be "listened to" it
|
|
40
|
+
* must meet all the restrictions.
|
|
41
|
+
* <p>
|
|
42
|
+
* Additionally, if <code>noLocal</code> is <code>true</code>, then events
|
|
43
|
+
* generated by the session through which the listener was registered are
|
|
44
|
+
* ignored. Otherwise, they are not ignored.
|
|
45
|
+
* <p>
|
|
46
|
+
* The filters of an already-registered <code>EventListener</code> can be
|
|
47
|
+
* changed at runtime by re-registering the same <code>EventListener</code>
|
|
48
|
+
* object (i.e. the same actual Java object) with a new set of filter
|
|
49
|
+
* arguments. The implementation must ensure that no events are lost during
|
|
50
|
+
* the changeover.
|
|
51
|
+
* <p>
|
|
52
|
+
* In addition to the filters placed on a listener above, the scope of
|
|
53
|
+
* observation support, in terms of which subgraphs are observable, may also
|
|
54
|
+
* be subject to implementation-specific restrictions. For example, in some
|
|
55
|
+
* repositories observation of changes in the <code>jcr:system</code>
|
|
56
|
+
* subgraph may not be supportedDeregisters an event listener.
|
|
57
|
+
* <p>
|
|
58
|
+
* A listener may be deregistered while it is being executed. The
|
|
59
|
+
* deregistration method will block until the listener has completed
|
|
60
|
+
* executing. An exception to this rule is a listener which deregisters
|
|
61
|
+
* itself from within the <code>onEvent</code> method. In this case, the
|
|
62
|
+
* deregistration method returns immediately, but deregistration will
|
|
63
|
+
* effectively be delayed until the listener completes.Returns all event listeners that have been registered through this
|
|
64
|
+
* session. If no listeners have been registered, an empty iterator is
|
|
65
|
+
* returned.Sets the user data information that will be returned by {@link
|
|
66
|
+
* Event#getUserData}.Retrieves the event journal for this workspace. If journaled observation
|
|
67
|
+
* is not supported for this workspace, <code>null</code> is returned.
|
|
68
|
+
* Events recorded in the <code>EventJournal</code> instance will be
|
|
69
|
+
* filtered according to the current session's access rights as well as any
|
|
70
|
+
* additional restrictions specified through implemention-specific
|
|
71
|
+
* configuration.Retrieves the event journal for this workspace.
|
|
72
|
+
* <p>
|
|
73
|
+
* If journaled observation
|
|
74
|
+
* is not supported for this workspace, <code>null</code> is returned.
|
|
75
|
+
* <p>
|
|
76
|
+
* Events returned in the <code>EventJournal</code> instance will be
|
|
77
|
+
* filtered according to the parameters of this method,
|
|
78
|
+
* the current session's access restrictions as well as any
|
|
79
|
+
* additional restrictions specified through implemention-specific
|
|
80
|
+
* configuration.
|
|
81
|
+
* <p>
|
|
82
|
+
* The parameters of this method filter the event set in the same way as
|
|
83
|
+
* they do in {@link #addEventListener}.
|
|
84
|
+
|
|
85
|
+
*/
|
|
86
|
+
interface ObservationManager {
|
|
87
|
+
/**
|
|
88
|
+
* Adds an event listener that listens for the specified
|
|
89
|
+
* <code>eventTypes</code> (a combination of one or more event types encoded
|
|
90
|
+
* as a bit mask value).
|
|
91
|
+
* <p>
|
|
92
|
+
* The set of events will be further filtered by the access rights of the
|
|
93
|
+
* current <code>Session</code> as well as the restrictions specified by the
|
|
94
|
+
* parameters of this method. These restrictions are stated in terms of
|
|
95
|
+
* characteristics of the <i>associated parent node</i> of the event.
|
|
96
|
+
* <p>
|
|
97
|
+
* The associated parent node of an event is the parent node of the item at
|
|
98
|
+
* (or formerly at) the path returned by {@link Event#getPath}. The
|
|
99
|
+
* following restrictions are available: <ul> <li> <code>absPath</code>,
|
|
100
|
+
* <code>isDeep</code>: Only events whose associated parent node is at
|
|
101
|
+
* <code>absPath</code> (or within its subgraph, if <code>isDeep</code> is
|
|
102
|
+
* <code>true</code>) will be received. It is permissible to register a
|
|
103
|
+
* listener for a path where no node currently exists. </li> <li>
|
|
104
|
+
* <code>uuid</code>: Only events whose associated parent node has one of
|
|
105
|
+
* the identifiers in this list will be received. If his parameter is
|
|
106
|
+
* <code>null</code> then no identifier-related restriction is placed on
|
|
107
|
+
* events received. Note that specifying an empty array instead of
|
|
108
|
+
* <code>null</code> would result in no nodes being listened to. The term
|
|
109
|
+
* "UUID" is used for compatibility with JCR 1.0. </li> <li>
|
|
110
|
+
* <code>nodeTypeName</code>: Only events whose associated parent node has
|
|
111
|
+
* one of the node types (or a subtype of one of the node types) in this
|
|
112
|
+
* list will be received. If his parameter is <code>null</code> then no node
|
|
113
|
+
* type-related restriction is placed on events received. Note that
|
|
114
|
+
* specifying an empty array instead of <code>null</code> would result in no
|
|
115
|
+
* nodes types being listened to. </li> </ul> The restrictions are "ANDed"
|
|
116
|
+
* together. In other words, for a particular node to be "listened to" it
|
|
117
|
+
* must meet all the restrictions.
|
|
118
|
+
* <p>
|
|
119
|
+
* Additionally, if <code>noLocal</code> is <code>true</code>, then events
|
|
120
|
+
* generated by the session through which the listener was registered are
|
|
121
|
+
* ignored. Otherwise, they are not ignored.
|
|
122
|
+
* <p>
|
|
123
|
+
* The filters of an already-registered <code>EventListener</code> can be
|
|
124
|
+
* changed at runtime by re-registering the same <code>EventListener</code>
|
|
125
|
+
* object (i.e. the same actual Java object) with a new set of filter
|
|
126
|
+
* arguments. The implementation must ensure that no events are lost during
|
|
127
|
+
* the changeover.
|
|
128
|
+
* <p>
|
|
129
|
+
* In addition to the filters placed on a listener above, the scope of
|
|
130
|
+
* observation support, in terms of which subgraphs are observable, may also
|
|
131
|
+
* be subject to implementation-specific restrictions. For example, in some
|
|
132
|
+
* repositories observation of changes in the <code>jcr:system</code>
|
|
133
|
+
* subgraph may not be supported
|
|
134
|
+
* @param listener an {@link EventListener} object.
|
|
135
|
+
* @param eventTypes A combination of one or more event type constants encoded as a bitmask.
|
|
136
|
+
* @param absPath an absolute path.
|
|
137
|
+
* @param isDeep a <code>boolean</code>.
|
|
138
|
+
* @param uuid array of identifiers.
|
|
139
|
+
* @param nodeTypeName array of node type names.
|
|
140
|
+
* @param noLocal a <code>boolean</code>.
|
|
141
|
+
* @throws RepositoryException If an error occurs.
|
|
142
|
+
*/
|
|
143
|
+
addEventListener(
|
|
144
|
+
listener: EventListener,
|
|
145
|
+
eventTypes: number,
|
|
146
|
+
absPath: string,
|
|
147
|
+
isDeep: boolean,
|
|
148
|
+
uuid: string,
|
|
149
|
+
nodeTypeName: string,
|
|
150
|
+
noLocal: boolean
|
|
151
|
+
): void;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Deregisters an event listener.
|
|
155
|
+
* <p>
|
|
156
|
+
* A listener may be deregistered while it is being executed. The
|
|
157
|
+
* deregistration method will block until the listener has completed
|
|
158
|
+
* executing. An exception to this rule is a listener which deregisters
|
|
159
|
+
* itself from within the <code>onEvent</code> method. In this case, the
|
|
160
|
+
* deregistration method returns immediately, but deregistration will
|
|
161
|
+
* effectively be delayed until the listener completes.
|
|
162
|
+
* @param listener The listener to deregister.
|
|
163
|
+
* @throws RepositoryException If an error occurs.
|
|
164
|
+
*/
|
|
165
|
+
removeEventListener(listener: EventListener): void;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Returns all event listeners that have been registered through this
|
|
169
|
+
* session. If no listeners have been registered, an empty iterator is
|
|
170
|
+
* returned.
|
|
171
|
+
* @return an <code>EventListenerIterator</code>.
|
|
172
|
+
* @throws RepositoryException If an error occurs
|
|
173
|
+
*/
|
|
174
|
+
getRegisteredEventListeners(): EventListenerIterator;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Sets the user data information that will be returned by {@link
|
|
178
|
+
* Event#getUserData}.
|
|
179
|
+
* @param userData the user data
|
|
180
|
+
* @throws RepositoryException if an error occurs
|
|
181
|
+
*/
|
|
182
|
+
setUserData(userData: string): void;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Retrieves the event journal for this workspace. If journaled observation
|
|
186
|
+
* is not supported for this workspace, <code>null</code> is returned.
|
|
187
|
+
* Events recorded in the <code>EventJournal</code> instance will be
|
|
188
|
+
* filtered according to the current session's access rights as well as any
|
|
189
|
+
* additional restrictions specified through implemention-specific
|
|
190
|
+
* configuration.
|
|
191
|
+
* @return an <code>EventJournal</code> or <code>null</code>.
|
|
192
|
+
* @throws RepositoryException if an error occurs
|
|
193
|
+
*/
|
|
194
|
+
getEventJournal(): EventJournal;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Retrieves the event journal for this workspace.
|
|
198
|
+
* <p>
|
|
199
|
+
* If journaled observation
|
|
200
|
+
* is not supported for this workspace, <code>null</code> is returned.
|
|
201
|
+
* <p>
|
|
202
|
+
* Events returned in the <code>EventJournal</code> instance will be
|
|
203
|
+
* filtered according to the parameters of this method,
|
|
204
|
+
* the current session's access restrictions as well as any
|
|
205
|
+
* additional restrictions specified through implemention-specific
|
|
206
|
+
* configuration.
|
|
207
|
+
* <p>
|
|
208
|
+
* The parameters of this method filter the event set in the same way as
|
|
209
|
+
* they do in {@link #addEventListener}.
|
|
210
|
+
* @param eventTypes A combination of one or more event type constants encoded as a bitmask.
|
|
211
|
+
* @param absPath an absolute path.
|
|
212
|
+
* @param isDeep a <code>boolean</code>.
|
|
213
|
+
* @param uuid array of identifiers.
|
|
214
|
+
* @param nodeTypeName array of node type names.
|
|
215
|
+
* @return an <code>EventJournal</code> or <code>null</code>.
|
|
216
|
+
* @throws RepositoryException If an error occurs.
|
|
217
|
+
*/
|
|
218
|
+
getEventJournal(
|
|
219
|
+
eventTypes: number,
|
|
220
|
+
absPath: string,
|
|
221
|
+
isDeep: boolean,
|
|
222
|
+
uuid: string,
|
|
223
|
+
nodeTypeName: string
|
|
224
|
+
): EventJournal;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export default ObservationManager;
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import QueryResult from "../QueryResult";
|
|
2
|
+
import Node from "../../Node";
|
|
3
|
+
import Value from "../../Value";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A <code>Query</code> object.
|
|
7
|
+
*
|
|
8
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Executes this query and returns a <code>{@link QueryResult}</code>
|
|
9
|
+
* object.
|
|
10
|
+
* <p>
|
|
11
|
+
* If this <code>Query</code> contains a variable (see {@link
|
|
12
|
+
* javax.jcr.query.qom.BindVariableValue BindVariableValue}) which has not
|
|
13
|
+
* been bound to a value (see {@link Query#bindValue}) then this method
|
|
14
|
+
* throws an <code>InvalidQueryException</code>.Sets the maximum size of the result set to <code>limit</code>.Sets the start offset of the result set to <code>offset</code>.Returns the statement defined for this query.
|
|
15
|
+
* <p>
|
|
16
|
+
* If the language of this query is JCR-SQL2 or another string-based
|
|
17
|
+
* language, this method will return the statement that was used to create
|
|
18
|
+
* this query.
|
|
19
|
+
* <p>
|
|
20
|
+
* If the language of this query is JCR-JQOM, this method will return the
|
|
21
|
+
* JCR-SQL2 equivalent of the JCR-JQOM object tree. This is the standard
|
|
22
|
+
* serialization of JCR-JQOM and is also the string stored in the
|
|
23
|
+
* <code>jcr:statement</code> property if the query is persisted. See {@link
|
|
24
|
+
* #storeAsNode(String)}.Returns the language set for this query. This will be one of the query
|
|
25
|
+
* language constants returned by {@link QueryManager#getSupportedQueryLanguages}.If this is a <code>Query</code> object that has been stored using {@link
|
|
26
|
+
* Query#storeAsNode} (regardless of whether it has been <code>save</code>d
|
|
27
|
+
* yet) or retrieved using {@link QueryManager#getQuery}), then this method
|
|
28
|
+
* returns the path of the <code>nt:query</code> node that stores the
|
|
29
|
+
* query.Creates a node of type <code>nt:query</code> holding this query at
|
|
30
|
+
* <code>absPath</code> and returns that node.
|
|
31
|
+
* <p>
|
|
32
|
+
* This is a session-write method and therefore requires a
|
|
33
|
+
* <code>Session.save()</code> to dispatch the change.
|
|
34
|
+
* <p>
|
|
35
|
+
* The <code>absPath</code> provided must not have an index on its final
|
|
36
|
+
* element. If ordering is supported by the node type of the parent node
|
|
37
|
+
* then the new node is appended to the end of the child node list.
|
|
38
|
+
* <p>
|
|
39
|
+
* An <code>ItemExistsException</code> will be thrown either immediately, on
|
|
40
|
+
* dispatch or on persists, if an item at the specified path already exists
|
|
41
|
+
* and same-name siblings are not allowed. Implementations may differ on
|
|
42
|
+
* when this validation is performed.
|
|
43
|
+
* <p>
|
|
44
|
+
* A <code>PathNotFoundException</code> will be thrown either immediately,
|
|
45
|
+
* on dispatch or on persists, if the specified path implies intermediary
|
|
46
|
+
* nodes that do not exist. Implementations may differ on when this
|
|
47
|
+
* validation is performed.
|
|
48
|
+
* <p>
|
|
49
|
+
* A <code>ConstraintViolationException</code>will be thrown either
|
|
50
|
+
* immediately, on dispatch or on persists, if adding the node would violate
|
|
51
|
+
* a node type or implementation-specific constraint or if an attempt is
|
|
52
|
+
* made to add a node as the child of a property. Implementations may differ
|
|
53
|
+
* on when this validation is performed.
|
|
54
|
+
* <p>
|
|
55
|
+
* A <code>VersionException</code> will be thrown either immediately, on
|
|
56
|
+
* dispatch or on persists, if the node to which the new child is being
|
|
57
|
+
* added is read-only due to a checked-in node. Implementations may differ
|
|
58
|
+
* on when this validation is performed.
|
|
59
|
+
* <p>
|
|
60
|
+
* A <code>LockException</code> will be thrown either immediately, on
|
|
61
|
+
* dispatch or on persists, if a lock prevents the addition of the node.
|
|
62
|
+
* Implementations may differ on when this validation is performed.Binds the given <code>value</code> to the variable named
|
|
63
|
+
* <code>varName</code>.Returns the names of the bind variables in this query. If this query does
|
|
64
|
+
* not contains any bind variables then an empty array is returned.A string constant representing the XPath query language as defined in JCR
|
|
65
|
+
* 1.0.A string constant representing the SQL query language as defined in JCR
|
|
66
|
+
* 1.0.A string constant representing the JCR-SQL2 query language.A string constant representing the JCR-JQOM query language.
|
|
67
|
+
|
|
68
|
+
*/
|
|
69
|
+
interface Query {
|
|
70
|
+
/**
|
|
71
|
+
* Executes this query and returns a <code>{@link QueryResult}</code>
|
|
72
|
+
* object.
|
|
73
|
+
* <p>
|
|
74
|
+
* If this <code>Query</code> contains a variable (see {@link
|
|
75
|
+
* javax.jcr.query.qom.BindVariableValue BindVariableValue}) which has not
|
|
76
|
+
* been bound to a value (see {@link Query#bindValue}) then this method
|
|
77
|
+
* throws an <code>InvalidQueryException</code>.
|
|
78
|
+
* @return a <code>QueryResult</code> object
|
|
79
|
+
* @throws InvalidQueryException if the query contains an unbound variable.
|
|
80
|
+
* @throws RepositoryException if another error occurs.
|
|
81
|
+
*/
|
|
82
|
+
execute(): QueryResult;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Sets the maximum size of the result set to <code>limit</code>.
|
|
86
|
+
* @param limit a <code>long</code>
|
|
87
|
+
* @since JCR 2.0
|
|
88
|
+
*/
|
|
89
|
+
setLimit(limit: number): void;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Sets the start offset of the result set to <code>offset</code>.
|
|
93
|
+
* @param offset a <code>long</code>
|
|
94
|
+
* @since JCR 2.0
|
|
95
|
+
*/
|
|
96
|
+
setOffset(offset: number): void;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Returns the statement defined for this query.
|
|
100
|
+
* <p>
|
|
101
|
+
* If the language of this query is JCR-SQL2 or another string-based
|
|
102
|
+
* language, this method will return the statement that was used to create
|
|
103
|
+
* this query.
|
|
104
|
+
* <p>
|
|
105
|
+
* If the language of this query is JCR-JQOM, this method will return the
|
|
106
|
+
* JCR-SQL2 equivalent of the JCR-JQOM object tree. This is the standard
|
|
107
|
+
* serialization of JCR-JQOM and is also the string stored in the
|
|
108
|
+
* <code>jcr:statement</code> property if the query is persisted. See {@link
|
|
109
|
+
* #storeAsNode(String)}.
|
|
110
|
+
* @return the query statement.
|
|
111
|
+
*/
|
|
112
|
+
getStatement(): string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Returns the language set for this query. This will be one of the query
|
|
116
|
+
* language constants returned by {@link QueryManager#getSupportedQueryLanguages}.
|
|
117
|
+
* @return the query language.
|
|
118
|
+
*/
|
|
119
|
+
getLanguage(): string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* If this is a <code>Query</code> object that has been stored using {@link
|
|
123
|
+
* Query#storeAsNode} (regardless of whether it has been <code>save</code>d
|
|
124
|
+
* yet) or retrieved using {@link QueryManager#getQuery}), then this method
|
|
125
|
+
* returns the path of the <code>nt:query</code> node that stores the
|
|
126
|
+
* query.
|
|
127
|
+
* @return path of the node representing this query.
|
|
128
|
+
* @throws ItemNotFoundException if this query is not a stored query.
|
|
129
|
+
* @throws RepositoryException if another error occurs.
|
|
130
|
+
*/
|
|
131
|
+
getStoredQueryPath(): string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Creates a node of type <code>nt:query</code> holding this query at
|
|
135
|
+
* <code>absPath</code> and returns that node.
|
|
136
|
+
* <p>
|
|
137
|
+
* This is a session-write method and therefore requires a
|
|
138
|
+
* <code>Session.save()</code> to dispatch the change.
|
|
139
|
+
* <p>
|
|
140
|
+
* The <code>absPath</code> provided must not have an index on its final
|
|
141
|
+
* element. If ordering is supported by the node type of the parent node
|
|
142
|
+
* then the new node is appended to the end of the child node list.
|
|
143
|
+
* <p>
|
|
144
|
+
* An <code>ItemExistsException</code> will be thrown either immediately, on
|
|
145
|
+
* dispatch or on persists, if an item at the specified path already exists
|
|
146
|
+
* and same-name siblings are not allowed. Implementations may differ on
|
|
147
|
+
* when this validation is performed.
|
|
148
|
+
* <p>
|
|
149
|
+
* A <code>PathNotFoundException</code> will be thrown either immediately,
|
|
150
|
+
* on dispatch or on persists, if the specified path implies intermediary
|
|
151
|
+
* nodes that do not exist. Implementations may differ on when this
|
|
152
|
+
* validation is performed.
|
|
153
|
+
* <p>
|
|
154
|
+
* A <code>ConstraintViolationException</code>will be thrown either
|
|
155
|
+
* immediately, on dispatch or on persists, if adding the node would violate
|
|
156
|
+
* a node type or implementation-specific constraint or if an attempt is
|
|
157
|
+
* made to add a node as the child of a property. Implementations may differ
|
|
158
|
+
* on when this validation is performed.
|
|
159
|
+
* <p>
|
|
160
|
+
* A <code>VersionException</code> will be thrown either immediately, on
|
|
161
|
+
* dispatch or on persists, if the node to which the new child is being
|
|
162
|
+
* added is read-only due to a checked-in node. Implementations may differ
|
|
163
|
+
* on when this validation is performed.
|
|
164
|
+
* <p>
|
|
165
|
+
* A <code>LockException</code> will be thrown either immediately, on
|
|
166
|
+
* dispatch or on persists, if a lock prevents the addition of the node.
|
|
167
|
+
* Implementations may differ on when this validation is performed.
|
|
168
|
+
* @param absPath absolute path the query should be stored at
|
|
169
|
+
* @return the newly created node.
|
|
170
|
+
* @throws ItemExistsException if an item at the specified path already exists, same-name siblings are not allowed and this implementation performs this validation immediately.
|
|
171
|
+
* @throws PathNotFoundException if the specified path implies intermediary <code>Node</code>s that do not exist or the last element of <code>relPath</code> has an index, and this implementation performs this validation immediately.
|
|
172
|
+
* @throws ConstraintViolationException if a node type or implementation-specific constraint is violated or if an attempt is made to add a node as the child of a property and this implementation performs this validation immediately.
|
|
173
|
+
* @throws VersionException if the node to which the new child is being added is read-only due to a checked-in node and this implementation performs this validation immediately.
|
|
174
|
+
* @throws LockException if a lock prevents the addition of the node and this implementation performs this validation immediately.
|
|
175
|
+
* @throws UnsupportedRepositoryOperationException if persistent queries are not supported.
|
|
176
|
+
* @throws RepositoryException if another error occurs or if the <code>absPath</code> provided has an index on its final element.
|
|
177
|
+
*/
|
|
178
|
+
storeAsNode(absPath: string): Node;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Binds the given <code>value</code> to the variable named
|
|
182
|
+
* <code>varName</code>.
|
|
183
|
+
* @param varName name of variable in query
|
|
184
|
+
* @param value value to bind
|
|
185
|
+
* @throws IllegalArgumentException if <code>varName</code> is not a valid variable in this query.
|
|
186
|
+
* @throws javax.jcr.RepositoryException if an error occurs.
|
|
187
|
+
* @since JCR 2.0
|
|
188
|
+
*/
|
|
189
|
+
bindValue(varName: string, value: Value): void;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Returns the names of the bind variables in this query. If this query does
|
|
193
|
+
* not contains any bind variables then an empty array is returned.
|
|
194
|
+
* @return the names of the bind variables in this query.
|
|
195
|
+
* @throws RepositoryException if an error occurs.
|
|
196
|
+
* @since JCR 2.0
|
|
197
|
+
*/
|
|
198
|
+
getBindVariableNames(): string;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export default Query;
|