@sitevision/api 1.0.19 → 1.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/router/index.d.ts +1 -1
- 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,17 @@
|
|
|
1
|
+
import Property from "../Property";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Allows easy iteration through a list of <code>Property</code>s with
|
|
5
|
+
* <code>nextProperty</code> as well as a <code>skip</code> method.Returns the next <code>Property</code> in the iteration.
|
|
6
|
+
|
|
7
|
+
*/
|
|
8
|
+
interface PropertyIterator {
|
|
9
|
+
/**
|
|
10
|
+
* Returns the next <code>Property</code> in the iteration.
|
|
11
|
+
* @return the next <code>Property</code> in the iteration.
|
|
12
|
+
* @throws java.util.NoSuchElementException if iteration has no more <code>Property</code>s.
|
|
13
|
+
*/
|
|
14
|
+
nextProperty(): Property;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default PropertyIterator;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extends <code>Iterator</code> with the <code>skip</code>,
|
|
3
|
+
* <code>getSize</code> and <code>getPosition</code> methods. The base interface
|
|
4
|
+
* of all type-specific iterators in the <code>javax.jcr</code> and its sub
|
|
5
|
+
* packages.Skip a number of elements in the iterator.
|
|
6
|
+
*
|
|
7
|
+
* <p>
|
|
8
|
+
* <strong>Sitevision note:</strong> Unsupported operation
|
|
9
|
+
* </p>Returns the total number of of items available through this iterator. For
|
|
10
|
+
* example, for some node <code>N</code>, <code>N.getNodes().getSize()</code>
|
|
11
|
+
* returns the number of child nodes of <code>N</code> visible through the
|
|
12
|
+
* current <code>Session</code>. In some implementations precise information
|
|
13
|
+
* about the number of elements may not be available. In such cases this
|
|
14
|
+
* method must return -1.
|
|
15
|
+
*
|
|
16
|
+
* <p>
|
|
17
|
+
* <strong>Sitevision note:</strong> Returns -1 as of Sitevision 3.6. Denoted as 'Unsupported operation'
|
|
18
|
+
* in prior releases (i.e. throws UnsupportedOperationException).
|
|
19
|
+
* </p>Returns the current position within the iterator. The number returned is
|
|
20
|
+
* the 0-based index of the next element in the iterator, i.e. the one that
|
|
21
|
+
* will be returned on the subsequent <code>next</code> call.
|
|
22
|
+
* <p>
|
|
23
|
+
* Note that this method does not check if there is a next element, i.e. an
|
|
24
|
+
* empty iterator will always return 0.
|
|
25
|
+
*
|
|
26
|
+
* <p>
|
|
27
|
+
* <strong>Sitevision note:</strong> Unsupported operation
|
|
28
|
+
* </p>
|
|
29
|
+
|
|
30
|
+
*/
|
|
31
|
+
interface RangeIterator {
|
|
32
|
+
/**
|
|
33
|
+
* Skip a number of elements in the iterator.
|
|
34
|
+
*
|
|
35
|
+
* <p>
|
|
36
|
+
* <strong>Sitevision note:</strong> Unsupported operation
|
|
37
|
+
* </p>
|
|
38
|
+
* @param skipNum the non-negative number of elements to skip
|
|
39
|
+
* @throws java.util.NoSuchElementException if skipped past the last element in the iterator.
|
|
40
|
+
*/
|
|
41
|
+
skip(skipNum: number): void;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Returns the total number of of items available through this iterator. For
|
|
45
|
+
* example, for some node <code>N</code>, <code>N.getNodes().getSize()</code>
|
|
46
|
+
* returns the number of child nodes of <code>N</code> visible through the
|
|
47
|
+
* current <code>Session</code>. In some implementations precise information
|
|
48
|
+
* about the number of elements may not be available. In such cases this
|
|
49
|
+
* method must return -1.
|
|
50
|
+
*
|
|
51
|
+
* <p>
|
|
52
|
+
* <strong>Sitevision note:</strong> Returns -1 as of Sitevision 3.6. Denoted as 'Unsupported operation'
|
|
53
|
+
* in prior releases (i.e. throws UnsupportedOperationException).
|
|
54
|
+
* </p>
|
|
55
|
+
* @return a long
|
|
56
|
+
*/
|
|
57
|
+
getSize(): number;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Returns the current position within the iterator. The number returned is
|
|
61
|
+
* the 0-based index of the next element in the iterator, i.e. the one that
|
|
62
|
+
* will be returned on the subsequent <code>next</code> call.
|
|
63
|
+
* <p>
|
|
64
|
+
* Note that this method does not check if there is a next element, i.e. an
|
|
65
|
+
* empty iterator will always return 0.
|
|
66
|
+
*
|
|
67
|
+
* <p>
|
|
68
|
+
* <strong>Sitevision note:</strong> Unsupported operation
|
|
69
|
+
* </p>
|
|
70
|
+
* @return a long
|
|
71
|
+
*/
|
|
72
|
+
getPosition(): number;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export default RangeIterator;
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import Value from "../Value";
|
|
2
|
+
import Credentials from "../Credentials";
|
|
3
|
+
import Session from "../../../../server/Session";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The entry point into the content repository. The <code>Repository</code>
|
|
7
|
+
* object is usually acquired through the {@link RepositoryFactory}.Returns a string array holding all descriptor keys available for this
|
|
8
|
+
* implementation, both the standard descriptors defined by the string
|
|
9
|
+
* constants in this interface and any implementation-specific descriptors.
|
|
10
|
+
* Used in conjunction with {@link #getDescriptorValue(String key)} and
|
|
11
|
+
* {@link #getDescriptorValues(String key)} to query information about this
|
|
12
|
+
* repository implementation.Returns <code>true</code> if <code>key</code> is a standard descriptor
|
|
13
|
+
* defined by the string constants in this interface and <code>false</code>
|
|
14
|
+
* if it is either a valid implementation-specific key or not a valid key.
|
|
15
|
+
*
|
|
16
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns <code>true</code> if <code>key</code> is a valid single-value
|
|
17
|
+
* descriptor; otherwise returns <code>false</code>.
|
|
18
|
+
*
|
|
19
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>The value of a single-value descriptor is found by passing the key for
|
|
20
|
+
* that descriptor to this method. If <code>key</code> is the key of a
|
|
21
|
+
* multi-value descriptor or not a valid key this method returns
|
|
22
|
+
* <code>null</code>.
|
|
23
|
+
*
|
|
24
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>The value array of a multi-value descriptor is found by passing the key
|
|
25
|
+
* for that descriptor to this method. If <code>key</code> is the key of a
|
|
26
|
+
* single-value descriptor then this method returns that value as an array
|
|
27
|
+
* of size one. If <code>key</code> is not a valid key this method returns
|
|
28
|
+
* <code>null</code>.
|
|
29
|
+
*
|
|
30
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p><p> A convenience method. The call <p> <code>String s =
|
|
31
|
+
* repository.getDescriptor(key);</code> <p> is equivalent to
|
|
32
|
+
* <p>
|
|
33
|
+
* <code>Value v = repository.getDescriptorValue(key);<br>String s = (v ==
|
|
34
|
+
* null) ? null : v.getString();</code>Authenticates the user using the supplied <code>credentials</code>. If
|
|
35
|
+
* <code>workspaceName</code> is recognized as the name of an existing
|
|
36
|
+
* workspace in the repository and authorization to access that workspace is
|
|
37
|
+
* granted, then a new <code>Session</code> object is returned. The format
|
|
38
|
+
* of the string <code>workspaceName</code> depends upon the
|
|
39
|
+
* implementation.
|
|
40
|
+
* <p>
|
|
41
|
+
* If <code>credentials</code> is <code>null</code>, it is assumed that
|
|
42
|
+
* authentication is handled by a mechanism external to the repository
|
|
43
|
+
* itself (for example, through the JAAS framework) and that the repository
|
|
44
|
+
* implementation exists within a context (for example, an application
|
|
45
|
+
* server) that allows it to handle authorization of the request for access
|
|
46
|
+
* to the specified workspace.
|
|
47
|
+
* <p>
|
|
48
|
+
* If <code>workspaceName</code> is <code>null</code>, a default workspace
|
|
49
|
+
* is automatically selected by the repository implementation. This may, for
|
|
50
|
+
* example, be the "home workspace" of the user whose credentials were
|
|
51
|
+
* passed, though this is entirely up to the configuration and
|
|
52
|
+
* implementation of the repository. Alternatively, it may be a "null
|
|
53
|
+
* workspace" that serves only to provide the method {@link
|
|
54
|
+
* Workspace#getAccessibleWorkspaceNames}, allowing the client to select
|
|
55
|
+
* from among available "real" workspaces.
|
|
56
|
+
*
|
|
57
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Equivalent to <code>login(credentials, null)</code>.
|
|
58
|
+
*
|
|
59
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Equivalent to <code>login(null, workspaceName)</code>.
|
|
60
|
+
*
|
|
61
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Equivalent to <code>login(null, null)</code>.The descriptor key for the version of the specification that this
|
|
62
|
+
* repository implements. For JCR 2.0 the value of this descriptor is the
|
|
63
|
+
* <code>String</code> "2.0".The descriptor key for the name of the specification that this repository
|
|
64
|
+
* implements. For JCR 2.0 the value of this descriptor is the
|
|
65
|
+
* <code>String</code> "Content Repository for Java Technology API".The descriptor key for the name of the repository vendor. The descriptor
|
|
66
|
+
* returned for this key is a <code>String</code>.The descriptor key for the URL of the repository vendor. The descriptor
|
|
67
|
+
* returned for this key is a <code>String</code>.The descriptor key for the name of this repository implementation. The
|
|
68
|
+
* descriptor returned for this key is a <code>String</code>.The descriptor key for the version of this repository implementation. The
|
|
69
|
+
* descriptor returned for this key is a <code>String</code>.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
70
|
+
* and only if repository content can be updated through the JCR API (as
|
|
71
|
+
* opposed to having read-only access).Key to a <code>String</code> descriptor. Returns one of the following
|
|
72
|
+
* <code>javax.jcr.Repository</code> constants indicating the stability of
|
|
73
|
+
* identifiers:
|
|
74
|
+
* <dl>
|
|
75
|
+
* <dt>IDENTIFIER_STABILITY_METHOD_DURATION</dt>
|
|
76
|
+
* <dd>Identifiers may change between method calls.</dd>
|
|
77
|
+
* <dt>IDENTIFIER_STABILITY_SAVE_DURATION</dt>
|
|
78
|
+
* <dd>Identifiers are guaranteed stable within a single save/refresh cycle.</dd>
|
|
79
|
+
* <dt>IDENTIFIER_STABILITY_SESSION_DURATION</dt>
|
|
80
|
+
* <dd>Identifiers are guaranteed stable within a single session.</dd>
|
|
81
|
+
* <dt>IDENTIFIER_STABILITY_INDEFINITE_DURATION</dt>
|
|
82
|
+
* <dd>Identifiers are guaranteed to be stable forever.</dd>
|
|
83
|
+
* </dl>One of four possible values for the descriptor <code>IDENTIFIER_STABILITY</code>.
|
|
84
|
+
* Indicates that identifiers may change between method calls.One of four possible values for the descriptor <code>IDENTIFIER_STABILITY</code>.
|
|
85
|
+
* Indicates that identifiers are guaranteed stable within a single
|
|
86
|
+
* save/refresh cycle.One of four possible values for the descriptor <code>IDENTIFIER_STABILITY</code>.
|
|
87
|
+
* Indicates that identifiers are guaranteed stable within a single
|
|
88
|
+
* session.One of four possible values for the descriptor <code>IDENTIFIER_STABILITY</code>.
|
|
89
|
+
* Indicates that identifiers are guaranteed to be stable forever.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
90
|
+
* and only if XML export is supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
91
|
+
* and only if XML import is supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
92
|
+
* and only if unfiled content is supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
93
|
+
* and only if full versioning is supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
94
|
+
* and only if activities are supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
95
|
+
* and only if configurations and baselines are supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
96
|
+
* and only if access control is supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
97
|
+
* and only if locking is supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
98
|
+
* and only if asynchronous observation is supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
99
|
+
* and only if journaled observation is supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
100
|
+
* and only if retention and hold are supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
101
|
+
* and only if lifecycles are supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
102
|
+
* and only if transactions are supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
103
|
+
* and only if workspace management is supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
104
|
+
* and only if the primary node type of an existing node can be updated.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
105
|
+
* and only if the mixin node types of an existing node can be added and
|
|
106
|
+
* removed.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
107
|
+
* and only if the creation of shareable nodes is supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
108
|
+
* and only if node type management is supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
109
|
+
* and only if node and property with same name is supported.Key to <code>String</code> descriptor. Returns one of the following
|
|
110
|
+
* <code>javax.jcr.Repository</code> constants indicating the level of
|
|
111
|
+
* support for node type inheritance: <dl> <dt>NODE_TYPE_MANAGEMENT_INHERITANCE_MINIMAL</dt>
|
|
112
|
+
* <dd> Registration of primary node types is limited to those which have
|
|
113
|
+
* only nt:base as supertype. Registration of mixin node types is limited to
|
|
114
|
+
* those without any supertypes. </dd> <dt>NODE_TYPE_MANAGEMENT_INHERITANCE_SINGLE</dt>
|
|
115
|
+
* <dd> Registration of primary node types is limited to those with exactly
|
|
116
|
+
* one supertype. Registration of mixin node types is limited to those with
|
|
117
|
+
* at most one supertype. </dd> <dt>NODE_TYPE_MANAGEMENT_INHERITANCE_MULTIPLE</dt>
|
|
118
|
+
* <dd> Primary node types can be registered with one or more supertypes.
|
|
119
|
+
* Mixin node types can be registered with zero or more supertypes. </dd>
|
|
120
|
+
* </dl>One of three possible values for the descriptor <code>NODE_TYPE_MANAGEMENT_INHERITANCE</code>.
|
|
121
|
+
* Indicates that registration of primary node types is limited to those
|
|
122
|
+
* which have only nt:base as supertype. Registration of mixin node types is
|
|
123
|
+
* limited to those without any supertypes.One of three possible values for the descriptor <code>NODE_TYPE_MANAGEMENT_INHERITANCE</code>.
|
|
124
|
+
* Indicates that registration of primary node types is limited to those
|
|
125
|
+
* with exactly one supertype. Registration of mixin node types is limited
|
|
126
|
+
* to those with at most one supertype.One of three possible values for the descriptor <code>NODE_TYPE_MANAGEMENT_INHERITANCE</code>.
|
|
127
|
+
* Indicates that primary node types can be registered with one or more
|
|
128
|
+
* supertypes. Mixin node types can be registered with zero or more
|
|
129
|
+
* supertypes.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
130
|
+
* and only if override of inherited property or child node definitions is
|
|
131
|
+
* supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
132
|
+
* and only if primary items are supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
133
|
+
* and only if preservation of child node ordering is supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
134
|
+
* and only if residual property and child node definitions are supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
135
|
+
* and only if autocreated properties and child nodes are supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
136
|
+
* and only if same-name sibling child nodes are supported.Key to a <code>long[]</code> descriptor. Returns an array holding the
|
|
137
|
+
* <code>javax.jcr.PropertyType</code> constants for the property types
|
|
138
|
+
* (including <code>UNDEFINED</code>, if supported) that a registered node
|
|
139
|
+
* type can specify, or a zero-length array if registered node types cannot
|
|
140
|
+
* specify property definitions.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
141
|
+
* and only if multivalue properties are supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
142
|
+
* and only if registration of a node types with more than one
|
|
143
|
+
* <code>BINARY</code> property is permitted.Key to a <code>boolean</code> descriptor. Returns true if and only
|
|
144
|
+
* value-constraints are supported.Key to a <code>boolean</code> descriptor. Returns true if and only the
|
|
145
|
+
* update of node types is supported for node types currently in use as the
|
|
146
|
+
* type of an existing node in the repository.Key to a <code>String[]</code> descriptor. Returns an array holding the
|
|
147
|
+
* constants representing the supported query languages, or a zero-length if
|
|
148
|
+
* query is not supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
149
|
+
* and only if stored queries are supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
150
|
+
* and only if full-text search is supported.Key to <code>String</code> descriptor. Returns one of the following
|
|
151
|
+
* <code>javax.jcr.Repository</code> constants indicating the level of
|
|
152
|
+
* support for joins in queries: <dl> <dt>QUERY_JOINS_NONE</dt> <dd>Joins
|
|
153
|
+
* are not supported. Queries are limited to a single selector.</dd>
|
|
154
|
+
* <dt>QUERY_JOINS_INNER</dt> <dd> Inner joins are supported.</dd>
|
|
155
|
+
* <dt>QUERY_JOINS_INNER_OUTER</dt> <dd>Inner and outer joins are
|
|
156
|
+
* supported.</dd> </dl>One of three possible values for the descriptor <code>QUERY_JOINS
|
|
157
|
+
* </code>. Indicates that joins are not supported. Queries are limited to a
|
|
158
|
+
* single selector.One of three possible values for the descriptor <code>QUERY_JOINS
|
|
159
|
+
* </code>. Indicates that inner joins are supported.One of three possible values for the descriptor <code>QUERY_JOINS
|
|
160
|
+
* </code>. Indicates that inner and outer joins are supported.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
161
|
+
* and only if <ul> <li><code>OPTION_XML_EXPORT_SUPPORTED = true</code>
|
|
162
|
+
* and</li> <li><code>QUERY_LANGUAGES</code> is of non-zero length.</li>
|
|
163
|
+
* </ul> These semantics are identical to those in JCR 1.0. This constant is
|
|
164
|
+
* deprecated.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
165
|
+
* and only if <ul> <li><code>LEVEL_1_SUPPORTED = true</code>,</li>
|
|
166
|
+
* <li><code>WRITE_SUPPORTED = true</code> and</li> <li><code>OPTION_XML_IMPORT_SUPPORTED
|
|
167
|
+
* = true</code>.</li> </ul> These semantics are identical to those in JCR
|
|
168
|
+
* 1.0. This constant is deprecated.Key to a <code>boolean</code> descriptor. Returns <code>true</code> if
|
|
169
|
+
* and only if the (deprecated) JCR 1.0 XPath query language is supported.
|
|
170
|
+
* This constant is deprecated.Key to a <code>boolean</code> descriptor. Returns false unless the
|
|
171
|
+
* (deprecated) JCR 1.0 XPath query language is supported. If JCR 1.0 XPath
|
|
172
|
+
* is supported then this descriptor has the same semantics as in JCR 1.0.
|
|
173
|
+
* This constant is deprecated.Key to a <code>boolean</code> descriptor. Returns false unless the
|
|
174
|
+
* (deprecated) JCR 1.0 XPath query language is supported. If JCR 1.0 XPath
|
|
175
|
+
* is supported then this descriptor has the same semantics as in JCR 1.0.
|
|
176
|
+
* This constant is deprecated.
|
|
177
|
+
|
|
178
|
+
*/
|
|
179
|
+
interface Repository {
|
|
180
|
+
/**
|
|
181
|
+
* Returns a string array holding all descriptor keys available for this
|
|
182
|
+
* implementation, both the standard descriptors defined by the string
|
|
183
|
+
* constants in this interface and any implementation-specific descriptors.
|
|
184
|
+
* Used in conjunction with {@link #getDescriptorValue(String key)} and
|
|
185
|
+
* {@link #getDescriptorValues(String key)} to query information about this
|
|
186
|
+
* repository implementation.
|
|
187
|
+
* @return a string array holding all descriptor keys.
|
|
188
|
+
*/
|
|
189
|
+
getDescriptorKeys(): string;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Returns <code>true</code> if <code>key</code> is a standard descriptor
|
|
193
|
+
* defined by the string constants in this interface and <code>false</code>
|
|
194
|
+
* if it is either a valid implementation-specific key or not a valid key.
|
|
195
|
+
*
|
|
196
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
197
|
+
* @param key a descriptor key.
|
|
198
|
+
* @return whether <code>key</code> is a standard descriptor.
|
|
199
|
+
* @since JCR 2.0
|
|
200
|
+
*/
|
|
201
|
+
isStandardDescriptor(key: string): boolean;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Returns <code>true</code> if <code>key</code> is a valid single-value
|
|
205
|
+
* descriptor; otherwise returns <code>false</code>.
|
|
206
|
+
*
|
|
207
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
208
|
+
* @param key a descriptor key.
|
|
209
|
+
* @return whether the specified desdfriptor is multi-valued.
|
|
210
|
+
* @since JCR 2.0
|
|
211
|
+
*/
|
|
212
|
+
isSingleValueDescriptor(key: string): boolean;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* The value of a single-value descriptor is found by passing the key for
|
|
216
|
+
* that descriptor to this method. If <code>key</code> is the key of a
|
|
217
|
+
* multi-value descriptor or not a valid key this method returns
|
|
218
|
+
* <code>null</code>.
|
|
219
|
+
*
|
|
220
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
221
|
+
* @param key a descriptor key.
|
|
222
|
+
* @return The value of the indicated descriptor
|
|
223
|
+
* @since JCR 2.0
|
|
224
|
+
*/
|
|
225
|
+
getDescriptorValue(key: string): Value;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* The value array of a multi-value descriptor is found by passing the key
|
|
229
|
+
* for that descriptor to this method. If <code>key</code> is the key of a
|
|
230
|
+
* single-value descriptor then this method returns that value as an array
|
|
231
|
+
* of size one. If <code>key</code> is not a valid key this method returns
|
|
232
|
+
* <code>null</code>.
|
|
233
|
+
*
|
|
234
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
235
|
+
* @param key a descriptor key.
|
|
236
|
+
* @return the value array for the indicated descriptor
|
|
237
|
+
* @since JCR 2.0
|
|
238
|
+
*/
|
|
239
|
+
getDescriptorValues(key: string): Value;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* <p> A convenience method. The call <p> <code>String s =
|
|
243
|
+
* repository.getDescriptor(key);</code> <p> is equivalent to
|
|
244
|
+
* <p>
|
|
245
|
+
* <code>Value v = repository.getDescriptorValue(key);<br>String s = (v ==
|
|
246
|
+
* null) ? null : v.getString();</code>
|
|
247
|
+
* @param key a descriptor key.
|
|
248
|
+
* @return a descriptor value in string form.
|
|
249
|
+
*/
|
|
250
|
+
getDescriptor(key: string): string;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Authenticates the user using the supplied <code>credentials</code>. If
|
|
254
|
+
* <code>workspaceName</code> is recognized as the name of an existing
|
|
255
|
+
* workspace in the repository and authorization to access that workspace is
|
|
256
|
+
* granted, then a new <code>Session</code> object is returned. The format
|
|
257
|
+
* of the string <code>workspaceName</code> depends upon the
|
|
258
|
+
* implementation.
|
|
259
|
+
* <p>
|
|
260
|
+
* If <code>credentials</code> is <code>null</code>, it is assumed that
|
|
261
|
+
* authentication is handled by a mechanism external to the repository
|
|
262
|
+
* itself (for example, through the JAAS framework) and that the repository
|
|
263
|
+
* implementation exists within a context (for example, an application
|
|
264
|
+
* server) that allows it to handle authorization of the request for access
|
|
265
|
+
* to the specified workspace.
|
|
266
|
+
* <p>
|
|
267
|
+
* If <code>workspaceName</code> is <code>null</code>, a default workspace
|
|
268
|
+
* is automatically selected by the repository implementation. This may, for
|
|
269
|
+
* example, be the "home workspace" of the user whose credentials were
|
|
270
|
+
* passed, though this is entirely up to the configuration and
|
|
271
|
+
* implementation of the repository. Alternatively, it may be a "null
|
|
272
|
+
* workspace" that serves only to provide the method {@link
|
|
273
|
+
* Workspace#getAccessibleWorkspaceNames}, allowing the client to select
|
|
274
|
+
* from among available "real" workspaces.
|
|
275
|
+
*
|
|
276
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
277
|
+
* @param credentials The credentials of the user
|
|
278
|
+
* @param workspaceName the name of a workspace.
|
|
279
|
+
* @return a valid session for the user to access the repository.
|
|
280
|
+
* @throws LoginException if authentication or authorization for the specified workspace fails.
|
|
281
|
+
* @throws NoSuchWorkspaceException if the specified <code>workspaceName</code> is not recognized.
|
|
282
|
+
* @throws RepositoryException if another error occurs.
|
|
283
|
+
*/
|
|
284
|
+
login(credentials: Credentials, workspaceName: string): Session;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Equivalent to <code>login(credentials, null)</code>.
|
|
288
|
+
*
|
|
289
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
290
|
+
* @param credentials The credentials of the user
|
|
291
|
+
* @return a valid session for the user to access the repository.
|
|
292
|
+
* @throws LoginException if authentication or authorization fails.
|
|
293
|
+
* @throws RepositoryException if another error occurs.
|
|
294
|
+
*/
|
|
295
|
+
login(credentials: Credentials): Session;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Equivalent to <code>login(null, workspaceName)</code>.
|
|
299
|
+
*
|
|
300
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
301
|
+
* @param workspaceName the name of a workspace.
|
|
302
|
+
* @return a valid session for the user to access the repository.
|
|
303
|
+
* @throws LoginException if authentication or authorization for the specified workspace fails.
|
|
304
|
+
* @throws NoSuchWorkspaceException if the specified <code>workspaceName</code> is not recognized.
|
|
305
|
+
* @throws RepositoryException if another error occurs.
|
|
306
|
+
*/
|
|
307
|
+
login(workspaceName: string): Session;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Equivalent to <code>login(null, null)</code>.
|
|
311
|
+
* @return a valid session for the user to access the repository.
|
|
312
|
+
* @throws LoginException if authentication or authorization fails.
|
|
313
|
+
* @throws RepositoryException if another error occurs.
|
|
314
|
+
*/
|
|
315
|
+
login(): Session;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export default Repository;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import Repository from "../Repository";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* <code>RepositoryFactory</code> is a factory for <code>Repository</code>
|
|
5
|
+
* objects.
|
|
6
|
+
* <p>
|
|
7
|
+
* An implementation of this interface must have a zero-argument public
|
|
8
|
+
* constructor. Repository factories may be installed in an instance of the Java
|
|
9
|
+
* platform as extensions, that is, jar files placed into any of the usual
|
|
10
|
+
* extension directories. Factories may also be made available by adding them to
|
|
11
|
+
* the applet or application class path or by some other platform-specific
|
|
12
|
+
* means.
|
|
13
|
+
* </p><p>
|
|
14
|
+
* A repository factory implementation should support the Java Standard Edition
|
|
15
|
+
* Service Provider mechanism, that is, an implementation should include the
|
|
16
|
+
* file <code>META-INF/services/javax.jcr.RepositoryFactory</code>. This file
|
|
17
|
+
* contains the fully qualified name of the class that implements
|
|
18
|
+
* <code>RepositoryFactory</code>.
|
|
19
|
+
* </p><p>
|
|
20
|
+
* <b>Examples how to obtain repository instances</b>
|
|
21
|
+
* </p><p>
|
|
22
|
+
* Explicitly specifying the repository factory implementation:
|
|
23
|
+
* </p>
|
|
24
|
+
* <pre><code>
|
|
25
|
+
* Map parameters = new HashMap();
|
|
26
|
+
* parameters.put("com.vendor.address", "vendor://localhost:9999/repo");
|
|
27
|
+
* RepositoryFactory factory = (RepositoryFactory) Class.forName("com.vendor.RepositoryFactoryImpl");
|
|
28
|
+
* Repository repo = factory.getRepository(parameters);
|
|
29
|
+
* </code></pre>
|
|
30
|
+
* <p>
|
|
31
|
+
* Using ServiceLoader from Java SE 6:
|
|
32
|
+
* </p>
|
|
33
|
+
* <pre><code>
|
|
34
|
+
* Map parameters = new HashMap();
|
|
35
|
+
* parameters.put("com.vendor.address", "vendor://localhost:9999/repo");
|
|
36
|
+
* Repository repo = null;
|
|
37
|
+
* for (RepositoryFactory factory : ServiceLoader.load(RepositoryFactory.class))
|
|
38
|
+
* {
|
|
39
|
+
* repo = factory.getRepository(parameters);
|
|
40
|
+
* if (repo != null) {
|
|
41
|
+
* // factory accepted parameters
|
|
42
|
+
* break;
|
|
43
|
+
* }
|
|
44
|
+
* }
|
|
45
|
+
* </code></pre>
|
|
46
|
+
* <p>
|
|
47
|
+
* <strong>Note:</strong> on Java SE prior to version 6, one may use the class
|
|
48
|
+
* <code>javax.imageio.spi.ServiceRegistry</code> to look up the available
|
|
49
|
+
* <code>RepositoryFactory</code> implementations.
|
|
50
|
+
* </p>
|
|
51
|
+
*
|
|
52
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Attempts to establish a connection to a repository using the given
|
|
53
|
+
* <code>parameters</code>. <p> Parameters are passed in a <code>Map</code>
|
|
54
|
+
* of <code>String</code> key/value pairs. The keys are not specified by JCR
|
|
55
|
+
* and are implementation specific. However, vendors should use keys that
|
|
56
|
+
* are namespace qualified in the Java package style to distinguish their
|
|
57
|
+
* key names. For example an address parameter might be
|
|
58
|
+
* <code>com.vendor.address</code>. <p> The implementation must return
|
|
59
|
+
* <code>null</code> if it does not understand the given parameters. The
|
|
60
|
+
* implementation may also return <code>null</code> if a default repository
|
|
61
|
+
* instance is requested (indicated by <code>null</code>
|
|
62
|
+
* <code>parameters</code>) and this factory is not able to identify a
|
|
63
|
+
* default repository. <p> An implementation of this method must be
|
|
64
|
+
* thread-safe.
|
|
65
|
+
* @since Sitevision 3.5
|
|
66
|
+
* @since JCR 2.0
|
|
67
|
+
*/
|
|
68
|
+
interface RepositoryFactory {
|
|
69
|
+
/**
|
|
70
|
+
* Attempts to establish a connection to a repository using the given
|
|
71
|
+
* <code>parameters</code>. <p> Parameters are passed in a <code>Map</code>
|
|
72
|
+
* of <code>String</code> key/value pairs. The keys are not specified by JCR
|
|
73
|
+
* and are implementation specific. However, vendors should use keys that
|
|
74
|
+
* are namespace qualified in the Java package style to distinguish their
|
|
75
|
+
* key names. For example an address parameter might be
|
|
76
|
+
* <code>com.vendor.address</code>. <p> The implementation must return
|
|
77
|
+
* <code>null</code> if it does not understand the given parameters. The
|
|
78
|
+
* implementation may also return <code>null</code> if a default repository
|
|
79
|
+
* instance is requested (indicated by <code>null</code>
|
|
80
|
+
* <code>parameters</code>) and this factory is not able to identify a
|
|
81
|
+
* default repository. <p> An implementation of this method must be
|
|
82
|
+
* thread-safe.
|
|
83
|
+
* @param parameters map of string key/value pairs as repository arguments or <code>null</code> if none are provided and a client wishes to connect to a default repository.
|
|
84
|
+
* @return a repository instance or <code>null</code> if this implementation does not understand the passed <code>parameters</code>.
|
|
85
|
+
* @throws RepositoryException if if no suitable repository is found or another error occurs.
|
|
86
|
+
*/
|
|
87
|
+
getRepository(parameters: Record<unknown, unknown>): Repository;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export default RepositoryFactory;
|