@sitevision/api 2.0.0-alpha.1 → 2.0.0-alpha.2
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/index.d.ts +8 -0
- package/package.json +1 -1
- package/server/AliasUtil/index.d.ts +13 -11
- package/server/ArchiveUtil/index.d.ts +45 -43
- package/server/ArraysInstance/index.d.ts +1667 -1808
- package/server/ArticleUtil/index.d.ts +294 -226
- package/server/AuthenticationUtil/index.d.ts +73 -85
- package/server/BookmarkUtil/index.d.ts +76 -81
- package/server/BuddyIconRenderer/index.d.ts +124 -132
- package/server/BuddyIconRenderer.BuddyIconSize/index.d.ts +41 -0
- package/server/BuddyIconRenderer.BuddyIconSize/index.js +25 -0
- package/server/ClientUtil/index.d.ts +11 -9
- package/server/CollaborationFactory/index.d.ts +37 -40
- package/server/CollaborationGroupFolderUtil/index.d.ts +30 -28
- package/server/CollaborationGroupState/index.d.ts +27 -0
- package/server/CollaborationGroupState/index.js +11 -0
- package/server/CollaborationGroupTemplateUtil/index.d.ts +48 -50
- package/server/CollaborationGroupType/index.d.ts +28 -0
- package/server/CollaborationGroupType/index.js +12 -0
- package/server/CollaborationGroupUtil/index.d.ts +86 -82
- package/server/CollectionsInstance/index.d.ts +642 -705
- package/server/ColorUtil/index.d.ts +36 -37
- package/server/CompoundAndFilterBuilder/index.d.ts +31 -29
- package/server/CompoundComparatorBuilder/index.d.ts +35 -33
- package/server/CompoundOrFilterBuilder/index.d.ts +31 -29
- package/server/ContentNodeUtil/index.d.ts +36 -34
- package/server/CurrencyFactory/index.d.ts +72 -70
- package/server/DateUtil/index.d.ts +132 -142
- package/server/DecorationUtil/index.d.ts +13 -11
- package/server/DeviceUtil/index.d.ts +21 -19
- package/server/DimensionMode/index.d.ts +17 -0
- package/server/DimensionMode/index.js +12 -0
- package/server/DirectoryUtil/index.d.ts +90 -88
- package/server/DocType/index.d.ts +30 -0
- package/server/DocType/index.js +14 -0
- package/server/DocTypeUtil/index.d.ts +129 -135
- package/server/EndecUtil/index.d.ts +330 -347
- package/server/ExtendedDismaxParserBuilder/index.d.ts +156 -170
- package/server/FileIconRenderer/index.d.ts +153 -172
- package/server/FileUtil/index.d.ts +274 -300
- package/server/FilterBuilder/index.d.ts +42 -40
- package/server/FolderUtil/index.d.ts +93 -94
- package/server/FontUtil/index.d.ts +36 -37
- package/server/FormatterBuilderFactory/index.d.ts +76 -84
- package/server/HighlightBuilder/index.d.ts +79 -86
- package/server/IconUtil/index.d.ts +27 -25
- package/server/ImageLinkRenderer/index.d.ts +34 -32
- package/server/ImageRenderer/index.d.ts +343 -379
- package/server/ImageUtil/index.d.ts +247 -265
- package/server/IndexUtil/index.d.ts +40 -37
- package/server/IndexUtil.IndexType/index.d.ts +29 -0
- package/server/IndexUtil.IndexType/index.js +13 -0
- package/server/IndexingUtil/index.d.ts +69 -47
- package/server/InstanceCreatorUtil/index.d.ts +421 -457
- package/server/InstanceTypeUtil/index.d.ts +168 -189
- package/server/JwtUtil/index.d.ts +131 -129
- package/server/LandingPageUtil/index.d.ts +84 -87
- package/server/LandingPageUtil/index.js +1 -0
- package/server/LinkPageUtil/index.d.ts +297 -251
- package/server/LinkRenderer/index.d.ts +651 -715
- package/server/LinkTargetBuilder/index.d.ts +69 -77
- package/server/LinkValueBuilder/index.d.ts +70 -77
- package/server/ListWrapper/index.d.ts +82 -91
- package/server/LocaleUtil/index.d.ts +382 -394
- package/server/LogUtil/index.d.ts +119 -128
- package/server/MailBuilder/index.d.ts +109 -124
- package/server/MailUtil/index.d.ts +58 -63
- package/server/MathInstance/index.d.ts +625 -657
- package/server/MessageDigesterFactory/index.d.ts +30 -28
- package/server/MetadataDefinitionUtil/index.d.ts +79 -83
- package/server/MetadataUtil/index.d.ts +322 -346
- package/server/MimeTypeUtil/index.d.ts +209 -215
- package/server/MonitorBuilder/index.d.ts +20 -20
- package/server/NodeComparatorUtil/index.d.ts +215 -225
- package/server/NodeFactoryUtil/index.d.ts +18 -16
- package/server/NodeFilterUtil/index.d.ts +652 -739
- package/server/NodeIteratorUtil/index.d.ts +214 -229
- package/server/NodeResolverUtil/index.d.ts +400 -406
- package/server/NodeTreeUtil/index.d.ts +214 -229
- package/server/NodeTypeUtil/index.d.ts +1432 -548
- package/server/OfflineVersionPropertyUtil/index.d.ts +8 -6
- package/server/OnlineVersionPropertyUtil/index.d.ts +8 -6
- package/server/OutputUtil/index.d.ts +385 -380
- package/server/PageUtil/index.d.ts +266 -188
- package/server/PermissionUtil/index.d.ts +393 -430
- package/server/PermissionUtil.Permission/index.d.ts +54 -0
- package/server/PermissionUtil.Permission/index.js +38 -0
- package/server/PortletContextUtil/index.d.ts +112 -107
- package/server/PortletUtil/index.d.ts +32 -22
- package/server/PrincipalUtil/index.d.ts +35 -33
- package/server/Properties/index.d.ts +69 -76
- package/server/PropertyUtil/index.d.ts +1422 -1464
- package/server/PublishingUtil/index.d.ts +248 -249
- package/server/QueryStringUtil/index.d.ts +404 -415
- package/server/RedirectUtil/index.d.ts +64 -68
- package/server/RelatedValueBuilder/index.d.ts +45 -43
- package/server/Requester/index.d.ts +125 -125
- package/server/ResourceLocatorUtil/index.d.ts +436 -476
- package/server/RestApi/index.d.ts +158 -138
- package/server/RestAppInvokerFactory/index.d.ts +28 -26
- package/server/RoleAssignmentBuilder/index.d.ts +39 -37
- package/server/RoleMatcherBuilder/index.d.ts +39 -37
- package/server/RoleUtil/index.d.ts +35 -37
- package/server/ScriptUtil/index.d.ts +458 -495
- package/server/SearchFactory/index.d.ts +90 -105
- package/server/SearchUtil/index.d.ts +75 -73
- package/server/SearcherBuilder/index.d.ts +117 -124
- package/server/Session/index.d.ts +261 -1103
- package/server/Session/index.js +1 -20
- package/server/SimpleUserUtil/index.d.ts +28 -29
- package/server/SiteCookieUtil/index.d.ts +152 -175
- package/server/SortBuilder/index.d.ts +27 -25
- package/server/SourceSetMode/index.d.ts +12 -0
- package/server/SourceSetMode/index.js +12 -0
- package/server/SpellCheckBuilder/index.d.ts +30 -30
- package/server/StandardParserBuilder/index.d.ts +36 -34
- package/server/StructureUtil/index.d.ts +85 -83
- package/server/SubscriberUtil/index.d.ts +60 -67
- package/server/SubscriptionUtil/index.d.ts +123 -130
- package/server/SystemUserUtil/index.d.ts +148 -146
- package/server/TagUtil/index.d.ts +115 -120
- package/server/TemplateUtil/index.d.ts +115 -120
- package/server/TemporaryFileNodeBuilder/index.d.ts +32 -30
- package/server/TemporaryNodeBuilder/index.d.ts +139 -177
- package/server/TextModuleRendererBuilder/index.d.ts +22 -20
- package/server/TimestampUtil/index.d.ts +103 -117
- package/server/TranslationUtil/index.d.ts +98 -104
- package/server/TrashcanUtil/index.d.ts +114 -117
- package/server/UserDataUtil/index.d.ts +110 -111
- package/server/UserFactory/index.d.ts +47 -54
- package/server/UserFieldRenderer/index.d.ts +120 -128
- package/server/UserIdentityUtil/index.d.ts +38 -36
- package/server/UserUtil/index.d.ts +32 -30
- package/server/Utils/index.d.ts +634 -723
- package/server/VelocityRenderer/index.d.ts +96 -94
- package/server/VersionUtil/index.d.ts +25 -9
- package/server/WebContentUtil/index.d.ts +277 -284
- package/server/WebResourceFactory/index.d.ts +41 -46
- package/server/XSLTUtil/index.d.ts +34 -32
- package/server/XmlParserUtil/index.d.ts +50 -48
- package/types/javax/jcr/Binary/index.d.ts +3 -21
- package/types/javax/jcr/Binary/index.js +0 -1
- package/types/javax/jcr/Credentials/index.d.ts +3 -1
- package/types/javax/jcr/ImportUUIDBehavior/index.d.ts +27 -1
- package/types/javax/jcr/Item/index.d.ts +6 -119
- package/types/javax/jcr/Item/index.js +0 -6
- package/types/javax/jcr/ItemVisitor/index.d.ts +5 -3
- package/types/javax/jcr/NamespaceRegistry/index.d.ts +69 -43
- package/types/javax/jcr/NamespaceRegistry/index.js +0 -2
- package/types/javax/jcr/Node/index.d.ts +37 -1506
- package/types/javax/jcr/Node/index.js +1 -34
- package/types/javax/jcr/NodeIterator/index.d.ts +5 -3
- package/types/javax/jcr/Property/index.d.ts +494 -494
- package/types/javax/jcr/Property/index.js +0 -5
- package/types/javax/jcr/PropertyIterator/index.d.ts +5 -3
- package/types/javax/jcr/RangeIterator/index.d.ts +2 -42
- package/types/javax/jcr/RangeIterator/index.js +1 -5
- package/types/javax/jcr/Repository/index.d.ts +465 -263
- package/types/javax/jcr/Repository/index.js +0 -4
- package/types/javax/jcr/RepositoryFactory/index.d.ts +4 -2
- package/types/javax/jcr/Value/index.d.ts +4 -31
- package/types/javax/jcr/Value/index.js +0 -2
- package/types/javax/jcr/ValueFactory/index.d.ts +6 -74
- package/types/javax/jcr/ValueFactory/index.js +1 -2
- package/types/javax/jcr/Workspace/index.d.ts +103 -577
- package/types/javax/jcr/Workspace/index.js +1 -12
- package/types/javax/jcr/lock/Lock/index.d.ts +4 -2
- package/types/javax/jcr/lock/LockManager/index.d.ts +4 -2
- package/types/javax/jcr/nodetype/ItemDefinition/index.d.ts +4 -105
- package/types/javax/jcr/nodetype/ItemDefinition/index.js +0 -5
- package/types/javax/jcr/nodetype/NodeDefinition/index.d.ts +5 -3
- package/types/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +4 -2
- package/types/javax/jcr/nodetype/NodeType/index.d.ts +262 -269
- package/types/javax/jcr/nodetype/NodeType/index.js +1 -12
- package/types/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +5 -107
- package/types/javax/jcr/nodetype/NodeTypeDefinition/index.js +1 -7
- package/types/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +5 -3
- package/types/javax/jcr/nodetype/NodeTypeManager/index.d.ts +9 -130
- package/types/javax/jcr/nodetype/NodeTypeManager/index.js +1 -8
- package/types/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +4 -2
- package/types/javax/jcr/nodetype/PropertyDefinition/index.d.ts +5 -272
- package/types/javax/jcr/nodetype/PropertyDefinition/index.js +1 -7
- package/types/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +5 -3
- package/types/javax/jcr/observation/Event/index.d.ts +85 -42
- package/types/javax/jcr/observation/EventIterator/index.d.ts +5 -3
- package/types/javax/jcr/observation/EventJournal/index.d.ts +4 -2
- package/types/javax/jcr/observation/EventListener/index.d.ts +4 -2
- package/types/javax/jcr/observation/EventListenerIterator/index.d.ts +5 -3
- package/types/javax/jcr/observation/ObservationManager/index.d.ts +6 -4
- package/types/javax/jcr/query/Query/index.d.ts +35 -12
- package/types/javax/jcr/query/QueryManager/index.d.ts +6 -4
- package/types/javax/jcr/query/QueryResult/index.d.ts +5 -3
- package/types/javax/jcr/query/Row/index.d.ts +5 -3
- package/types/javax/jcr/query/RowIterator/index.d.ts +5 -3
- package/types/javax/jcr/query/qom/And/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/BindVariableValue/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/ChildNode/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Column/index.d.ts +3 -1
- package/types/javax/jcr/query/qom/Comparison/index.d.ts +6 -4
- package/types/javax/jcr/query/qom/Constraint/index.d.ts +3 -1
- package/types/javax/jcr/query/qom/DescendantNode/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/DynamicOperand/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/FullTextSearch/index.d.ts +5 -3
- package/types/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Join/index.d.ts +5 -3
- package/types/javax/jcr/query/qom/JoinCondition/index.d.ts +3 -1
- package/types/javax/jcr/query/qom/Length/index.d.ts +5 -3
- package/types/javax/jcr/query/qom/Literal/index.d.ts +5 -3
- package/types/javax/jcr/query/qom/LowerCase/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/NodeLocalName/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/NodeName/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Not/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Operand/index.d.ts +3 -1
- package/types/javax/jcr/query/qom/Or/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Ordering/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/PropertyExistence/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/PropertyValue/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/QueryObjectModel/index.d.ts +8 -6
- package/types/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +76 -2
- package/types/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +37 -35
- package/types/javax/jcr/query/qom/SameNode/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Selector/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Source/index.d.ts +3 -1
- package/types/javax/jcr/query/qom/StaticOperand/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/UpperCase/index.d.ts +4 -2
- package/types/javax/jcr/retention/Hold/index.d.ts +3 -1
- package/types/javax/jcr/retention/RetentionManager/index.d.ts +5 -3
- package/types/javax/jcr/retention/RetentionPolicy/index.d.ts +3 -1
- package/types/javax/jcr/security/AccessControlEntry/index.d.ts +4 -2
- package/types/javax/jcr/security/AccessControlList/index.d.ts +6 -4
- package/types/javax/jcr/security/AccessControlManager/index.d.ts +6 -4
- package/types/javax/jcr/security/AccessControlPolicy/index.d.ts +3 -1
- package/types/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +5 -3
- package/types/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +4 -2
- package/types/javax/jcr/security/Privilege/index.d.ts +130 -44
- package/types/javax/jcr/version/Version/index.d.ts +5 -3
- package/types/javax/jcr/version/VersionHistory/index.d.ts +7 -5
- package/types/javax/jcr/version/VersionIterator/index.d.ts +5 -3
- package/types/javax/jcr/version/VersionManager/index.d.ts +7 -5
- package/types/senselogic/sitevision/api/base/Builder/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/base/Filter/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/base/FilterSplit/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/base/Loadable/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/base/Requireable/ScriptEngine/index.d.ts +9 -0
- package/types/senselogic/sitevision/api/base/Requireable/ScriptEngine/index.js +11 -0
- package/types/senselogic/sitevision/api/base/Resolver/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/base/Wrapper/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +13 -7
- package/types/senselogic/sitevision/api/format/NumericFormatter/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +5 -3
- package/types/senselogic/sitevision/api/i18n/Currency/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +5 -3
- package/types/senselogic/sitevision/api/link/CustomLinkRenderData/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/mail/Mail/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/message/MessageTextLinker/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/metadata/value/LinkValue/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/metadata/value/RelatedValue/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/property/VersionedPropertyUtil/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/render/BuddyIconRenderer.BuddyIconInfo/index.d.ts +51 -0
- package/types/senselogic/sitevision/api/render/BuddyIconRenderer.BuddyIconInfo/index.js +12 -0
- package/types/senselogic/sitevision/api/render/ImageScaler/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/render/TextModuleRenderer/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants/index.d.ts +85 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants/index.js +21 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ExceptionSuppressingProxyConstants/index.d.ts +31 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ExceptionSuppressingProxyConstants/index.js +12 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants/index.d.ts +31 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants/index.js +12 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.LinkPageUtilConstants/index.d.ts +67 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.LinkPageUtilConstants/index.js +18 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MathInstanceConstants/index.d.ts +25 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MathInstanceConstants/index.js +11 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MimeTypeUtilConstants/index.d.ts +19 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MimeTypeUtilConstants/index.js +10 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.d.ts +1243 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.js +189 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.OutputUtilConstants/index.d.ts +31 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.OutputUtilConstants/index.js +12 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants/index.d.ts +91 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants/index.js +22 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletContextUtilConstants/index.d.ts +27 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletContextUtilConstants/index.js +11 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants/index.d.ts +19 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants/index.js +10 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.QueryStringUtilConstants/index.d.ts +19 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.QueryStringUtilConstants/index.js +10 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchHitConstants/index.d.ts +25 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchHitConstants/index.js +11 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchResultConstants/index.d.ts +37 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchResultConstants/index.js +13 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.VersionUtilConstants/index.d.ts +25 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.VersionUtilConstants/index.js +11 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityContext/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/render/velocity/VelocityEvaluator/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/script/app/RestAppInvoker/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/script/factory/TypedArgument/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingCollection/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingIterator/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +24 -2
- package/types/senselogic/sitevision/api/search/SearchFieldUtil/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/SearchHighlighter/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/search/SearchHit/index.d.ts +19 -3
- package/types/senselogic/sitevision/api/search/SearchResult/index.d.ts +31 -7
- package/types/senselogic/sitevision/api/search/facet/SearchFacetField/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/facet/SearchFacetValue/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/searcher/Searcher/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/search/searcher/component/Filter/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/searcher/component/Highlight/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/searcher/component/Monitor/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/searcher/component/Parser/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/searcher/component/Sort/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/searcher/component/SpellCheck/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/sort/CustomSort/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/suggestion/SearchSuggestion/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/security/DirectoryAttributes/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/security/MessageDigester/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/security/RoleAssignment/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/security/RoleMatcher/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/security/SecretStore/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/security/UserUtil/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +35 -3
- package/types/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilterChain/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +5 -3
- package/types/senselogic/sitevision/api/webresource/LinkTarget/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/xml/XmlElement/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/xml/XmlElementHandler/index.d.ts +4 -2
|
@@ -1,32 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gets the default XSL template for cleanup of HTML sources.
|
|
3
|
-
*
|
|
4
|
-
* <p>
|
|
5
|
-
* The template strips all <div>'s, <spans>'s and removes all inline styling, classes and attributes
|
|
6
|
-
* that is not mandatory or needed for WCAG purposes.
|
|
7
|
-
* </p>
|
|
8
|
-
* <p>
|
|
9
|
-
* <em>Note!</em> The template supports a <em>sub-set</em> of HTML elements (the presumed most commonly used elements).
|
|
10
|
-
* All unsupported elements are completely discarded (i.e. they will not be included at all in the transformation result).
|
|
11
|
-
* </p>
|
|
12
|
-
* @return the default cleanup template for HTML sources
|
|
13
|
-
*/
|
|
14
|
-
export function getDefaultCleanHtmlTemplate(): string;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Transforms a HTML/XML source using a XSL template.
|
|
18
|
-
*
|
|
19
|
-
* <p>
|
|
20
|
-
* <em>Note!</em> The contents of the XSL Template is always handled as UTF-8.
|
|
21
|
-
* </p>
|
|
22
|
-
* @param aSource the source that should be transformed, HTML, XHTML or XML. Must not be null
|
|
23
|
-
* @param aXslTemplate the UTF-8 XSL template; a sv:file Node, a sv:temporaryFile Node, a sv:link Node that targets a sv:file, a char array or a CharSequence (typically a String). Must not be null
|
|
24
|
-
* @return the transformation result
|
|
25
|
-
* @throws IOException if the transformation fails (e.g. the aSource is really bad/interpretable HTML or aXslTemplate is invalid XSL)
|
|
26
|
-
* @throws RepositoryException if aNode-operation on aXslTemplate fails
|
|
27
|
-
*/
|
|
28
|
-
export function transform(aSource: string, aXslTemplate: unknown): string;
|
|
29
|
-
|
|
30
1
|
/**
|
|
31
2
|
* XSLT utility for transforming XML/HTML using a XSL template.
|
|
32
3
|
*
|
|
@@ -55,8 +26,39 @@ export function transform(aSource: string, aXslTemplate: unknown): string;
|
|
|
55
26
|
* @author Magnus Lövgren
|
|
56
27
|
* @since Sitevision 4.5
|
|
57
28
|
*/
|
|
58
|
-
|
|
59
|
-
|
|
29
|
+
export interface XSLTUtil {
|
|
30
|
+
/**
|
|
31
|
+
* Gets the default XSL template for cleanup of HTML sources.
|
|
32
|
+
*
|
|
33
|
+
* <p>
|
|
34
|
+
* The template strips all <div>'s, <spans>'s and removes all inline styling, classes and attributes
|
|
35
|
+
* that is not mandatory or needed for WCAG purposes.
|
|
36
|
+
* </p>
|
|
37
|
+
* <p>
|
|
38
|
+
* <em>Note!</em> The template supports a <em>sub-set</em> of HTML elements (the presumed most commonly used elements).
|
|
39
|
+
* All unsupported elements are completely discarded (i.e. they will not be included at all in the transformation result).
|
|
40
|
+
* </p>
|
|
41
|
+
* @return the default cleanup template for HTML sources
|
|
42
|
+
*/
|
|
43
|
+
getDefaultCleanHtmlTemplate(): string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Transforms a HTML/XML source using a XSL template.
|
|
47
|
+
*
|
|
48
|
+
* <p>
|
|
49
|
+
* <em>Note!</em> The contents of the XSL Template is always handled as UTF-8.
|
|
50
|
+
* </p>
|
|
51
|
+
* @param aSource the source that should be transformed, HTML, XHTML or XML. Must not be null
|
|
52
|
+
* @param aXslTemplate the UTF-8 XSL template; a sv:file Node, a sv:temporaryFile Node, a sv:link Node that targets a sv:file, a char array or a CharSequence (typically a String). Must not be null
|
|
53
|
+
* @return the transformation result
|
|
54
|
+
* @throws IOException if the transformation fails (e.g. the aSource is really bad/interpretable HTML or aXslTemplate is invalid XSL)
|
|
55
|
+
* @throws RepositoryException if aNode-operation on aXslTemplate fails
|
|
56
|
+
*/
|
|
57
|
+
transform(aSource: string, aXslTemplate: unknown): string;
|
|
60
58
|
}
|
|
61
59
|
|
|
62
|
-
|
|
60
|
+
declare namespace XSLTUtil {}
|
|
61
|
+
|
|
62
|
+
declare var xSLTUtil: XSLTUtil;
|
|
63
|
+
|
|
64
|
+
export = xSLTUtil;
|
|
@@ -1,49 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type XmlElementHandler from "../../types/senselogic/sitevision/api/xml/XmlElementHandler";
|
|
2
2
|
|
|
3
|
-
import type
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Parse a XML string.
|
|
7
|
-
* @param aElementSelection the elements in the XML that should be passed to the XmlElementHandler
|
|
8
|
-
* @param aXml the UTF-8 XML string
|
|
9
|
-
* @param aXmlElementHandler the XmlElementHandler
|
|
10
|
-
* @throws XmlParserException if an error occurs while parsing the XML
|
|
11
|
-
*/
|
|
12
|
-
export function parse(
|
|
13
|
-
aElementSelection: string,
|
|
14
|
-
aXml: string,
|
|
15
|
-
aXmlElementHandler: XmlElementHandler
|
|
16
|
-
): void;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Parse a file containing XML encoded using UTF-8.
|
|
20
|
-
* @param aElementSelection the elements in the XML that should be passed to the XmlElementHandler
|
|
21
|
-
* @param aXmlFile the file containing XML encoded using UTF-8 (sv:file or sv:temporaryFile)
|
|
22
|
-
* @param aXmlElementHandler the XmlElementHandler
|
|
23
|
-
* @throws RepositoryException if an error occurs while accessing the file
|
|
24
|
-
* @throws XmlParserException if an error occurs while parsing the XML
|
|
25
|
-
*/
|
|
26
|
-
export function parse(
|
|
27
|
-
aElementSelection: string,
|
|
28
|
-
aXmlFile: Node,
|
|
29
|
-
aXmlElementHandler: XmlElementHandler
|
|
30
|
-
): void;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Parse a file containing XML encoded with the supplied charset.
|
|
34
|
-
* @param aElementSelection the elements in the XML that should be passed to the XmlElementHandler
|
|
35
|
-
* @param aXmlFile the file containing XML encoded using supplied encoding (sv:file or sv:temporaryFile)
|
|
36
|
-
* @param aCharset the character encoding of the the file content (an IllegalArgument will be thrown if aCharset can not be resolved as a java.nio.charset.Charset)
|
|
37
|
-
* @param aXmlElementHandler the XmlElementHandler
|
|
38
|
-
* @throws RepositoryException if an error occurs while accessing the file
|
|
39
|
-
* @throws XmlParserException if an error occurs while parsing the XML
|
|
40
|
-
*/
|
|
41
|
-
export function parse(
|
|
42
|
-
aElementSelection: string,
|
|
43
|
-
aXmlFile: Node,
|
|
44
|
-
aCharset: string,
|
|
45
|
-
aXmlElementHandler: XmlElementHandler
|
|
46
|
-
): void;
|
|
3
|
+
import type Node from "../../types/javax/jcr/Node";
|
|
47
4
|
|
|
48
5
|
/**
|
|
49
6
|
* Utility interface for parsing XML.
|
|
@@ -112,8 +69,53 @@ export function parse(
|
|
|
112
69
|
* @author Niclas Hedlund
|
|
113
70
|
* @since Sitevision 5.1
|
|
114
71
|
*/
|
|
115
|
-
|
|
116
|
-
|
|
72
|
+
export interface XmlParserUtil {
|
|
73
|
+
/**
|
|
74
|
+
* Parse a XML string.
|
|
75
|
+
* @param aElementSelection the elements in the XML that should be passed to the XmlElementHandler
|
|
76
|
+
* @param aXml the UTF-8 XML string
|
|
77
|
+
* @param aXmlElementHandler the XmlElementHandler
|
|
78
|
+
* @throws XmlParserException if an error occurs while parsing the XML
|
|
79
|
+
*/
|
|
80
|
+
parse(
|
|
81
|
+
aElementSelection: string,
|
|
82
|
+
aXml: string,
|
|
83
|
+
aXmlElementHandler: XmlElementHandler
|
|
84
|
+
): void;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Parse a file containing XML encoded using UTF-8.
|
|
88
|
+
* @param aElementSelection the elements in the XML that should be passed to the XmlElementHandler
|
|
89
|
+
* @param aXmlFile the file containing XML encoded using UTF-8 (sv:file or sv:temporaryFile)
|
|
90
|
+
* @param aXmlElementHandler the XmlElementHandler
|
|
91
|
+
* @throws RepositoryException if an error occurs while accessing the file
|
|
92
|
+
* @throws XmlParserException if an error occurs while parsing the XML
|
|
93
|
+
*/
|
|
94
|
+
parse(
|
|
95
|
+
aElementSelection: string,
|
|
96
|
+
aXmlFile: Node,
|
|
97
|
+
aXmlElementHandler: XmlElementHandler
|
|
98
|
+
): void;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Parse a file containing XML encoded with the supplied charset.
|
|
102
|
+
* @param aElementSelection the elements in the XML that should be passed to the XmlElementHandler
|
|
103
|
+
* @param aXmlFile the file containing XML encoded using supplied encoding (sv:file or sv:temporaryFile)
|
|
104
|
+
* @param aCharset the character encoding of the the file content (an IllegalArgument will be thrown if aCharset can not be resolved as a java.nio.charset.Charset)
|
|
105
|
+
* @param aXmlElementHandler the XmlElementHandler
|
|
106
|
+
* @throws RepositoryException if an error occurs while accessing the file
|
|
107
|
+
* @throws XmlParserException if an error occurs while parsing the XML
|
|
108
|
+
*/
|
|
109
|
+
parse(
|
|
110
|
+
aElementSelection: string,
|
|
111
|
+
aXmlFile: Node,
|
|
112
|
+
aCharset: string,
|
|
113
|
+
aXmlElementHandler: XmlElementHandler
|
|
114
|
+
): void;
|
|
117
115
|
}
|
|
118
116
|
|
|
119
|
-
|
|
117
|
+
declare namespace XmlParserUtil {}
|
|
118
|
+
|
|
119
|
+
declare var xmlParserUtil: XmlParserUtil;
|
|
120
|
+
|
|
121
|
+
export = xmlParserUtil;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @since JCR 2.0
|
|
8
8
|
* @since Sitevision 3.5
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
type Binary = {
|
|
11
11
|
/**
|
|
12
12
|
* Returns an {@link InputStream} representation of this value. Each call to
|
|
13
13
|
* <code>getStream()</code> returns a new stream. The API consumer is
|
|
@@ -21,26 +21,6 @@ export type Binary = {
|
|
|
21
21
|
*/
|
|
22
22
|
getStream(): unknown;
|
|
23
23
|
|
|
24
|
-
/**
|
|
25
|
-
* Reads successive bytes from the specified <code>position</code> in this
|
|
26
|
-
* <code>Binary</code> into the passed byte array until either the byte
|
|
27
|
-
* array is full or the end of the <code>Binary</code> is encountered.
|
|
28
|
-
* <p>
|
|
29
|
-
* If {@link #dispose()} has been called on this <code>Binary</code>
|
|
30
|
-
* object, then this method will throw the runtime exception
|
|
31
|
-
* {@link java.lang.IllegalStateException}.
|
|
32
|
-
*
|
|
33
|
-
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
34
|
-
* @param b the buffer into which the data is read.
|
|
35
|
-
* @param position the position in this Binary from which to start reading bytes.
|
|
36
|
-
* @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.
|
|
37
|
-
* @throws IOException if an I/O error occurs.
|
|
38
|
-
* @throws NullPointerException if b is null.
|
|
39
|
-
* @throws IllegalArgumentException if offset is negative.
|
|
40
|
-
* @throws RepositoryException if another error occurs.
|
|
41
|
-
*/
|
|
42
|
-
read(b: unknown, position: number): number;
|
|
43
|
-
|
|
44
24
|
/**
|
|
45
25
|
* Returns the size of this <code>Binary</code> value in bytes.
|
|
46
26
|
* <p>
|
|
@@ -61,3 +41,5 @@ export type Binary = {
|
|
|
61
41
|
*/
|
|
62
42
|
dispose(): void;
|
|
63
43
|
};
|
|
44
|
+
|
|
45
|
+
export = Binary;
|
|
@@ -6,6 +6,32 @@
|
|
|
6
6
|
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
7
7
|
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
type ImportUUIDBehavior = {
|
|
10
10
|
undefined;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
|
|
15
|
+
*/
|
|
16
|
+
IMPORT_UUID_CREATE_NEW: number;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
|
|
21
|
+
*/
|
|
22
|
+
IMPORT_UUID_COLLISION_REMOVE_EXISTING: number;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
|
|
27
|
+
*/
|
|
28
|
+
IMPORT_UUID_COLLISION_REPLACE_EXISTING: number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
|
|
33
|
+
*/
|
|
34
|
+
IMPORT_UUID_COLLISION_THROW: number;
|
|
11
35
|
};
|
|
36
|
+
|
|
37
|
+
export = ImportUUIDBehavior;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import Session from "../../../../server/Session";
|
|
1
|
+
import type Node from "../Node";
|
|
2
|
+
import { Session } from "../../../../server/Session";
|
|
3
3
|
|
|
4
|
-
import type
|
|
4
|
+
import type ItemVisitor from "../ItemVisitor";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* The <code>Item</code> is the base interface of <code>{@link Node}</code> and
|
|
8
8
|
* <code>{@link Property}</code>.
|
|
9
9
|
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
type Item = {
|
|
12
12
|
/**
|
|
13
13
|
* Returns the normalized absolute path to this item.
|
|
14
14
|
* @return the normalized absolute path of this <code>Item</code>.
|
|
@@ -25,31 +25,6 @@ export type Item = {
|
|
|
25
25
|
*/
|
|
26
26
|
getName(): string;
|
|
27
27
|
|
|
28
|
-
/**
|
|
29
|
-
* Returns the ancestor of this <code>Item</code> at the specified depth. An
|
|
30
|
-
* ancestor of depth <i>x</i> is the <code>Item</code> that is <i>x</i>
|
|
31
|
-
* levels down along the path from the root node to <i>this</i>
|
|
32
|
-
* <code>Item</code>. <ul> <li><i>depth</i> = 0 returns the root node of a
|
|
33
|
-
* workspace. <li><i>depth</i> = 1 returns the child of the root node along
|
|
34
|
-
* the path to <i>this</i> <code>Item</code>. <li><i>depth</i> = 2 returns
|
|
35
|
-
* the grandchild of the root node along the path to <i>this</i>
|
|
36
|
-
* <code>Item</code>. <li>And so on to <i>depth</i> = <i>n</i>, where
|
|
37
|
-
* <i>n</i> is the depth of <i>this</i> <code>Item</code>, which returns
|
|
38
|
-
* <i>this</i> <code>Item</code> itself. </ul>
|
|
39
|
-
* <p>
|
|
40
|
-
* If this node has more than one path (i.e., if it is a descendant of a
|
|
41
|
-
* shared node) then the path used to define the ancestor is
|
|
42
|
-
* implementaion-dependent.
|
|
43
|
-
*
|
|
44
|
-
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
45
|
-
* @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>.
|
|
46
|
-
* @return The ancestor of this <code>Item</code> at the specified <code>depth</code>.
|
|
47
|
-
* @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.
|
|
48
|
-
* @throws AccessDeniedException if the current session does not have sufficent access to retrieve the specified node.
|
|
49
|
-
* @throws RepositoryException if another error occurs.
|
|
50
|
-
*/
|
|
51
|
-
getAncestor(depth: number): Item;
|
|
52
|
-
|
|
53
28
|
/**
|
|
54
29
|
* Returns the parent of this <code>Item</code>.
|
|
55
30
|
* @return The parent of this <code>Item</code>.
|
|
@@ -59,28 +34,6 @@ export type Item = {
|
|
|
59
34
|
*/
|
|
60
35
|
getParent(): Node;
|
|
61
36
|
|
|
62
|
-
/**
|
|
63
|
-
* Returns the depth of this <code>Item</code> in the workspace item graph.
|
|
64
|
-
* <ul> <li>The root node returns 0. <li>A property or child node of the
|
|
65
|
-
* root node returns 1. <li>A property or child node of a child node of the
|
|
66
|
-
* root returns 2. <li>And so on to <i>this</i> <code>Item</code>. </ul>
|
|
67
|
-
*
|
|
68
|
-
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
69
|
-
* @return The depth of this <code>Item</code> in the workspace item graph.
|
|
70
|
-
* @throws RepositoryException if an error occurs.
|
|
71
|
-
*/
|
|
72
|
-
getDepth(): number;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Returns the <code>Session</code> through which this <code>Item</code> was
|
|
76
|
-
* acquired.
|
|
77
|
-
*
|
|
78
|
-
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
79
|
-
* @return the <code>Session</code> through which this <code>Item</code> was acquired.
|
|
80
|
-
* @throws RepositoryException if an error occurs.
|
|
81
|
-
*/
|
|
82
|
-
getSession(): Session;
|
|
83
|
-
|
|
84
37
|
/**
|
|
85
38
|
* Indicates whether this <code>Item</code> is a <code>Node</code> or a
|
|
86
39
|
* <code>Property</code>. Returns <code>true</code> if this
|
|
@@ -90,74 +43,6 @@ export type Item = {
|
|
|
90
43
|
*/
|
|
91
44
|
isNode(): boolean;
|
|
92
45
|
|
|
93
|
-
/**
|
|
94
|
-
* Returns <code>true</code> if this is a new item, meaning that it exists
|
|
95
|
-
* only in transient storage on the <code>Session</code> and has not yet
|
|
96
|
-
* been saved. Within a transaction, <code>isNew</code> on an
|
|
97
|
-
* <code>Item</code> may return <code>false</code> (because the item has
|
|
98
|
-
* been saved) even if that <code>Item</code> is not in persistent storage
|
|
99
|
-
* (because the transaction has not yet been committed).
|
|
100
|
-
* <p>
|
|
101
|
-
* Note that if an item returns <code>true</code> on <code>isNew</code>,
|
|
102
|
-
* then by definition is parent will return <code>true</code> on
|
|
103
|
-
* <code>isModified</code>.
|
|
104
|
-
* <p>
|
|
105
|
-
* Note that in read-only implementations, this method will always return
|
|
106
|
-
* <code>false</code>.
|
|
107
|
-
*
|
|
108
|
-
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
109
|
-
* @return <code>true</code> if this item is new; <code>false</code> otherwise.
|
|
110
|
-
*/
|
|
111
|
-
isNew(): boolean;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Returns <code>true</code> if this <code>Item</code> has been saved but
|
|
115
|
-
* has subsequently been modified through the current session and therefore
|
|
116
|
-
* the state of this item as recorded in the session differs from the state
|
|
117
|
-
* of this item as saved. Within a transaction, <code>isModified</code> on
|
|
118
|
-
* an <code>Item</code> may return <code>false</code> (because the
|
|
119
|
-
* <code>Item</code> has been saved since the modification) even if the
|
|
120
|
-
* modification in question is not in persistent storage (because the
|
|
121
|
-
* transaction has not yet been committed).
|
|
122
|
-
* <p>
|
|
123
|
-
* Note that in read-only implementations, this method will always return
|
|
124
|
-
* <code>false</code>.
|
|
125
|
-
*
|
|
126
|
-
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
127
|
-
* @return <code>true</code> if this item is modified; <code>false</code> otherwise.
|
|
128
|
-
*/
|
|
129
|
-
isModified(): boolean;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Returns <code>true</code> if this <code>Item</code> object (the Java
|
|
133
|
-
* object instance) represents the same actual workspace item as the object
|
|
134
|
-
* <code>otherItem</code>.
|
|
135
|
-
* <p>
|
|
136
|
-
* Two <code>Item</code> objects represent the same workspace item if and
|
|
137
|
-
* only if all the following are true: <ul> <li>Both objects were acquired
|
|
138
|
-
* through <code>Session</code> objects that were created by the same
|
|
139
|
-
* <code>Repository</code> object.</li> <li>Both objects were acquired
|
|
140
|
-
* through <code>Session</code> objects bound to the same repository
|
|
141
|
-
* workspace.</li> <li>The objects are either both <code>Node</code> objects
|
|
142
|
-
* or both <code>Property</code> objects.</li> <li>If they are
|
|
143
|
-
* <code>Node</code> objects, they have the same identifier.</li> <li>If
|
|
144
|
-
* they are <code>Property</code> objects they have identical names and
|
|
145
|
-
* <code>isSame</code> is true of their parent nodes.</li> </ul> This method
|
|
146
|
-
* does not compare the <i>states</i> of the two items. For example, if two
|
|
147
|
-
* <code>Item</code> objects representing the same actual workspace item
|
|
148
|
-
* have been retrieved through two different sessions and one has been
|
|
149
|
-
* modified, then this method will still return <code>true</code> when
|
|
150
|
-
* comparing these two objects. Note that if two <code>Item</code> objects
|
|
151
|
-
* representing the same workspace item are retrieved through the
|
|
152
|
-
* <i>same</i> session they will always reflect the same state.
|
|
153
|
-
*
|
|
154
|
-
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
155
|
-
* @param otherItem the <code>Item</code> object to be tested for identity with this <code>Item</code>.
|
|
156
|
-
* @return <code>true</code> if this <code>Item</code> object and <code>otherItem</code> represent the same actual repository item; <code>false</code> otherwise.
|
|
157
|
-
* @throws RepositoryException if an error occurs.
|
|
158
|
-
*/
|
|
159
|
-
isSame(otherItem: Item): boolean;
|
|
160
|
-
|
|
161
46
|
/**
|
|
162
47
|
* Accepts an <code>ItemVisitor</code>. Calls the appropriate
|
|
163
48
|
* <code>ItemVisitor</code> <code>visit</code> method of the according to
|
|
@@ -236,3 +121,5 @@ export type Item = {
|
|
|
236
121
|
*/
|
|
237
122
|
remove(): void;
|
|
238
123
|
};
|
|
124
|
+
|
|
125
|
+
export = Item;
|
|
@@ -7,14 +7,8 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _default = {
|
|
8
8
|
getPath: function getPath() {},
|
|
9
9
|
getName: function getName() {},
|
|
10
|
-
getAncestor: function getAncestor() {},
|
|
11
10
|
getParent: function getParent() {},
|
|
12
|
-
getDepth: function getDepth() {},
|
|
13
|
-
getSession: function getSession() {},
|
|
14
11
|
isNode: function isNode() {},
|
|
15
|
-
isNew: function isNew() {},
|
|
16
|
-
isModified: function isModified() {},
|
|
17
|
-
isSame: function isSame() {},
|
|
18
12
|
accept: function accept() {},
|
|
19
13
|
save: function save() {},
|
|
20
14
|
refresh: function refresh() {},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type Property from "../Property";
|
|
2
2
|
|
|
3
|
-
import type
|
|
3
|
+
import type Node from "../Node";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* This interface defines two signatures of the <code>visit</code> method; one
|
|
@@ -15,7 +15,7 @@ import type { Node } from "../Node";
|
|
|
15
15
|
* through the tree performing some operation on each <code>Item</code>.
|
|
16
16
|
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
type ItemVisitor = {
|
|
19
19
|
/**
|
|
20
20
|
* This method is called when the <code>ItemVisitor</code> is passed to the
|
|
21
21
|
* <code>accept</code> method of a <code>Property</code>. If this method
|
|
@@ -34,3 +34,5 @@ export type ItemVisitor = {
|
|
|
34
34
|
*/
|
|
35
35
|
visit(node: Node): void;
|
|
36
36
|
};
|
|
37
|
+
|
|
38
|
+
export = ItemVisitor;
|
|
@@ -4,51 +4,10 @@
|
|
|
4
4
|
* Workspace#getNamespaceRegistry}. The namespace registry contains the default
|
|
5
5
|
* prefixes of the registered namespaces. The namespace registry may contain
|
|
6
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.
|
|
8
|
-
* "jcr".A constant for the predefined namespace mapped by default to the prefix
|
|
9
|
-
* "nt".A constant for the predefined namespace mapped by default to the prefix
|
|
10
|
-
* "mix".A constant for the predefined namespace mapped by default to the prefix
|
|
11
|
-
* "xml".A constant for the predefined namespace mapped by default to the prefix
|
|
12
|
-
* "" (the empty prefix).
|
|
7
|
+
* repository content with namespaces that are not included in the registry.
|
|
13
8
|
* @see Workspace#getNamespaceRegistry
|
|
14
9
|
*/
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Sets a one-to-one mapping between <code>prefix</code> and
|
|
18
|
-
* <code>uri</code> in the global namespace registry of this repository.
|
|
19
|
-
* <p>
|
|
20
|
-
* Assigning a new prefix to a URI that already exists in the namespace
|
|
21
|
-
* registry erases the old prefix. In general this can almost always be
|
|
22
|
-
* done, though an implementation is free to prevent particular remappings
|
|
23
|
-
* by throwing a <code>NamespaceException</code>.
|
|
24
|
-
* <p>
|
|
25
|
-
* On the other hand, taking a prefix that is already assigned to a URI and
|
|
26
|
-
* re-assigning it to a new URI in effect unregisters that URI. Therefore,
|
|
27
|
-
* the same restrictions apply to this operation as to
|
|
28
|
-
* <code>NamespaceRegistry.unregisterNamespace</code>.
|
|
29
|
-
*
|
|
30
|
-
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
31
|
-
* @param prefix The prefix to be mapped.
|
|
32
|
-
* @param uri The URI to be mapped.
|
|
33
|
-
* @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.
|
|
34
|
-
* @throws UnsupportedRepositoryOperationException if this repository does not support namespace registry changes.
|
|
35
|
-
* @throws AccessDeniedException if the current session does not have sufficent access to register the namespace.
|
|
36
|
-
* @throws RepositoryException if another error occurs.
|
|
37
|
-
*/
|
|
38
|
-
registerNamespace(prefix: string, uri: string): void;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Removes a namespace mapping from the registry.
|
|
42
|
-
*
|
|
43
|
-
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
44
|
-
* @param prefix The prefix of the mapping to be removed.
|
|
45
|
-
* @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.
|
|
46
|
-
* @throws UnsupportedRepositoryOperationException if this repository does not support namespace registry changes.
|
|
47
|
-
* @throws AccessDeniedException if the current session does not have sufficent access to unregister the namespace.
|
|
48
|
-
* @throws RepositoryException if another error occurs.
|
|
49
|
-
*/
|
|
50
|
-
unregisterNamespace(prefix: string): void;
|
|
51
|
-
|
|
10
|
+
type NamespaceRegistry = {
|
|
52
11
|
/**
|
|
53
12
|
* Returns an array holding all currently registered prefixes.
|
|
54
13
|
* @return a string array.
|
|
@@ -80,4 +39,71 @@ export type NamespaceRegistry = {
|
|
|
80
39
|
* @throws RepositoryException if another error occurs.
|
|
81
40
|
*/
|
|
82
41
|
getPrefix(uri: string): string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* A constant for the predefined namespace prefix "jcr".
|
|
45
|
+
|
|
46
|
+
*/
|
|
47
|
+
PREFIX_JCR: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* A constant for the predefined namespace prefix "nt".
|
|
51
|
+
|
|
52
|
+
*/
|
|
53
|
+
PREFIX_NT: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* A constant for the predefined namespace prefix "mix".
|
|
57
|
+
|
|
58
|
+
*/
|
|
59
|
+
PREFIX_MIX: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* A constant for the predefined namespace prefix "xml".
|
|
63
|
+
|
|
64
|
+
*/
|
|
65
|
+
PREFIX_XML: string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* A constant for the predefined namespace prefix "" (the empty prefix).
|
|
69
|
+
|
|
70
|
+
*/
|
|
71
|
+
PREFIX_EMPTY: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* A constant for the predefined namespace mapped by default to the prefix
|
|
75
|
+
* "jcr".
|
|
76
|
+
|
|
77
|
+
*/
|
|
78
|
+
NAMESPACE_JCR: string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* A constant for the predefined namespace mapped by default to the prefix
|
|
82
|
+
* "nt".
|
|
83
|
+
|
|
84
|
+
*/
|
|
85
|
+
NAMESPACE_NT: string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* A constant for the predefined namespace mapped by default to the prefix
|
|
89
|
+
* "mix".
|
|
90
|
+
|
|
91
|
+
*/
|
|
92
|
+
NAMESPACE_MIX: string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* A constant for the predefined namespace mapped by default to the prefix
|
|
96
|
+
* "xml".
|
|
97
|
+
|
|
98
|
+
*/
|
|
99
|
+
NAMESPACE_XML: string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* A constant for the predefined namespace mapped by default to the prefix
|
|
103
|
+
* "" (the empty prefix).
|
|
104
|
+
|
|
105
|
+
*/
|
|
106
|
+
NAMESPACE_EMPTY: string;
|
|
83
107
|
};
|
|
108
|
+
|
|
109
|
+
export = NamespaceRegistry;
|
|
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _default = {
|
|
8
|
-
registerNamespace: function registerNamespace() {},
|
|
9
|
-
unregisterNamespace: function unregisterNamespace() {},
|
|
10
8
|
getPrefixes: function getPrefixes() {},
|
|
11
9
|
getURIs: function getURIs() {},
|
|
12
10
|
getURI: function getURI() {},
|