@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,73 @@
|
|
|
1
|
+
import Query from "../Query";
|
|
2
|
+
import QueryObjectModelFactory from "../qom/QueryObjectModelFactory";
|
|
3
|
+
import Node from "../../Node";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* This interface encapsulates methods for the management of search queries.
|
|
7
|
+
* Provides methods for the creation and retrieval of search queries.
|
|
8
|
+
*
|
|
9
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Creates a new query by specifying the query <code>statement</code> itself
|
|
10
|
+
* and the <code>language</code> in which the query is stated. The
|
|
11
|
+
* <code>language</code> must be a string from among those returned by
|
|
12
|
+
* QueryManager.getSupportedQueryLanguages().Returns a <code>QueryObjectModelFactory</code> with which a JCR-JQOM
|
|
13
|
+
* query can be built programmatically.Retrieves an existing persistent query.
|
|
14
|
+
* <p>
|
|
15
|
+
* Persistent queries are created by first using {@link
|
|
16
|
+
* QueryManager#createQuery} to create a <code>Query</code> object and then
|
|
17
|
+
* calling <code>Query.save</code> to persist the query to a location in the
|
|
18
|
+
* workspace.Returns an array of strings representing all query languages supported by
|
|
19
|
+
* this repository. This set must include at least the strings represented
|
|
20
|
+
* by the constants {@link Query#JCR_SQL2} and {@link Query#JCR_JQOM}}. An
|
|
21
|
+
* implementation may also support other languages, including the deprecated
|
|
22
|
+
* languages of JCR 1.0: {@link Query#XPATH} and {@link Query#SQL}.
|
|
23
|
+
|
|
24
|
+
*/
|
|
25
|
+
interface QueryManager {
|
|
26
|
+
/**
|
|
27
|
+
* Creates a new query by specifying the query <code>statement</code> itself
|
|
28
|
+
* and the <code>language</code> in which the query is stated. The
|
|
29
|
+
* <code>language</code> must be a string from among those returned by
|
|
30
|
+
* QueryManager.getSupportedQueryLanguages().
|
|
31
|
+
* @param statement a <code>String</code>
|
|
32
|
+
* @param language a <code>String</code>
|
|
33
|
+
* @return a <code>Query</code> object
|
|
34
|
+
* @throws InvalidQueryException if the query statement is syntactically invalid or the specified language is not supported.
|
|
35
|
+
* @throws RepositoryException if another error occurs.
|
|
36
|
+
*/
|
|
37
|
+
createQuery(statement: string, language: string): Query;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Returns a <code>QueryObjectModelFactory</code> with which a JCR-JQOM
|
|
41
|
+
* query can be built programmatically.
|
|
42
|
+
* @return a <code>QueryObjectModelFactory</code> object
|
|
43
|
+
* @since JCR 2.0
|
|
44
|
+
*/
|
|
45
|
+
getQOMFactory(): QueryObjectModelFactory;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Retrieves an existing persistent query.
|
|
49
|
+
* <p>
|
|
50
|
+
* Persistent queries are created by first using {@link
|
|
51
|
+
* QueryManager#createQuery} to create a <code>Query</code> object and then
|
|
52
|
+
* calling <code>Query.save</code> to persist the query to a location in the
|
|
53
|
+
* workspace.
|
|
54
|
+
* @param node a persisted query (that is, a node of type <code>nt:query</code>).
|
|
55
|
+
* @return a <code>Query</code> object.
|
|
56
|
+
* @throws InvalidQueryException If <code>node</code> is not a valid persisted query (that is, a node of type <code>nt:query</code>).
|
|
57
|
+
* @throws RepositoryException if another error occurs
|
|
58
|
+
*/
|
|
59
|
+
getQuery(node: Node): Query;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Returns an array of strings representing all query languages supported by
|
|
63
|
+
* this repository. This set must include at least the strings represented
|
|
64
|
+
* by the constants {@link Query#JCR_SQL2} and {@link Query#JCR_JQOM}}. An
|
|
65
|
+
* implementation may also support other languages, including the deprecated
|
|
66
|
+
* languages of JCR 1.0: {@link Query#XPATH} and {@link Query#SQL}.
|
|
67
|
+
* @return A string array.
|
|
68
|
+
* @throws RepositoryException if an error occurs.
|
|
69
|
+
*/
|
|
70
|
+
getSupportedQueryLanguages(): string;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export default QueryManager;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import RowIterator from "../RowIterator";
|
|
2
|
+
import NodeIterator from "../../NodeIterator";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A <code>QueryResult</code> object. Returned by {@link
|
|
6
|
+
* javax.jcr.query.Query#execute()}.
|
|
7
|
+
*
|
|
8
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns an array of all the column names in the table view of this result
|
|
9
|
+
* set.Returns an iterator over the <code>Row</code>s of the result table. The
|
|
10
|
+
* rows are returned according to the ordering specified in the query.Returns an iterator over all nodes that match the query. The nodes are
|
|
11
|
+
* returned according to the ordering specified in the query.Returns an array of all the selector names that were used in the query
|
|
12
|
+
* that created this result. If the query did not have a selector name then
|
|
13
|
+
* an empty array is returned.
|
|
14
|
+
|
|
15
|
+
*/
|
|
16
|
+
interface QueryResult {
|
|
17
|
+
/**
|
|
18
|
+
* Returns an array of all the column names in the table view of this result
|
|
19
|
+
* set.
|
|
20
|
+
* @return a <code>String</code> array holding the column names.
|
|
21
|
+
* @throws RepositoryException if an error occurs.
|
|
22
|
+
*/
|
|
23
|
+
getColumnNames(): string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Returns an iterator over the <code>Row</code>s of the result table. The
|
|
27
|
+
* rows are returned according to the ordering specified in the query.
|
|
28
|
+
* @return a <code>RowIterator</code>
|
|
29
|
+
* @throws RepositoryException if this call is the second time either <code>getRows</code> or <code>getNodes</code> has been called on the same <code>QueryResult</code> object or if another error occurs.
|
|
30
|
+
*/
|
|
31
|
+
getRows(): RowIterator;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Returns an iterator over all nodes that match the query. The nodes are
|
|
35
|
+
* returned according to the ordering specified in the query.
|
|
36
|
+
* @return a <code>NodeIterator</code>
|
|
37
|
+
* @throws RepositoryException if the query contains more than one selector, if this call is the second time either <code>getRows</code> or <code>getNodes</code> has been called on the same <code>QueryResult</code> object or if another error occurs.
|
|
38
|
+
*/
|
|
39
|
+
getNodes(): NodeIterator;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Returns an array of all the selector names that were used in the query
|
|
43
|
+
* that created this result. If the query did not have a selector name then
|
|
44
|
+
* an empty array is returned.
|
|
45
|
+
* @return a <code>String</code> array holding the selector names.
|
|
46
|
+
* @throws RepositoryException if an error occurs.
|
|
47
|
+
*/
|
|
48
|
+
getSelectorNames(): string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export default QueryResult;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import Value from "../../Value";
|
|
2
|
+
import Node from "../../Node";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A row in the query result table.
|
|
6
|
+
*
|
|
7
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns an array of all the values in the same order as the column names
|
|
8
|
+
* returned by {@link QueryResult#getColumnNames()}.Returns the value of the indicated column in this <code>Row</code>.Returns the <code>Node</code> corresponding to this <code>Row</code>.Returns the <code>Node</code> corresponding to this <code>Row</code> and
|
|
9
|
+
* the specified selector. If this <code>Row</code> is from a result
|
|
10
|
+
* involving outer joins, it may have no <code>Node</code> corresponding to
|
|
11
|
+
* the specified selector. In such a case this method returns
|
|
12
|
+
* <code>null</code>.Equivalent to <code>Row.getNode().getPath()</code>. However, some
|
|
13
|
+
* implementations may be able gain efficiency by not resolving the actual
|
|
14
|
+
* <code>Node</code>.Equivalent to <code>Row.getNode(selectorName).getPath()</code>. However,
|
|
15
|
+
* some implementations may be able gain efficiency by not resolving the
|
|
16
|
+
* actual <code>Node</code>. If this <code>Row</code> is from a result
|
|
17
|
+
* involving outer joins, it may have no <code>Node</code> corresponding to
|
|
18
|
+
* the specified selector. In such a case this method returns
|
|
19
|
+
* <code>null</code>.Returns the full text search score for this row associated with the
|
|
20
|
+
* default selector. This corresponds to the score of a particular node.
|
|
21
|
+
* <p>
|
|
22
|
+
* If no <code>FullTextSearchScore</code> AQM object is associated with the
|
|
23
|
+
* default selector this method will still return a value. However, in that
|
|
24
|
+
* case the returned value may not be meaningful or may simply reflect the
|
|
25
|
+
* minimum possible relevance level (for example, in some systems this might
|
|
26
|
+
* be a score of 0).
|
|
27
|
+
* <p>
|
|
28
|
+
* Note, in JCR-SQL2 a <code>FullTextSearchScore</code> AQM object is
|
|
29
|
+
* represented by a <code>SCORE()</code> function. In JCR-JQOM it is
|
|
30
|
+
* represented by a Java object of type <code>javax.jcr.query.qom.FullTextSearchScore</code>.Returns the full text search score for this row associated with the
|
|
31
|
+
* specified selector. This corresponds to the score of a particular node.
|
|
32
|
+
* <p>
|
|
33
|
+
* If no <code>FullTextSearchScore</code> AQM object is associated with the
|
|
34
|
+
* selector <code>selectorName</code> this method will still return a value.
|
|
35
|
+
* However, in that case the returned value may not be meaningful or may
|
|
36
|
+
* simply reflect the minimum possible relevance level (for example, in some
|
|
37
|
+
* systems this might be a score of 0).
|
|
38
|
+
* <p>
|
|
39
|
+
* Note, in JCR-SQL2 a <code>FullTextSearchScore</code> AQM object is
|
|
40
|
+
* represented by a <code>SCORE()</code> function. In JCR-JQOM it is
|
|
41
|
+
* represented by a Java object of type <code>javax.jcr.query.qom.FullTextSearchScore</code>.
|
|
42
|
+
* <p>
|
|
43
|
+
* If this <code>Row</code> is from a result involving outer joins, it may
|
|
44
|
+
* have no <code>Node</code> corresponding to the specified selector. In
|
|
45
|
+
* such a case this method returns an implementation selected value, as it
|
|
46
|
+
* would if there were no <code>FullTextSearchScore</code> associated with
|
|
47
|
+
* the selector.
|
|
48
|
+
|
|
49
|
+
*/
|
|
50
|
+
interface Row {
|
|
51
|
+
/**
|
|
52
|
+
* Returns an array of all the values in the same order as the column names
|
|
53
|
+
* returned by {@link QueryResult#getColumnNames()}.
|
|
54
|
+
* @return a <code>Value</code> array.
|
|
55
|
+
* @throws RepositoryException if an error occurs
|
|
56
|
+
*/
|
|
57
|
+
getValues(): Value;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Returns the value of the indicated column in this <code>Row</code>.
|
|
61
|
+
* @param columnName name of query result table column
|
|
62
|
+
* @return a <code>Value</code>
|
|
63
|
+
* @throws ItemNotFoundException if <code>columnName</code> is not among the column names of the query result table.
|
|
64
|
+
* @throws RepositoryException if another error occurs.
|
|
65
|
+
*/
|
|
66
|
+
getValue(columnName: string): Value;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Returns the <code>Node</code> corresponding to this <code>Row</code>.
|
|
70
|
+
* @return a <code>Node</code>
|
|
71
|
+
* @throws RepositoryException if this query has more than one selector (and therefore, this <code>Row</code> corresponds to more than one <code>Node</code>) or if another error occurs.
|
|
72
|
+
* @since JCR 2.0
|
|
73
|
+
*/
|
|
74
|
+
getNode(): Node;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Returns the <code>Node</code> corresponding to this <code>Row</code> and
|
|
78
|
+
* the specified selector. If this <code>Row</code> is from a result
|
|
79
|
+
* involving outer joins, it may have no <code>Node</code> corresponding to
|
|
80
|
+
* the specified selector. In such a case this method returns
|
|
81
|
+
* <code>null</code>.
|
|
82
|
+
* @param selectorName a <code>String</code>
|
|
83
|
+
* @return a <code>Node</code>
|
|
84
|
+
* @throws RepositoryException if <code>selectorName</code> is not the alias of a selector in this query or if another error occurs.
|
|
85
|
+
* @since JCR 2.0
|
|
86
|
+
*/
|
|
87
|
+
getNode(selectorName: string): Node;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Equivalent to <code>Row.getNode().getPath()</code>. However, some
|
|
91
|
+
* implementations may be able gain efficiency by not resolving the actual
|
|
92
|
+
* <code>Node</code>.
|
|
93
|
+
* @return a <code>String</code>
|
|
94
|
+
* @throws RepositoryException if this query has more than one selector (and therefore, this <code>Row</code> corresponds to more than one <code>Node</code>) or if another error occurs.
|
|
95
|
+
* @since JCR 2.0
|
|
96
|
+
*/
|
|
97
|
+
getPath(): string;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Equivalent to <code>Row.getNode(selectorName).getPath()</code>. However,
|
|
101
|
+
* some implementations may be able gain efficiency by not resolving the
|
|
102
|
+
* actual <code>Node</code>. If this <code>Row</code> is from a result
|
|
103
|
+
* involving outer joins, it may have no <code>Node</code> corresponding to
|
|
104
|
+
* the specified selector. In such a case this method returns
|
|
105
|
+
* <code>null</code>.
|
|
106
|
+
* @param selectorName a <code>String</code>
|
|
107
|
+
* @return a <code>String</code>
|
|
108
|
+
* @throws RepositoryException if <code>selectorName</code> is not the alias of a selector in this query or if another error occurs.
|
|
109
|
+
* @since JCR 2.0
|
|
110
|
+
*/
|
|
111
|
+
getPath(selectorName: string): string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Returns the full text search score for this row associated with the
|
|
115
|
+
* default selector. This corresponds to the score of a particular node.
|
|
116
|
+
* <p>
|
|
117
|
+
* If no <code>FullTextSearchScore</code> AQM object is associated with the
|
|
118
|
+
* default selector this method will still return a value. However, in that
|
|
119
|
+
* case the returned value may not be meaningful or may simply reflect the
|
|
120
|
+
* minimum possible relevance level (for example, in some systems this might
|
|
121
|
+
* be a score of 0).
|
|
122
|
+
* <p>
|
|
123
|
+
* Note, in JCR-SQL2 a <code>FullTextSearchScore</code> AQM object is
|
|
124
|
+
* represented by a <code>SCORE()</code> function. In JCR-JQOM it is
|
|
125
|
+
* represented by a Java object of type <code>javax.jcr.query.qom.FullTextSearchScore</code>.
|
|
126
|
+
* @return a <code>double</code>
|
|
127
|
+
* @throws RepositoryException if this query has more than one selector (and therefore, this <code>Row</code> corresponds to more than one <code>Node</code>) or if another error occurs.
|
|
128
|
+
* @since JCR 2.0
|
|
129
|
+
*/
|
|
130
|
+
getScore(): number;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Returns the full text search score for this row associated with the
|
|
134
|
+
* specified selector. This corresponds to the score of a particular node.
|
|
135
|
+
* <p>
|
|
136
|
+
* If no <code>FullTextSearchScore</code> AQM object is associated with the
|
|
137
|
+
* selector <code>selectorName</code> this method will still return a value.
|
|
138
|
+
* However, in that case the returned value may not be meaningful or may
|
|
139
|
+
* simply reflect the minimum possible relevance level (for example, in some
|
|
140
|
+
* systems this might be a score of 0).
|
|
141
|
+
* <p>
|
|
142
|
+
* Note, in JCR-SQL2 a <code>FullTextSearchScore</code> AQM object is
|
|
143
|
+
* represented by a <code>SCORE()</code> function. In JCR-JQOM it is
|
|
144
|
+
* represented by a Java object of type <code>javax.jcr.query.qom.FullTextSearchScore</code>.
|
|
145
|
+
* <p>
|
|
146
|
+
* If this <code>Row</code> is from a result involving outer joins, it may
|
|
147
|
+
* have no <code>Node</code> corresponding to the specified selector. In
|
|
148
|
+
* such a case this method returns an implementation selected value, as it
|
|
149
|
+
* would if there were no <code>FullTextSearchScore</code> associated with
|
|
150
|
+
* the selector.
|
|
151
|
+
* @param selectorName a <code>String</code>
|
|
152
|
+
* @return a <code>double</code>
|
|
153
|
+
* @throws RepositoryException if <code>selectorName</code> is not the alias of a selector in this query or if another error occurs.
|
|
154
|
+
* @since JCR 2.0
|
|
155
|
+
*/
|
|
156
|
+
getScore(selectorName: string): number;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export default Row;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Row from "../Row";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Allows easy iteration through a list of <code>Row</code>s with
|
|
5
|
+
* <code>nextRow</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>Row</code> in the iteration.
|
|
9
|
+
|
|
10
|
+
*/
|
|
11
|
+
interface RowIterator {
|
|
12
|
+
/**
|
|
13
|
+
* Returns the next <code>Row</code> in the iteration.
|
|
14
|
+
* @return the next <code>Row</code> in the iteration.
|
|
15
|
+
* @throws java.util.NoSuchElementException if iteration has no more <code>Row</code>s.
|
|
16
|
+
*/
|
|
17
|
+
nextRow(): Row;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default RowIterator;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import Constraint from "../Constraint";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Performs a logical conjunction of two other constraints.
|
|
5
|
+
* <p>
|
|
6
|
+
* To satisfy the <code>And</code> constraint, a node-tuple must satisfy both
|
|
7
|
+
* {@link #getConstraint1 constraint1} and {@link #getConstraint2 constraint2}.
|
|
8
|
+
*
|
|
9
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Gets the first constraint.Gets the second constraint.
|
|
10
|
+
* @since JCR 2.0
|
|
11
|
+
*/
|
|
12
|
+
interface And {
|
|
13
|
+
/**
|
|
14
|
+
* Gets the first constraint.
|
|
15
|
+
* @return the constraint; non-null
|
|
16
|
+
*/
|
|
17
|
+
getConstraint1(): Constraint;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Gets the second constraint.
|
|
21
|
+
* @return the constraint; non-null
|
|
22
|
+
*/
|
|
23
|
+
getConstraint2(): Constraint;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export default And;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Evaluates to the value of a bind variable.
|
|
3
|
+
*
|
|
4
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Gets the name of the bind variable.
|
|
5
|
+
* @since JCR 2.0
|
|
6
|
+
*/
|
|
7
|
+
interface BindVariableValue {
|
|
8
|
+
/**
|
|
9
|
+
* Gets the name of the bind variable.
|
|
10
|
+
* @return the bind variable name; non-null
|
|
11
|
+
*/
|
|
12
|
+
getBindVariableName(): string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default BindVariableValue;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests whether the {@link #getSelectorName selector} node is a child of a node
|
|
3
|
+
* reachable by absolute path {@link #getParentPath path}.
|
|
4
|
+
* <p>
|
|
5
|
+
* A node-tuple satisfies the constraint only if:
|
|
6
|
+
* <pre> selectorNode.getParent().isSame(session.getNode(path))</pre>
|
|
7
|
+
* would return true, where <code>selectorNode</code> is the node for the
|
|
8
|
+
* specified selector.
|
|
9
|
+
*
|
|
10
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Gets the name of the selector against which to apply this constraint.Gets the absolute path.
|
|
11
|
+
* @since JCR 2.0
|
|
12
|
+
*/
|
|
13
|
+
interface ChildNode {
|
|
14
|
+
/**
|
|
15
|
+
* Gets the name of the selector against which to apply this constraint.
|
|
16
|
+
* @return the selector name; non-null
|
|
17
|
+
*/
|
|
18
|
+
getSelectorName(): string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Gets the absolute path.
|
|
22
|
+
* @return the path; non-null
|
|
23
|
+
*/
|
|
24
|
+
getParentPath(): string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default ChildNode;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests whether the {@link #getChildSelectorName childSelector} node is a child
|
|
3
|
+
* of the {@link #getParentSelectorName parentSelector} node. A node-tuple
|
|
4
|
+
* satisfies the constraint only if:
|
|
5
|
+
* <pre> childSelectorNode.getParent().isSame(parentSelectorNode)</pre>
|
|
6
|
+
* would return true, where <code>childSelectorNode</code> is the node for
|
|
7
|
+
* {@link #getChildSelectorName childSelector} and <code>parentSelectorNode</code>
|
|
8
|
+
* is the node for {@link #getParentSelectorName parentSelector}.
|
|
9
|
+
*
|
|
10
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Gets the name of the child selector.Gets the name of the parent selector.
|
|
11
|
+
* @since JCR 2.0
|
|
12
|
+
*/
|
|
13
|
+
interface ChildNodeJoinCondition {
|
|
14
|
+
/**
|
|
15
|
+
* Gets the name of the child selector.
|
|
16
|
+
* @return the selector name; non-null
|
|
17
|
+
*/
|
|
18
|
+
getChildSelectorName(): string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Gets the name of the parent selector.
|
|
22
|
+
* @return the selector name; non-null
|
|
23
|
+
*/
|
|
24
|
+
getParentSelectorName(): string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default ChildNodeJoinCondition;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines a column to include in the tabular view of query results.
|
|
3
|
+
* <p>
|
|
4
|
+
* If {@link #getPropertyName property} is not specified, a column is included
|
|
5
|
+
* for each single-valued non-residual property of the node type specified by
|
|
6
|
+
* the <code>nodeType</code> attribute of {@link #getSelectorName selector}.
|
|
7
|
+
* <p>
|
|
8
|
+
* If {@link #getPropertyName property} is specified, {@link #getColumnName
|
|
9
|
+
* columnName} is required and used to name the column in the tabular results.
|
|
10
|
+
* If {@link #getPropertyName property} is not specified, {@link #getColumnName
|
|
11
|
+
* columnName} must not be specified, and the included columns will be named
|
|
12
|
+
* "{@link #getSelectorName selector}.<i>propertyName</i>".
|
|
13
|
+
*
|
|
14
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Gets the name of the selector.Gets the name of the property.Gets the column name.
|
|
15
|
+
* <p>
|
|
16
|
+
* @since JCR 2.0
|
|
17
|
+
*/
|
|
18
|
+
interface Column {
|
|
19
|
+
/**
|
|
20
|
+
* Gets the name of the selector.
|
|
21
|
+
* @return the selector name; non-null
|
|
22
|
+
*/
|
|
23
|
+
getSelectorName(): string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Gets the name of the property.
|
|
27
|
+
* @return the property name, or null to include a column for each single-value non-residual property of the selector's node type
|
|
28
|
+
*/
|
|
29
|
+
getPropertyName(): string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Gets the column name.
|
|
33
|
+
* <p>
|
|
34
|
+
* @return the column name; must be null if <code>getPropertyName</code> is null and non-null otherwise
|
|
35
|
+
*/
|
|
36
|
+
getColumnName(): string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export default Column;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import DynamicOperand from "../DynamicOperand";
|
|
2
|
+
import StaticOperand from "../StaticOperand";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Filters node-tuples based on the outcome of a binary operation.
|
|
6
|
+
* <p>
|
|
7
|
+
* For any comparison, {@link #getOperand2 operand2} always evaluates to a
|
|
8
|
+
* scalar value. In contrast, {@link #getOperand1 operand1} may evaluate to an
|
|
9
|
+
* array of values (for example, the value of a multi-valued property), in which
|
|
10
|
+
* case the comparison is separately performed for each element of the array,
|
|
11
|
+
* and the <code>Comparison</code> constraint is satisfied as a whole if the
|
|
12
|
+
* comparison against <i>any</i> element of the array is satisfied.
|
|
13
|
+
* <p>
|
|
14
|
+
* If {@link #getOperand1 operand1} and {@link #getOperand2 operand2} evaluate
|
|
15
|
+
* to values of different property types, the value of {@link #getOperand2
|
|
16
|
+
* operand2} is converted to the property type of the value of {@link
|
|
17
|
+
* #getOperand1 operand1}. If the type conversion fails, the query is invalid.
|
|
18
|
+
* <p>
|
|
19
|
+
* If {@link #getOperator operator} is not supported for the property type of
|
|
20
|
+
* {@link #getOperand1 operand1}, the query is invalid.
|
|
21
|
+
* <p>
|
|
22
|
+
* If {@link #getOperand1 operand1} evaluates to null (for example, if the
|
|
23
|
+
* operand evaluates the value of a property which does not exist), the
|
|
24
|
+
* constraint is not satisfied.
|
|
25
|
+
* <p>
|
|
26
|
+
* The <code>JCR_OPERATOR_EQUAL_TO</code> operator is satisfied <i>only if</i>
|
|
27
|
+
* the value of {@link #getOperand1 operand1} equals the value of {@link
|
|
28
|
+
* #getOperand2 operand2}.
|
|
29
|
+
* <p>
|
|
30
|
+
* The <code>JCR_OPERATOR_NOT_EQUAL_TO</code> operator is satisfied
|
|
31
|
+
* <i>unless</i> the value of {@link #getOperand1 operand1} equals the value of
|
|
32
|
+
* {@link #getOperand2 operand2}.
|
|
33
|
+
* <p>
|
|
34
|
+
* The <code>JCR_OPERATOR_LESSS_THAN</code> operator is satisfied <i>only if</i>
|
|
35
|
+
* the value of {@link #getOperand1 operand1} is ordered <i>before</i> the value
|
|
36
|
+
* of {@link #getOperand2 operand2}.
|
|
37
|
+
* <p>
|
|
38
|
+
* The <code>JCR_OPERATOR_LESS_THAN_OR_EQUAL_TO</code> operator is satisfied
|
|
39
|
+
* <i>unless</i> the value of {@link #getOperand1 operand1} is ordered
|
|
40
|
+
* <i>after</i> the value of {@link #getOperand2 operand2}.
|
|
41
|
+
* <p>
|
|
42
|
+
* The <code>JCR_OPERATOR_GREATER_THAN</code> operator is satisfied <i>only
|
|
43
|
+
* if</i> the value of {@link #getOperand1 operand1} is ordered <i>after</i> the
|
|
44
|
+
* value of {@link #getOperand2 operand2}.
|
|
45
|
+
* <p>
|
|
46
|
+
* The <code>JCR_OPERATOR_GREATER_THAN_OR_EQUAL_TO</code> operator is satisfied
|
|
47
|
+
* <i>unless</i> the value of {@link #getOperand1 operand1} is ordered
|
|
48
|
+
* <i>before</i> the value of {@link #getOperand2 operand2}.
|
|
49
|
+
* <p>
|
|
50
|
+
* The <code>JCR_OPERATOR_LIKE</code> operator is satisfied only if the value of
|
|
51
|
+
* {@link #getOperand1 operand1} <i>matches</i> the pattern specified by the
|
|
52
|
+
* value of {@link #getOperand2 operand2}, where in the pattern: <ul> <li>the
|
|
53
|
+
* character "<code>%</code>" matches zero or more characters, and</li> <li>the
|
|
54
|
+
* character "<code>_</code>" (underscore) matches exactly one character,
|
|
55
|
+
* and</li> <li>the string "<code>\<i>x</i></code>" matches the character
|
|
56
|
+
* "<code><i>x</i></code>", and</li> <li>all other characters match
|
|
57
|
+
* themselves.</li> </ul>
|
|
58
|
+
*
|
|
59
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Gets the first operand.Gets the operator.Gets the second operand.
|
|
60
|
+
* @since JCR 2.0
|
|
61
|
+
*/
|
|
62
|
+
interface Comparison {
|
|
63
|
+
/**
|
|
64
|
+
* Gets the first operand.
|
|
65
|
+
* @return the operand; non-null
|
|
66
|
+
*/
|
|
67
|
+
getOperand1(): DynamicOperand;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Gets the operator.
|
|
71
|
+
* @return either <ul> <li>{@link QueryObjectModelConstants#JCR_OPERATOR_EQUAL_TO},</li> <li>{@link QueryObjectModelConstants#JCR_OPERATOR_NOT_EQUAL_TO},</li> <li>{@link QueryObjectModelConstants#JCR_OPERATOR_LESS_THAN},</li> <li>{@link QueryObjectModelConstants#JCR_OPERATOR_LESS_THAN_OR_EQUAL_TO},</li> <li>{@link QueryObjectModelConstants#JCR_OPERATOR_GREATER_THAN},</li> <li>{@link QueryObjectModelConstants#JCR_OPERATOR_GREATER_THAN_OR_EQUAL_TO}, or</li> <li>{@link QueryObjectModelConstants#JCR_OPERATOR_LIKE}</li> </ul>
|
|
72
|
+
*/
|
|
73
|
+
getOperator(): string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Gets the second operand.
|
|
77
|
+
* @return the operand; non-null
|
|
78
|
+
*/
|
|
79
|
+
getOperand2(): StaticOperand;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export default Comparison;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Filters the set of node-tuples formed by evaluating the query's selectors and
|
|
3
|
+
* the joins between them.
|
|
4
|
+
* <p>
|
|
5
|
+
* To be included in the query results, a node-tuple must satisfy the
|
|
6
|
+
* constraint.
|
|
7
|
+
*
|
|
8
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
9
|
+
* @since JCR 2.0
|
|
10
|
+
*/
|
|
11
|
+
interface Constraint {}
|
|
12
|
+
|
|
13
|
+
export default Constraint;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests whether the {@link #getSelectorName selector} node is a descendant of a
|
|
3
|
+
* node reachable by absolute path {@link #getAncestorPath path}.
|
|
4
|
+
* <p>
|
|
5
|
+
* A node-tuple satisfies the constraint only if:
|
|
6
|
+
* </p>
|
|
7
|
+
* <pre> selectorNode.getAncestor(n).isSame(session.getNode(path)) &&
|
|
8
|
+
* selectorNode.getDepth() > n</pre>
|
|
9
|
+
* <p>
|
|
10
|
+
* would return true for some non-negative integer <code>n</code>, where {@link
|
|
11
|
+
* #getSelectorName selectorNode} is the node for the specified selector.
|
|
12
|
+
* </p>
|
|
13
|
+
*
|
|
14
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Gets the name of the selector against which to apply this constraint.Gets the absolute path.
|
|
15
|
+
* @since JCR 2.0
|
|
16
|
+
*/
|
|
17
|
+
interface DescendantNode {
|
|
18
|
+
/**
|
|
19
|
+
* Gets the name of the selector against which to apply this constraint.
|
|
20
|
+
* @return the selector name; non-null
|
|
21
|
+
*/
|
|
22
|
+
getSelectorName(): string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Gets the absolute path.
|
|
26
|
+
* @return the path; non-null
|
|
27
|
+
*/
|
|
28
|
+
getAncestorPath(): string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export default DescendantNode;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests whether the {@link #getDescendantSelectorName descendantSelector} node
|
|
3
|
+
* is a descendant of the {@link #getAncestorSelectorName ancestorSelector}
|
|
4
|
+
* node. A node-tuple satisfies the constraint only if:
|
|
5
|
+
* <pre> descendantSelectorNode.getAncestor(n).isSame(ancestorSelectorNode) &&
|
|
6
|
+
* descendantSelectorNode.getDepth() > n</pre>
|
|
7
|
+
* would return true some some non-negative integer <code>n</code>, where
|
|
8
|
+
* <code>descendantSelectorNode</code> is the node for {@link
|
|
9
|
+
* #getDescendantSelectorName descendantSelector} and <code>ancestorSelectorNode</code>
|
|
10
|
+
* is the node for {@link #getAncestorSelectorName ancestorSelector}.
|
|
11
|
+
*
|
|
12
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Gets the name of the descendant selector.Gets the name of the ancestor selector.
|
|
13
|
+
* @since JCR 2.0
|
|
14
|
+
*/
|
|
15
|
+
interface DescendantNodeJoinCondition {
|
|
16
|
+
/**
|
|
17
|
+
* Gets the name of the descendant selector.
|
|
18
|
+
* @return the selector name; non-null
|
|
19
|
+
*/
|
|
20
|
+
getDescendantSelectorName(): string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Gets the name of the ancestor selector.
|
|
24
|
+
* @return the selector name; non-null
|
|
25
|
+
*/
|
|
26
|
+
getAncestorSelectorName(): string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default DescendantNodeJoinCondition;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests whether the value of a property in a first selector is equal to the
|
|
3
|
+
* value of a property in a second selector.
|
|
4
|
+
* <p>
|
|
5
|
+
* A node-tuple satisfies the constraint only if: <ul> <li>{@link
|
|
6
|
+
* #getSelector1Name selector1} has a property named {@link #getProperty1Name
|
|
7
|
+
* property1}, and</li> <li>{@link #getSelector2Name selector2} has a property
|
|
8
|
+
* named {@link #getProperty2Name property2}, and</li> <li>the value of {@link
|
|
9
|
+
* #getProperty1Name property1} equals the value of {@link #getProperty2Name
|
|
10
|
+
* property2}</li> </ul>
|
|
11
|
+
*
|
|
12
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Gets the name of the first selector.Gets the property name in the first selector.Gets the name of the second selector.Gets the property name in the second selector.
|
|
13
|
+
* @since JCR 2.0
|
|
14
|
+
*/
|
|
15
|
+
interface EquiJoinCondition {
|
|
16
|
+
/**
|
|
17
|
+
* Gets the name of the first selector.
|
|
18
|
+
* @return the selector name; non-null
|
|
19
|
+
*/
|
|
20
|
+
getSelector1Name(): string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Gets the property name in the first selector.
|
|
24
|
+
* @return the property name; non-null
|
|
25
|
+
*/
|
|
26
|
+
getProperty1Name(): string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Gets the name of the second selector.
|
|
30
|
+
* @return the selector name; non-null
|
|
31
|
+
*/
|
|
32
|
+
getSelector2Name(): string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Gets the property name in the second selector.
|
|
36
|
+
* @return the property name; non-null
|
|
37
|
+
*/
|
|
38
|
+
getProperty2Name(): string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export default EquiJoinCondition;
|