@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
package/common/router/index.d.ts
CHANGED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A <code>Binary</code> object holds a JCR property value of type
|
|
3
|
+
* <code>BINARY</code>. The <code>Binary</code> interface and the related
|
|
4
|
+
* methods in {@link Property}, {@link Value} and {@link ValueFactory} replace
|
|
5
|
+
* the deprecated {@link Value#getStream} and {@link Property#getStream}
|
|
6
|
+
* methods.Returns an {@link InputStream} representation of this value. Each call to
|
|
7
|
+
* <code>getStream()</code> returns a new stream. The API consumer is
|
|
8
|
+
* responsible for calling <code>close()</code> on the returned stream.
|
|
9
|
+
* <p>
|
|
10
|
+
* If {@link #dispose()} has been called on this <code>Binary</code>
|
|
11
|
+
* object, then this method will throw the runtime exception
|
|
12
|
+
* {@link java.lang.IllegalStateException}.Reads successive bytes from the specified <code>position</code> in this
|
|
13
|
+
* <code>Binary</code> into the passed byte array until either the byte
|
|
14
|
+
* array is full or the end of the <code>Binary</code> is encountered.
|
|
15
|
+
* <p>
|
|
16
|
+
* If {@link #dispose()} has been called on this <code>Binary</code>
|
|
17
|
+
* object, then this method will throw the runtime exception
|
|
18
|
+
* {@link java.lang.IllegalStateException}.
|
|
19
|
+
*
|
|
20
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns the size of this <code>Binary</code> value in bytes.
|
|
21
|
+
* <p>
|
|
22
|
+
* If {@link #dispose()} has been called on this <code>Binary</code>
|
|
23
|
+
* object, then this method will throw the runtime exception
|
|
24
|
+
* {@link java.lang.IllegalStateException}.Releases all resources associated with this <code>Binary</code> object
|
|
25
|
+
* and informs the repository that these resources may now be reclaimed.
|
|
26
|
+
* An application should call this method when it is finished with the
|
|
27
|
+
* <code>Binary</code> object.
|
|
28
|
+
* @since JCR 2.0
|
|
29
|
+
* @since Sitevision 3.5
|
|
30
|
+
*/
|
|
31
|
+
interface Binary {
|
|
32
|
+
/**
|
|
33
|
+
* Returns an {@link InputStream} representation of this value. Each call to
|
|
34
|
+
* <code>getStream()</code> returns a new stream. The API consumer is
|
|
35
|
+
* responsible for calling <code>close()</code> on the returned stream.
|
|
36
|
+
* <p>
|
|
37
|
+
* If {@link #dispose()} has been called on this <code>Binary</code>
|
|
38
|
+
* object, then this method will throw the runtime exception
|
|
39
|
+
* {@link java.lang.IllegalStateException}.
|
|
40
|
+
* @return A stream representation of this value.
|
|
41
|
+
* @throws RepositoryException if an error occurs.
|
|
42
|
+
*/
|
|
43
|
+
getStream(): unknown;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Reads successive bytes from the specified <code>position</code> in this
|
|
47
|
+
* <code>Binary</code> into the passed byte array until either the byte
|
|
48
|
+
* array is full or the end of the <code>Binary</code> is encountered.
|
|
49
|
+
* <p>
|
|
50
|
+
* If {@link #dispose()} has been called on this <code>Binary</code>
|
|
51
|
+
* object, then this method will throw the runtime exception
|
|
52
|
+
* {@link java.lang.IllegalStateException}.
|
|
53
|
+
*
|
|
54
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
55
|
+
* @param b the buffer into which the data is read.
|
|
56
|
+
* @param position the position in this Binary from which to start reading bytes.
|
|
57
|
+
* @return the number of bytes read into the buffer, or -1 if there is no more data because the end of the Binary has been reached.
|
|
58
|
+
* @throws IOException if an I/O error occurs.
|
|
59
|
+
* @throws NullPointerException if b is null.
|
|
60
|
+
* @throws IllegalArgumentException if offset is negative.
|
|
61
|
+
* @throws RepositoryException if another error occurs.
|
|
62
|
+
*/
|
|
63
|
+
read(b: unknown, position: number): number;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Returns the size of this <code>Binary</code> value in bytes.
|
|
67
|
+
* <p>
|
|
68
|
+
* If {@link #dispose()} has been called on this <code>Binary</code>
|
|
69
|
+
* object, then this method will throw the runtime exception
|
|
70
|
+
* {@link java.lang.IllegalStateException}.
|
|
71
|
+
* @return the size of this value in bytes.
|
|
72
|
+
* @throws RepositoryException if an error occurs.
|
|
73
|
+
*/
|
|
74
|
+
getSize(): number;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Releases all resources associated with this <code>Binary</code> object
|
|
78
|
+
* and informs the repository that these resources may now be reclaimed.
|
|
79
|
+
* An application should call this method when it is finished with the
|
|
80
|
+
* <code>Binary</code> object.
|
|
81
|
+
|
|
82
|
+
*/
|
|
83
|
+
dispose(): void;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export default Binary;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface for all credentials that may be passed to the {@link
|
|
3
|
+
* Repository#login(Credentials credentials, String workspaceName)} method.
|
|
4
|
+
* Serves as a marker interface that all repositories must implement when
|
|
5
|
+
* providing a credentials class. See {@link SimpleCredentials} and {@link
|
|
6
|
+
* GuestCredentials} for examples of such a class.
|
|
7
|
+
|
|
8
|
+
*/
|
|
9
|
+
interface Credentials {}
|
|
10
|
+
|
|
11
|
+
export default Credentials;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The possible actions specified by the <code>uuidBehavior</code> parameter in
|
|
3
|
+
* {@link Workspace#importXML}, {@link Session#importXML}, {@link
|
|
4
|
+
* Workspace#getImportContentHandler} and {@link Session#getImportContentHandler}.
|
|
5
|
+
*
|
|
6
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
7
|
+
|
|
8
|
+
*/
|
|
9
|
+
interface ImportUUIDBehavior {}
|
|
10
|
+
|
|
11
|
+
export default ImportUUIDBehavior;
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import Node from "../Node";
|
|
2
|
+
import Session from "../../../../server/Session";
|
|
3
|
+
import ItemVisitor from "../ItemVisitor";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The <code>Item</code> is the base interface of <code>{@link Node}</code> and
|
|
7
|
+
* <code>{@link Property}</code>.Returns the normalized absolute path to this item.Returns the name of this <code>Item</code> in qualified form. If this
|
|
8
|
+
* <code>Item</code> is the root node of the workspace, an empty string is
|
|
9
|
+
* returned.Returns the ancestor of this <code>Item</code> at the specified depth. An
|
|
10
|
+
* ancestor of depth <i>x</i> is the <code>Item</code> that is <i>x</i>
|
|
11
|
+
* levels down along the path from the root node to <i>this</i>
|
|
12
|
+
* <code>Item</code>. <ul> <li><i>depth</i> = 0 returns the root node of a
|
|
13
|
+
* workspace. <li><i>depth</i> = 1 returns the child of the root node along
|
|
14
|
+
* the path to <i>this</i> <code>Item</code>. <li><i>depth</i> = 2 returns
|
|
15
|
+
* the grandchild of the root node along the path to <i>this</i>
|
|
16
|
+
* <code>Item</code>. <li>And so on to <i>depth</i> = <i>n</i>, where
|
|
17
|
+
* <i>n</i> is the depth of <i>this</i> <code>Item</code>, which returns
|
|
18
|
+
* <i>this</i> <code>Item</code> itself. </ul>
|
|
19
|
+
* <p>
|
|
20
|
+
* If this node has more than one path (i.e., if it is a descendant of a
|
|
21
|
+
* shared node) then the path used to define the ancestor is
|
|
22
|
+
* implementaion-dependent.
|
|
23
|
+
*
|
|
24
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns the parent of this <code>Item</code>.Returns the depth of this <code>Item</code> in the workspace item graph.
|
|
25
|
+
* <ul> <li>The root node returns 0. <li>A property or child node of the
|
|
26
|
+
* root node returns 1. <li>A property or child node of a child node of the
|
|
27
|
+
* root returns 2. <li>And so on to <i>this</i> <code>Item</code>. </ul>
|
|
28
|
+
*
|
|
29
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns the <code>Session</code> through which this <code>Item</code> was
|
|
30
|
+
* acquired.
|
|
31
|
+
*
|
|
32
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Indicates whether this <code>Item</code> is a <code>Node</code> or a
|
|
33
|
+
* <code>Property</code>. Returns <code>true</code> if this
|
|
34
|
+
* <code>Item</code> is a <code>Node</code>; Returns <code>false</code> if
|
|
35
|
+
* this <code>Item</code> is a <code>Property</code>.Returns <code>true</code> if this is a new item, meaning that it exists
|
|
36
|
+
* only in transient storage on the <code>Session</code> and has not yet
|
|
37
|
+
* been saved. Within a transaction, <code>isNew</code> on an
|
|
38
|
+
* <code>Item</code> may return <code>false</code> (because the item has
|
|
39
|
+
* been saved) even if that <code>Item</code> is not in persistent storage
|
|
40
|
+
* (because the transaction has not yet been committed).
|
|
41
|
+
* <p>
|
|
42
|
+
* Note that if an item returns <code>true</code> on <code>isNew</code>,
|
|
43
|
+
* then by definition is parent will return <code>true</code> on
|
|
44
|
+
* <code>isModified</code>.
|
|
45
|
+
* <p>
|
|
46
|
+
* Note that in read-only implementations, this method will always return
|
|
47
|
+
* <code>false</code>.
|
|
48
|
+
*
|
|
49
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns <code>true</code> if this <code>Item</code> has been saved but
|
|
50
|
+
* has subsequently been modified through the current session and therefore
|
|
51
|
+
* the state of this item as recorded in the session differs from the state
|
|
52
|
+
* of this item as saved. Within a transaction, <code>isModified</code> on
|
|
53
|
+
* an <code>Item</code> may return <code>false</code> (because the
|
|
54
|
+
* <code>Item</code> has been saved since the modification) even if the
|
|
55
|
+
* modification in question is not in persistent storage (because the
|
|
56
|
+
* transaction has not yet been committed).
|
|
57
|
+
* <p>
|
|
58
|
+
* Note that in read-only implementations, this method will always return
|
|
59
|
+
* <code>false</code>.
|
|
60
|
+
*
|
|
61
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns <code>true</code> if this <code>Item</code> object (the Java
|
|
62
|
+
* object instance) represents the same actual workspace item as the object
|
|
63
|
+
* <code>otherItem</code>.
|
|
64
|
+
* <p>
|
|
65
|
+
* Two <code>Item</code> objects represent the same workspace item if and
|
|
66
|
+
* only if all the following are true: <ul> <li>Both objects were acquired
|
|
67
|
+
* through <code>Session</code> objects that were created by the same
|
|
68
|
+
* <code>Repository</code> object.</li> <li>Both objects were acquired
|
|
69
|
+
* through <code>Session</code> objects bound to the same repository
|
|
70
|
+
* workspace.</li> <li>The objects are either both <code>Node</code> objects
|
|
71
|
+
* or both <code>Property</code> objects.</li> <li>If they are
|
|
72
|
+
* <code>Node</code> objects, they have the same identifier.</li> <li>If
|
|
73
|
+
* they are <code>Property</code> objects they have identical names and
|
|
74
|
+
* <code>isSame</code> is true of their parent nodes.</li> </ul> This method
|
|
75
|
+
* does not compare the <i>states</i> of the two items. For example, if two
|
|
76
|
+
* <code>Item</code> objects representing the same actual workspace item
|
|
77
|
+
* have been retrieved through two different sessions and one has been
|
|
78
|
+
* modified, then this method will still return <code>true</code> when
|
|
79
|
+
* comparing these two objects. Note that if two <code>Item</code> objects
|
|
80
|
+
* representing the same workspace item are retrieved through the
|
|
81
|
+
* <i>same</i> session they will always reflect the same state.
|
|
82
|
+
*
|
|
83
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Accepts an <code>ItemVisitor</code>. Calls the appropriate
|
|
84
|
+
* <code>ItemVisitor</code> <code>visit</code> method of the according to
|
|
85
|
+
* whether <i>this</i> <code>Item</code> is a <code>Node</code> or a
|
|
86
|
+
* <code>Property</code>.Validates all pending changes currently recorded in this
|
|
87
|
+
* <code>Session</code> that apply to this <code>Item</code> or any of its
|
|
88
|
+
* descendants (that is, the subgraph rooted at this Item). If validation of
|
|
89
|
+
* <i>all</i> pending changes succeeds, then this change information is
|
|
90
|
+
* cleared from the <code>Session</code>. If the <code>save</code> occurs
|
|
91
|
+
* outside a transaction, the changes are persisted and thus made visible to
|
|
92
|
+
* other <code>Sessions</code>. If the <code>save</code> occurs within a
|
|
93
|
+
* transaction, the changes are not persisted until the transaction is
|
|
94
|
+
* committed.
|
|
95
|
+
* <p>
|
|
96
|
+
* If validation fails, then no pending changes are saved and they remain
|
|
97
|
+
* recorded on the <code>Session</code>. There is no best-effort or partial
|
|
98
|
+
* save.
|
|
99
|
+
* <p>
|
|
100
|
+
* The item in persistent storage to which a transient item is saved isIf <code>keepChanges</code> is <code>false</code>, this method discards
|
|
101
|
+
* all pending changes currently recorded in this <code>Session</code> that
|
|
102
|
+
* apply to this Item or any of its descendants (that is, the subgraph
|
|
103
|
+
* rooted at this Item)and returns all items to reflect the current saved
|
|
104
|
+
* state. Outside a transaction this state is simple the current state of
|
|
105
|
+
* persistent storage. Within a transaction, this state will reflect
|
|
106
|
+
* persistent storage as modified by changes that have been saved but not
|
|
107
|
+
* yet committed.
|
|
108
|
+
* <p>
|
|
109
|
+
* If <code>keepChanges</code> is true then pending change are not discarded
|
|
110
|
+
* but items that do not have changes pending have their state refreshed to
|
|
111
|
+
* reflect the current saved state, thus revealing changes made by other
|
|
112
|
+
* sessions.Removes <code>this</code> item (and its subgraph).
|
|
113
|
+
* <p>
|
|
114
|
+
* To persist a removal, a <code>save</code> must be performed that includes
|
|
115
|
+
* the (former) parent of the removed item within its scope.
|
|
116
|
+
* <p>
|
|
117
|
+
* If a node with same-name siblings is removed, this decrements by one the
|
|
118
|
+
* indices of all the siblings with indices greater than that of the removed
|
|
119
|
+
* node. In other words, a removal compacts the array of same-name siblings
|
|
120
|
+
* and causes the minimal re-numbering required to maintain the original
|
|
121
|
+
* order but leave no gaps in the numbering.
|
|
122
|
+
|
|
123
|
+
*/
|
|
124
|
+
interface Item {
|
|
125
|
+
/**
|
|
126
|
+
* Returns the normalized absolute path to this item.
|
|
127
|
+
* @return the normalized absolute path of this <code>Item</code>.
|
|
128
|
+
* @throws RepositoryException if an error occurs.
|
|
129
|
+
*/
|
|
130
|
+
getPath(): string;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Returns the name of this <code>Item</code> in qualified form. If this
|
|
134
|
+
* <code>Item</code> is the root node of the workspace, an empty string is
|
|
135
|
+
* returned.
|
|
136
|
+
* @return the name of this <code>Item</code> in qualified form or an empty string if this <code>Item</code> is the root node of a workspace.
|
|
137
|
+
* @throws RepositoryException if an error occurs.
|
|
138
|
+
*/
|
|
139
|
+
getName(): string;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Returns the ancestor of this <code>Item</code> at the specified depth. An
|
|
143
|
+
* ancestor of depth <i>x</i> is the <code>Item</code> that is <i>x</i>
|
|
144
|
+
* levels down along the path from the root node to <i>this</i>
|
|
145
|
+
* <code>Item</code>. <ul> <li><i>depth</i> = 0 returns the root node of a
|
|
146
|
+
* workspace. <li><i>depth</i> = 1 returns the child of the root node along
|
|
147
|
+
* the path to <i>this</i> <code>Item</code>. <li><i>depth</i> = 2 returns
|
|
148
|
+
* the grandchild of the root node along the path to <i>this</i>
|
|
149
|
+
* <code>Item</code>. <li>And so on to <i>depth</i> = <i>n</i>, where
|
|
150
|
+
* <i>n</i> is the depth of <i>this</i> <code>Item</code>, which returns
|
|
151
|
+
* <i>this</i> <code>Item</code> itself. </ul>
|
|
152
|
+
* <p>
|
|
153
|
+
* If this node has more than one path (i.e., if it is a descendant of a
|
|
154
|
+
* shared node) then the path used to define the ancestor is
|
|
155
|
+
* implementaion-dependent.
|
|
156
|
+
*
|
|
157
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
158
|
+
* @param depth An integer, 0 <= <i>depth</i> <= <i>n</i> where <i>n</i> is the depth of <i>this</i> <code>Item</code>.
|
|
159
|
+
* @return The ancestor of this <code>Item</code> at the specified <code>depth</code>.
|
|
160
|
+
* @throws ItemNotFoundException if <i>depth</i> < 0 or <i>depth</i> > <i>n</i> where <i>n</i> is the is the depth of this item.
|
|
161
|
+
* @throws AccessDeniedException if the current session does not have sufficent access to retrieve the specified node.
|
|
162
|
+
* @throws RepositoryException if another error occurs.
|
|
163
|
+
*/
|
|
164
|
+
getAncestor(depth: number): Item;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Returns the parent of this <code>Item</code>.
|
|
168
|
+
* @return The parent of this <code>Item</code>.
|
|
169
|
+
* @throws ItemNotFoundException if this <code>Item</code> is the root node of a workspace.
|
|
170
|
+
* @throws AccessDeniedException if the current session does not have sufficent access to retrieve the parent of this item.
|
|
171
|
+
* @throws RepositoryException if another error occurs.
|
|
172
|
+
*/
|
|
173
|
+
getParent(): Node;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Returns the depth of this <code>Item</code> in the workspace item graph.
|
|
177
|
+
* <ul> <li>The root node returns 0. <li>A property or child node of the
|
|
178
|
+
* root node returns 1. <li>A property or child node of a child node of the
|
|
179
|
+
* root returns 2. <li>And so on to <i>this</i> <code>Item</code>. </ul>
|
|
180
|
+
*
|
|
181
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
182
|
+
* @return The depth of this <code>Item</code> in the workspace item graph.
|
|
183
|
+
* @throws RepositoryException if an error occurs.
|
|
184
|
+
*/
|
|
185
|
+
getDepth(): number;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Returns the <code>Session</code> through which this <code>Item</code> was
|
|
189
|
+
* acquired.
|
|
190
|
+
*
|
|
191
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
192
|
+
* @return the <code>Session</code> through which this <code>Item</code> was acquired.
|
|
193
|
+
* @throws RepositoryException if an error occurs.
|
|
194
|
+
*/
|
|
195
|
+
getSession(): Session;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Indicates whether this <code>Item</code> is a <code>Node</code> or a
|
|
199
|
+
* <code>Property</code>. Returns <code>true</code> if this
|
|
200
|
+
* <code>Item</code> is a <code>Node</code>; Returns <code>false</code> if
|
|
201
|
+
* this <code>Item</code> is a <code>Property</code>.
|
|
202
|
+
* @return <code>true</code> if this <code>Item</code> is a <code>Node</code>, <code>false</code> if it is a <code>Property</code>.
|
|
203
|
+
*/
|
|
204
|
+
isNode(): boolean;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Returns <code>true</code> if this is a new item, meaning that it exists
|
|
208
|
+
* only in transient storage on the <code>Session</code> and has not yet
|
|
209
|
+
* been saved. Within a transaction, <code>isNew</code> on an
|
|
210
|
+
* <code>Item</code> may return <code>false</code> (because the item has
|
|
211
|
+
* been saved) even if that <code>Item</code> is not in persistent storage
|
|
212
|
+
* (because the transaction has not yet been committed).
|
|
213
|
+
* <p>
|
|
214
|
+
* Note that if an item returns <code>true</code> on <code>isNew</code>,
|
|
215
|
+
* then by definition is parent will return <code>true</code> on
|
|
216
|
+
* <code>isModified</code>.
|
|
217
|
+
* <p>
|
|
218
|
+
* Note that in read-only implementations, this method will always return
|
|
219
|
+
* <code>false</code>.
|
|
220
|
+
*
|
|
221
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
222
|
+
* @return <code>true</code> if this item is new; <code>false</code> otherwise.
|
|
223
|
+
*/
|
|
224
|
+
isNew(): boolean;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Returns <code>true</code> if this <code>Item</code> has been saved but
|
|
228
|
+
* has subsequently been modified through the current session and therefore
|
|
229
|
+
* the state of this item as recorded in the session differs from the state
|
|
230
|
+
* of this item as saved. Within a transaction, <code>isModified</code> on
|
|
231
|
+
* an <code>Item</code> may return <code>false</code> (because the
|
|
232
|
+
* <code>Item</code> has been saved since the modification) even if the
|
|
233
|
+
* modification in question is not in persistent storage (because the
|
|
234
|
+
* transaction has not yet been committed).
|
|
235
|
+
* <p>
|
|
236
|
+
* Note that in read-only implementations, this method will always return
|
|
237
|
+
* <code>false</code>.
|
|
238
|
+
*
|
|
239
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
240
|
+
* @return <code>true</code> if this item is modified; <code>false</code> otherwise.
|
|
241
|
+
*/
|
|
242
|
+
isModified(): boolean;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Returns <code>true</code> if this <code>Item</code> object (the Java
|
|
246
|
+
* object instance) represents the same actual workspace item as the object
|
|
247
|
+
* <code>otherItem</code>.
|
|
248
|
+
* <p>
|
|
249
|
+
* Two <code>Item</code> objects represent the same workspace item if and
|
|
250
|
+
* only if all the following are true: <ul> <li>Both objects were acquired
|
|
251
|
+
* through <code>Session</code> objects that were created by the same
|
|
252
|
+
* <code>Repository</code> object.</li> <li>Both objects were acquired
|
|
253
|
+
* through <code>Session</code> objects bound to the same repository
|
|
254
|
+
* workspace.</li> <li>The objects are either both <code>Node</code> objects
|
|
255
|
+
* or both <code>Property</code> objects.</li> <li>If they are
|
|
256
|
+
* <code>Node</code> objects, they have the same identifier.</li> <li>If
|
|
257
|
+
* they are <code>Property</code> objects they have identical names and
|
|
258
|
+
* <code>isSame</code> is true of their parent nodes.</li> </ul> This method
|
|
259
|
+
* does not compare the <i>states</i> of the two items. For example, if two
|
|
260
|
+
* <code>Item</code> objects representing the same actual workspace item
|
|
261
|
+
* have been retrieved through two different sessions and one has been
|
|
262
|
+
* modified, then this method will still return <code>true</code> when
|
|
263
|
+
* comparing these two objects. Note that if two <code>Item</code> objects
|
|
264
|
+
* representing the same workspace item are retrieved through the
|
|
265
|
+
* <i>same</i> session they will always reflect the same state.
|
|
266
|
+
*
|
|
267
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
268
|
+
* @param otherItem the <code>Item</code> object to be tested for identity with this <code>Item</code>.
|
|
269
|
+
* @return <code>true</code> if this <code>Item</code> object and <code>otherItem</code> represent the same actual repository item; <code>false</code> otherwise.
|
|
270
|
+
* @throws RepositoryException if an error occurs.
|
|
271
|
+
*/
|
|
272
|
+
isSame(otherItem: Item): boolean;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Accepts an <code>ItemVisitor</code>. Calls the appropriate
|
|
276
|
+
* <code>ItemVisitor</code> <code>visit</code> method of the according to
|
|
277
|
+
* whether <i>this</i> <code>Item</code> is a <code>Node</code> or a
|
|
278
|
+
* <code>Property</code>.
|
|
279
|
+
* @param visitor The ItemVisitor to be accepted.
|
|
280
|
+
* @throws RepositoryException if an error occurs.
|
|
281
|
+
*/
|
|
282
|
+
accept(visitor: ItemVisitor): void;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Validates all pending changes currently recorded in this
|
|
286
|
+
* <code>Session</code> that apply to this <code>Item</code> or any of its
|
|
287
|
+
* descendants (that is, the subgraph rooted at this Item). If validation of
|
|
288
|
+
* <i>all</i> pending changes succeeds, then this change information is
|
|
289
|
+
* cleared from the <code>Session</code>. If the <code>save</code> occurs
|
|
290
|
+
* outside a transaction, the changes are persisted and thus made visible to
|
|
291
|
+
* other <code>Sessions</code>. If the <code>save</code> occurs within a
|
|
292
|
+
* transaction, the changes are not persisted until the transaction is
|
|
293
|
+
* committed.
|
|
294
|
+
* <p>
|
|
295
|
+
* If validation fails, then no pending changes are saved and they remain
|
|
296
|
+
* recorded on the <code>Session</code>. There is no best-effort or partial
|
|
297
|
+
* save.
|
|
298
|
+
* <p>
|
|
299
|
+
* The item in persistent storage to which a transient item is saved is
|
|
300
|
+
* @throws AccessDeniedException if any of the changes to be persisted would exceed the access capabilities of the the current session. Also thrown if any of the changes to be persisted would cause the removal of a node that is currently referenced by a <code>REFERENCE</code> property that the current session <i>does not</i> have read access to.
|
|
301
|
+
* @throws ItemExistsException if any of the changes to be persisted would be prevented by the presence of an already existing item in the workspace.
|
|
302
|
+
* @throws ConstraintViolationException if any of the changes to be persisted would violate a node type or restriction. Additionally, a repository may use this exception to enforce implementation- or configuration-dependent restrictions.
|
|
303
|
+
* @throws InvalidItemStateException if any of the changes to be persisted conflicts with a change already persisted through another session and the implementation is such that this conflict can only be detected at <code>save</code>-time and therefore was not detected earlier, at change-time.
|
|
304
|
+
* @throws ReferentialIntegrityException if any of the changes to be persisted would cause the removal of a node that is currently referenced by a <code>REFERENCE</code> property that this <code>Session</code> has read access to.
|
|
305
|
+
* @throws VersionException if the <code>save</code> would make a result in a change to persistent storage that would violate the read-only status of a checked-in node.
|
|
306
|
+
* @throws LockException if the <code>save</code> would result in a change to persistent storage that would violate a lock.
|
|
307
|
+
* @throws NoSuchNodeTypeException if the <code>save</code> would result in the addition of a node with an unrecognized node type.
|
|
308
|
+
* @throws RepositoryException if another error occurs. <p><strong>Partly supported in Sitevision but deprecated as of JCR 2.0 where {@link Session#save()} should be used instead.</strong></p>
|
|
309
|
+
*/
|
|
310
|
+
save(): void;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* If <code>keepChanges</code> is <code>false</code>, this method discards
|
|
314
|
+
* all pending changes currently recorded in this <code>Session</code> that
|
|
315
|
+
* apply to this Item or any of its descendants (that is, the subgraph
|
|
316
|
+
* rooted at this Item)and returns all items to reflect the current saved
|
|
317
|
+
* state. Outside a transaction this state is simple the current state of
|
|
318
|
+
* persistent storage. Within a transaction, this state will reflect
|
|
319
|
+
* persistent storage as modified by changes that have been saved but not
|
|
320
|
+
* yet committed.
|
|
321
|
+
* <p>
|
|
322
|
+
* If <code>keepChanges</code> is true then pending change are not discarded
|
|
323
|
+
* but items that do not have changes pending have their state refreshed to
|
|
324
|
+
* reflect the current saved state, thus revealing changes made by other
|
|
325
|
+
* sessions.
|
|
326
|
+
* @param keepChanges a boolean
|
|
327
|
+
* @throws InvalidItemStateException if this <code>Item</code> object represents a workspace item that has been removed (either by this session or another).
|
|
328
|
+
* @throws RepositoryException if another error occurs.
|
|
329
|
+
*/
|
|
330
|
+
refresh(keepChanges: boolean): void;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Removes <code>this</code> item (and its subgraph).
|
|
334
|
+
* <p>
|
|
335
|
+
* To persist a removal, a <code>save</code> must be performed that includes
|
|
336
|
+
* the (former) parent of the removed item within its scope.
|
|
337
|
+
* <p>
|
|
338
|
+
* If a node with same-name siblings is removed, this decrements by one the
|
|
339
|
+
* indices of all the siblings with indices greater than that of the removed
|
|
340
|
+
* node. In other words, a removal compacts the array of same-name siblings
|
|
341
|
+
* and causes the minimal re-numbering required to maintain the original
|
|
342
|
+
* order but leave no gaps in the numbering.
|
|
343
|
+
* @throws VersionException if the parent node of this item is versionable and checked-in or is non-versionable but its nearest versionable ancestor is checked-in and this implementation performs this validation immediately instead of waiting until <code>save</code>.
|
|
344
|
+
* @throws LockException if a lock prevents the removal of this item and this implementation performs this validation immediately instead of waiting until <code>save</code>.
|
|
345
|
+
* @throws ConstraintViolationException if removing the specified item would violate a node type or implementation-specific constraint and this implementation performs this validation immediately instead of waiting until <code>save</code>.
|
|
346
|
+
* @throws AccessDeniedException if this item or an item in its subgraph is currently the target of a <code>REFERENCE</code> property located in this workspace but outside this item's subgraph and the current <code>Session</code> <i>does not</i> have read access to that <code>REFERENCE</code> property or if the current <code>Session</code> does not have sufficent privileges to remove the item.
|
|
347
|
+
* @throws RepositoryException if another error occurs.
|
|
348
|
+
* @see javax.jcr.Session#removeItem(String)
|
|
349
|
+
*/
|
|
350
|
+
remove(): void;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export default Item;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import Property from "../Property";
|
|
2
|
+
import Node from "../Node";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This interface defines two signatures of the <code>visit</code> method; one
|
|
6
|
+
* taking a <code>Node</code>, the other a <code>Property</code>. When an object
|
|
7
|
+
* implementing this interface is passed to <code>{@link Item#accept(ItemVisitor
|
|
8
|
+
* visitor)}</code> the appropriate <code>visit</code> method is automatically
|
|
9
|
+
* called, depending on whether the <code>Item</code> in question is a
|
|
10
|
+
* <code>Node</code> or a <code>Property</code>. Different implementations of
|
|
11
|
+
* this interface can be written for different purposes. It is, for example,
|
|
12
|
+
* possible for the <code>{@link #visit(Node node)}</code> method to call
|
|
13
|
+
* <code>accept</code> on the children of the passed node and thus recurse
|
|
14
|
+
* through the tree performing some operation on each <code>Item</code>.This method is called when the <code>ItemVisitor</code> is passed to the
|
|
15
|
+
* <code>accept</code> method of a <code>Property</code>. If this method
|
|
16
|
+
* throws an exception the visiting process is aborted.This method is called when the <code>ItemVisitor</code> is passed to the
|
|
17
|
+
* <code>accept</code> method of a <code>Node</code>. If this method throws
|
|
18
|
+
* an exception the visiting process is aborted.
|
|
19
|
+
|
|
20
|
+
*/
|
|
21
|
+
interface ItemVisitor {
|
|
22
|
+
/**
|
|
23
|
+
* This method is called when the <code>ItemVisitor</code> is passed to the
|
|
24
|
+
* <code>accept</code> method of a <code>Property</code>. If this method
|
|
25
|
+
* throws an exception the visiting process is aborted.
|
|
26
|
+
* @param property The <code>Property</code> that is accepting this visitor.
|
|
27
|
+
* @throws RepositoryException if an error occurs
|
|
28
|
+
*/
|
|
29
|
+
visit(property: Property): void;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* This method is called when the <code>ItemVisitor</code> is passed to the
|
|
33
|
+
* <code>accept</code> method of a <code>Node</code>. If this method throws
|
|
34
|
+
* an exception the visiting process is aborted.
|
|
35
|
+
* @param node The <code>Node</code> that is accepting this visitor.
|
|
36
|
+
* @throws RepositoryException if an error occurs
|
|
37
|
+
*/
|
|
38
|
+
visit(node: Node): void;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export default ItemVisitor;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Each repository has a single, persistent namespace registry represented by
|
|
3
|
+
* the <code>NamespaceRegistry</code> object, accessed via {@link
|
|
4
|
+
* Workspace#getNamespaceRegistry}. The namespace registry contains the default
|
|
5
|
+
* prefixes of the registered namespaces. The namespace registry may contain
|
|
6
|
+
* namespaces that are not used in repository content, and there may be
|
|
7
|
+
* repository content with namespaces that are not included in the registry.Sets a one-to-one mapping between <code>prefix</code> and
|
|
8
|
+
* <code>uri</code> in the global namespace registry of this repository.
|
|
9
|
+
* <p>
|
|
10
|
+
* Assigning a new prefix to a URI that already exists in the namespace
|
|
11
|
+
* registry erases the old prefix. In general this can almost always be
|
|
12
|
+
* done, though an implementation is free to prevent particular remappings
|
|
13
|
+
* by throwing a <code>NamespaceException</code>.
|
|
14
|
+
* <p>
|
|
15
|
+
* On the other hand, taking a prefix that is already assigned to a URI and
|
|
16
|
+
* re-assigning it to a new URI in effect unregisters that URI. Therefore,
|
|
17
|
+
* the same restrictions apply to this operation as to
|
|
18
|
+
* <code>NamespaceRegistry.unregisterNamespace</code>.
|
|
19
|
+
*
|
|
20
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Removes a namespace mapping from the registry.
|
|
21
|
+
*
|
|
22
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns an array holding all currently registered prefixes.Returns an array holding all currently registered URIs.Returns the URI to which the given <code>prefix</code> is mapped.Returns the prefix which is mapped to the given <code>uri</code>.A constant for the predefined namespace prefix "jcr".A constant for the predefined namespace prefix "nt".A constant for the predefined namespace prefix "mix".A constant for the predefined namespace prefix "xml".A constant for the predefined namespace prefix "" (the empty prefix).A constant for the predefined namespace mapped by default to the prefix
|
|
23
|
+
* "jcr".A constant for the predefined namespace mapped by default to the prefix
|
|
24
|
+
* "nt".A constant for the predefined namespace mapped by default to the prefix
|
|
25
|
+
* "mix".A constant for the predefined namespace mapped by default to the prefix
|
|
26
|
+
* "xml".A constant for the predefined namespace mapped by default to the prefix
|
|
27
|
+
* "" (the empty prefix).
|
|
28
|
+
* @see Workspace#getNamespaceRegistry
|
|
29
|
+
*/
|
|
30
|
+
interface NamespaceRegistry {
|
|
31
|
+
/**
|
|
32
|
+
* Sets a one-to-one mapping between <code>prefix</code> and
|
|
33
|
+
* <code>uri</code> in the global namespace registry of this repository.
|
|
34
|
+
* <p>
|
|
35
|
+
* Assigning a new prefix to a URI that already exists in the namespace
|
|
36
|
+
* registry erases the old prefix. In general this can almost always be
|
|
37
|
+
* done, though an implementation is free to prevent particular remappings
|
|
38
|
+
* by throwing a <code>NamespaceException</code>.
|
|
39
|
+
* <p>
|
|
40
|
+
* On the other hand, taking a prefix that is already assigned to a URI and
|
|
41
|
+
* re-assigning it to a new URI in effect unregisters that URI. Therefore,
|
|
42
|
+
* the same restrictions apply to this operation as to
|
|
43
|
+
* <code>NamespaceRegistry.unregisterNamespace</code>.
|
|
44
|
+
*
|
|
45
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
46
|
+
* @param prefix The prefix to be mapped.
|
|
47
|
+
* @param uri The URI to be mapped.
|
|
48
|
+
* @throws NamespaceException If an attempt is made to re-assign a built-in prefix to a new URI or, to register a namespace with a prefix that begins with the characters "<code>xml</code>" (in any combination of case) or, An attempt is made to perform a prefix re-assignment that is forbidden for implementation-specific reasons.
|
|
49
|
+
* @throws UnsupportedRepositoryOperationException if this repository does not support namespace registry changes.
|
|
50
|
+
* @throws AccessDeniedException if the current session does not have sufficent access to register the namespace.
|
|
51
|
+
* @throws RepositoryException if another error occurs.
|
|
52
|
+
*/
|
|
53
|
+
registerNamespace(prefix: string, uri: string): void;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Removes a namespace mapping from the registry.
|
|
57
|
+
*
|
|
58
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
59
|
+
* @param prefix The prefix of the mapping to be removed.
|
|
60
|
+
* @throws NamespaceException if an attempt is made to unregister a built-in namespace or a namespace that is not currently registered or a namespace whose unregsitration is forbidden for implementation-specific reasons.
|
|
61
|
+
* @throws UnsupportedRepositoryOperationException if this repository does not support namespace registry changes.
|
|
62
|
+
* @throws AccessDeniedException if the current session does not have sufficent access to unregister the namespace.
|
|
63
|
+
* @throws RepositoryException if another error occurs.
|
|
64
|
+
*/
|
|
65
|
+
unregisterNamespace(prefix: string): void;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Returns an array holding all currently registered prefixes.
|
|
69
|
+
* @return a string array.
|
|
70
|
+
* @throws RepositoryException if an error occurs.
|
|
71
|
+
*/
|
|
72
|
+
getPrefixes(): string;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Returns an array holding all currently registered URIs.
|
|
76
|
+
* @return a string array.
|
|
77
|
+
* @throws RepositoryException if an error occurs.
|
|
78
|
+
*/
|
|
79
|
+
getURIs(): string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Returns the URI to which the given <code>prefix</code> is mapped.
|
|
83
|
+
* @param prefix a string.
|
|
84
|
+
* @return a string.
|
|
85
|
+
* @throws NamespaceException if a mapping with the specified <code>prefix</code> does not exist.
|
|
86
|
+
* @throws RepositoryException if another error occurs.
|
|
87
|
+
*/
|
|
88
|
+
getURI(prefix: string): string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Returns the prefix which is mapped to the given <code>uri</code>.
|
|
92
|
+
* @param uri a string.
|
|
93
|
+
* @return a string.
|
|
94
|
+
* @throws NamespaceException if a mapping with the specified <code>uri</code> does not exist.
|
|
95
|
+
* @throws RepositoryException if another error occurs.
|
|
96
|
+
*/
|
|
97
|
+
getPrefix(uri: string): string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export default NamespaceRegistry;
|