@sitevision/api 1.0.20 → 1.1.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/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/index.d.ts +103 -4
- 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/server/CollaborationGroupState/index.d.ts +0 -6
- package/server/CollaborationGroupState/index.js +0 -1
- package/server/CollaborationGroupType/index.d.ts +0 -7
- package/server/CollaborationGroupType/index.js +0 -1
- package/server/CollaborationGroupWrapper/index.d.ts +0 -136
- package/server/CollaborationGroupWrapper/index.js +0 -1
- package/server/DimensionMode/index.d.ts +0 -7
- package/server/DimensionMode/index.js +0 -1
|
@@ -1,110 +1,555 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import Node from "../../hidden/javax/jcr/Node";
|
|
2
|
+
import Property from "../../hidden/javax/jcr/Property";
|
|
3
|
+
import LinkValueBuilder from "../LinkValueBuilder";
|
|
4
|
+
import RelatedValueBuilder from "../RelatedValueBuilder";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
* <p>
|
|
8
|
+
* Set a new value to a metadata <code>Property</code> on a <code>Node</code>. The node must
|
|
9
|
+
* be of such a type where it is possible to define a metadata value (e.g. page, article, template, file, image)
|
|
10
|
+
* or an <code>IllegalArgumentException</code> will be thrown.
|
|
11
|
+
* </p>
|
|
12
|
+
* <p>
|
|
13
|
+
* <strong>For comprehensive information about supported metadata</strong> see alternate method
|
|
14
|
+
* {@link #setMetadataPropertyValue(javax.jcr.Node, String, Object)}.
|
|
15
|
+
* </p>
|
|
16
|
+
*
|
|
17
|
+
* <p>
|
|
18
|
+
* <strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}.
|
|
19
|
+
* Hence, if you set a metadata value, <code>aNode</code> must be published (see {@link senselogic.sitevision.api.versioning.PublishingUtil})
|
|
20
|
+
* to have any effect in the {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}
|
|
21
|
+
* </p>
|
|
22
|
+
* @param aNode the <code>Node</code> where the metadata value should be altered. May not be <code>null</code>
|
|
23
|
+
* @param aProperty the <code>Property</code> that should be altered. May not be <code>null</code>
|
|
24
|
+
* @param aValue the new value. May not be <code>null</code>
|
|
25
|
+
* @throws LockException is thrown if the specified is locked for editing (i.e. someone else is currently editing the same node)
|
|
26
|
+
* @throws RepositoryException if anything goes wrong
|
|
27
|
+
* @see #setMetadataPropertyValue(javax.jcr.Node, String, Object)
|
|
28
|
+
*/
|
|
29
|
+
export function setMetadataPropertyValue(
|
|
30
|
+
aNode: Node,
|
|
31
|
+
aProperty: Property,
|
|
32
|
+
aValue: unknown
|
|
33
|
+
): void;
|
|
13
34
|
|
|
14
35
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
|
|
18
|
-
|
|
36
|
+
* <p>
|
|
37
|
+
* Set a new value to a metadata <code>Property</code> on a <code>Node</code>. The node must
|
|
38
|
+
* be of such a type where it is possible to define a metadata value (e.g. page, article, template, file, image)
|
|
39
|
+
* or an <code>IllegalArgumentException</code> will be thrown.
|
|
40
|
+
* </p>
|
|
41
|
+
*
|
|
42
|
+
* <p>This method currently supports alternation of the following metadata types:</p>
|
|
43
|
+
* <ul>
|
|
44
|
+
* <li>
|
|
45
|
+
* <strong>text</strong><br>
|
|
46
|
+
* The value will be handled as string (i.e. toString).
|
|
47
|
+
* </li>
|
|
48
|
+
* <li>
|
|
49
|
+
* <strong>single alternative</strong><br>
|
|
50
|
+
* The value must be a valid alternative, or the metadata definition
|
|
51
|
+
* must support 'other' values. If not, an <code>UnsupportedOperationException</code> is
|
|
52
|
+
* thrown. The value is handled as a string (i.e. toString).
|
|
53
|
+
* </li>
|
|
54
|
+
* <li>
|
|
55
|
+
* <strong>multiple alternative</strong><br>
|
|
56
|
+
* The value must be a valid alternative, or the metadata definition
|
|
57
|
+
* must support 'other' values. Any invalid value will be ignored. If no valid alternatives
|
|
58
|
+
* are provided an <code>UnsupportedOperationException</code> is thrown. The value is
|
|
59
|
+
* a comma separated string of the alternatives. It is also possible to provide a collection
|
|
60
|
+
* or an array of strings corresponding to the alternatives.
|
|
61
|
+
* </li>
|
|
62
|
+
* <li>
|
|
63
|
+
* <strong>date</strong><br>
|
|
64
|
+
* The value must be a <code>Date</code>, <code>Calendar</code>, <code>Long</code>,
|
|
65
|
+
* <code>Integer</code> or <code>Double</code>. If no valid value is provided an
|
|
66
|
+
* <code>UnsupportedOperationException</code> is thrown.
|
|
67
|
+
* </li>
|
|
68
|
+
* <li>
|
|
69
|
+
* <strong>user</strong><br>
|
|
70
|
+
* The value must be a <code>Node</code> (of type sv:user or sv:simpleUser) or an id <code>String</code> to a JCR-node
|
|
71
|
+
* corresponding to the designated user. If no valid value is provided an
|
|
72
|
+
* <code>UnsupportedOperationException</code> is thrown.
|
|
73
|
+
* </li>
|
|
74
|
+
* <li>
|
|
75
|
+
* <strong>directory object</strong><br>
|
|
76
|
+
* The value must be a <code>Node</code> (of type sv:user, sv:userGroup or sv:userContainer) or an id <code>String</code> to a JCR-node
|
|
77
|
+
* corresponding to the designated directory object. It is also possible to provide a collection, an
|
|
78
|
+
* array of such objects or a comma separated list of ids. If no valid value is provided an
|
|
79
|
+
* <code>UnsupportedOperationException</code> is thrown.
|
|
80
|
+
* </li>
|
|
81
|
+
* <li>
|
|
82
|
+
* <strong>link</strong><br>
|
|
83
|
+
* The value must be a {@link senselogic.sitevision.api.metadata.value.LinkValue} <em>(since Sitevision 3.6)</em>,
|
|
84
|
+
* a <code>Node</code> or an id <code>String</code> to a JCR-node that can be used as link (e.g. page, article, image, file).
|
|
85
|
+
* If no valid value is provided an <code>UnsupportedOperationException</code> is thrown.
|
|
86
|
+
* </li>
|
|
87
|
+
* <li>
|
|
88
|
+
* <strong>link to portlet</strong> <em>(since Sitevision 2.6.2)</em><br>
|
|
89
|
+
* The value will be handled as string (i.e. toString).
|
|
90
|
+
* </li>
|
|
91
|
+
* <li>
|
|
92
|
+
* <strong>number</strong> <em>(since Sitevision 2.6.2)</em><br>
|
|
93
|
+
* The value must be a <code>Number</code> (e.g. <code>Integer</code>, <code>Long</code>, <code>Double</code> etc.)
|
|
94
|
+
* or the toString() method of the value must be parseable as an int <em>(i.e. Integer.parseInt(aValue.toString())
|
|
95
|
+
* must not throw a NumberFormatException)</em>.
|
|
96
|
+
* If no valid value is provided an <code>UnsupportedOperationException</code> is thrown.
|
|
97
|
+
* </li>
|
|
98
|
+
* <li>
|
|
99
|
+
* <strong>related</strong> <em>(since Sitevision 3.6)</em><br>
|
|
100
|
+
* The value must be a {@link senselogic.sitevision.api.metadata.value.RelatedValue}.
|
|
101
|
+
* If no valid value is provided an <code>UnsupportedOperationException</code> is thrown.
|
|
102
|
+
* </li>
|
|
103
|
+
* <li>
|
|
104
|
+
* <strong>single tag</strong> <em>(since Sitevision 7.2)</em><br>
|
|
105
|
+
* The value must be a valid tag, or the metadata definition
|
|
106
|
+
* must allow custom tags. If not, an <code>UnsupportedOperationException</code> is
|
|
107
|
+
* thrown. The value must be of type <code>sv:tag</code> or a tag name as a <code>String</code>.
|
|
108
|
+
* </li>
|
|
109
|
+
* <li>
|
|
110
|
+
* <strong>multiple tags</strong> <em>(since Sitevision 7.2)</em><br>
|
|
111
|
+
* The value must be a valid tag, or the metadata definition
|
|
112
|
+
* must allow custom tags. Any invalid tags will be ignored. If no valid tags
|
|
113
|
+
* are provided an <code>UnsupportedOperationException</code> is thrown. The value is
|
|
114
|
+
* a comma separated string of the tag names. Note that tag names provided as a comma separated string must be prefixed with #.
|
|
115
|
+
* It is also possible to provide a collection or an array of <code>sv:tag</code> or strings of tag names.
|
|
116
|
+
* </li>
|
|
117
|
+
* </ul>
|
|
118
|
+
*
|
|
119
|
+
* <p>
|
|
120
|
+
* <strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}.
|
|
121
|
+
* Hence, if you set a metadata value, <code>aNode</code> must be published (see {@link senselogic.sitevision.api.versioning.PublishingUtil})
|
|
122
|
+
* to have any effect in the {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}
|
|
123
|
+
* </p>
|
|
124
|
+
*
|
|
125
|
+
* <p>
|
|
126
|
+
* Throws <code>NullPointerException</code> or <code>IllegalArgumentException</code> if an illegal argument is provided.
|
|
127
|
+
* Throws <code>UnsupportedOperationException</code> if an invalid value or metadata property type is specified.
|
|
128
|
+
* Throws <code>ConstraintViolationException</code> <em>(i.e. a <code>RepositoryException</code>)</em> if current user
|
|
129
|
+
* doesn't have permission to write metadata on the node.
|
|
130
|
+
* </p>
|
|
131
|
+
* @param aNode the <code>Node</code> where the metadata value should be altered. May not be <code>null</code>
|
|
132
|
+
* @param aPropertyName the name of the metadata property that should be altered. May not be <code>null</code>
|
|
133
|
+
* @param aValue the new value. May not be <code>null</code>
|
|
134
|
+
* @throws LockException is thrown if the specified node is locked for editing (i.e. someone else is currently editing the same node)
|
|
135
|
+
* @throws RepositoryException if anything goes wrong
|
|
136
|
+
* @see #setMetadataPropertyValue(javax.jcr.Node, javax.jcr.Property, Object)
|
|
137
|
+
*/
|
|
138
|
+
export function setMetadataPropertyValue(
|
|
139
|
+
aNode: Node,
|
|
140
|
+
aPropertyName: string,
|
|
141
|
+
aValue: unknown
|
|
142
|
+
): void;
|
|
19
143
|
|
|
20
144
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
|
|
26
|
-
|
|
145
|
+
* <p>Removes a metadata <code>Property</code> value on a <code>Node</code>. The node must
|
|
146
|
+
* be of such a type where it is possible to define a metadata value (e.g. page, article, template,
|
|
147
|
+
* file, image) or an <code>IllegalArgumentException</code> will be thrown.</p>
|
|
148
|
+
*
|
|
149
|
+
* <p>
|
|
150
|
+
* For comprehensive information, see alternate method
|
|
151
|
+
* {@link #removeMetadataPropertyValue(javax.jcr.Node, String) removeMetadataPropertyValue(Node, String)}
|
|
152
|
+
* </p>.
|
|
153
|
+
*
|
|
154
|
+
* <p><strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}.
|
|
155
|
+
* Hence, if you remove a metadata value, <code>aNode</code> must be published (see {@link senselogic.sitevision.api.versioning.PublishingUtil})
|
|
156
|
+
* to have any effect in the {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}</p>
|
|
157
|
+
* @param aNode the <code>Node</code> where the metadata value should be removed. May not be <code>null</code>
|
|
158
|
+
* @param aProperty the <code>Property</code> that should be removed. May not be <code>null</code>
|
|
159
|
+
* @throws RepositoryException if anything goes wrong
|
|
160
|
+
* @see #removeMetadataPropertyValue(javax.jcr.Node, String)
|
|
161
|
+
*/
|
|
162
|
+
export function removeMetadataPropertyValue(
|
|
163
|
+
aNode: Node,
|
|
164
|
+
aProperty: Property
|
|
165
|
+
): void;
|
|
27
166
|
|
|
28
167
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
|
|
32
|
-
|
|
168
|
+
* <p>Removes a metadata <code>Property</code> value on a <code>Node</code>. The node must
|
|
169
|
+
* be of such a type where it is possible to define a metadata value (e.g. page, article, template,
|
|
170
|
+
* file, image) or an <code>IllegalArgumentException</code> will be thrown.</p>
|
|
171
|
+
*
|
|
172
|
+
* <p>Due to the hierarchical nature of the metadata and the inheritance mechanism, a removal of a value
|
|
173
|
+
* does not necessarily mean that the value is removed (it may then be inherited from a parent node)</p>
|
|
174
|
+
*
|
|
175
|
+
* <p>Note that the result of removal of a text metadata on the node where the metadata definition is defined
|
|
176
|
+
* is not the <code>null</code> value but an empty <code>String</code>. This means that the JCR property will be available after
|
|
177
|
+
* the removal and contain "" as value.</p>
|
|
178
|
+
*
|
|
179
|
+
* <p><strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}.
|
|
180
|
+
* Hence, if you remove a metadata value, <code>aNode</code> must be published (see {@link senselogic.sitevision.api.versioning.PublishingUtil})
|
|
181
|
+
* to have any effect in the {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}</p>
|
|
182
|
+
*
|
|
183
|
+
* <p>Throws <code>NullPointerException</code> or <code>IllegalArgumentException</code> if illegal arguments
|
|
184
|
+
* are used. Throws <code>ConstraintViolationException</code> <em>(i.e. a <code>RepositoryException</code>)</em>
|
|
185
|
+
* if current user doesn't have permission to write metadata on the node.</p>
|
|
186
|
+
* @param aNode the <code>Node</code> where the metadata value should be removed. May not be <code>null</code>
|
|
187
|
+
* @param aPropertyName the name of the metadata property that should be removed. May not be <code>null</code>
|
|
188
|
+
* @throws RepositoryException if anything goes wrong
|
|
189
|
+
* @see #removeMetadataPropertyValue(javax.jcr.Node, javax.jcr.Property)
|
|
190
|
+
*/
|
|
191
|
+
export function removeMetadataPropertyValue(
|
|
192
|
+
aNode: Node,
|
|
193
|
+
aPropertyName: string
|
|
194
|
+
): void;
|
|
33
195
|
|
|
34
196
|
/**
|
|
35
|
-
* Returns a boolean indicating that the metadata value on the Node is
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
|
|
40
|
-
|
|
197
|
+
* <p>Returns a <code>boolean</code> indicating that the metadata value on the <code>Node</code> is
|
|
198
|
+
* inherited from a parent node.</p>
|
|
199
|
+
*
|
|
200
|
+
* <p>Note that this method returns <code>true</code> when the metadata definition is defined on the
|
|
201
|
+
* <code>Node</code> and the value is <code>null</code></p>
|
|
202
|
+
*
|
|
203
|
+
* <p><strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}</p>
|
|
204
|
+
* @param aNode the <code>Node</code> that contains the metadata value. May not be <code>null</code>
|
|
205
|
+
* @param aProperty the metadata <code>Property</code> that should be queried. May not be <code>null</code>
|
|
206
|
+
* @return a <code>boolean</code> indicating the inheritance
|
|
207
|
+
* @throws RepositoryException if anything goes wrong
|
|
208
|
+
* @see #isMetadataValueInherited(javax.jcr.Node, javax.jcr.Property, int)
|
|
209
|
+
*/
|
|
210
|
+
export function isMetadataValueInherited(
|
|
211
|
+
aNode: Node,
|
|
212
|
+
aProperty: Property
|
|
213
|
+
): boolean;
|
|
41
214
|
|
|
42
215
|
/**
|
|
43
|
-
* Returns a boolean indicating that the metadata value in a specified version on the Node is
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
|
|
49
|
-
|
|
216
|
+
* <p>Returns a <code>boolean</code> indicating that the metadata value in a specified version on the <code>Node</code> is
|
|
217
|
+
* inherited from a parent node.</p>
|
|
218
|
+
*
|
|
219
|
+
* <p>Note that this method returns <code>true</code> when the metadata definition is defined on the
|
|
220
|
+
* <code>Node</code> and the value is <code>null</code></p>
|
|
221
|
+
* @param aNode the <code>Node</code> that contains the metadata value. May not be <code>null</code>
|
|
222
|
+
* @param aProperty the metadata <code>Property</code> that should be queried. May not be <code>null</code>
|
|
223
|
+
* @param aVersion {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION} or {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}
|
|
224
|
+
* @return a <code>boolean</code> indicating the inheritance
|
|
225
|
+
* @throws RepositoryException if anything goes wrong
|
|
226
|
+
* @since Sitevision 2.6.1_04
|
|
227
|
+
*/
|
|
228
|
+
export function isMetadataValueInherited(
|
|
229
|
+
aNode: Node,
|
|
230
|
+
aProperty: Property,
|
|
231
|
+
aVersion: number
|
|
232
|
+
): boolean;
|
|
50
233
|
|
|
51
234
|
/**
|
|
52
|
-
* Returns a boolean indicating that the metadata value on the Node is
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
|
|
57
|
-
|
|
235
|
+
* <p>Returns a <code>boolean</code> indicating that the metadata value on the <code>Node</code> is
|
|
236
|
+
* inherited from a parent node.</p>
|
|
237
|
+
*
|
|
238
|
+
* <p>Note that this method returns <code>true</code> when the metadata definition is defined on the
|
|
239
|
+
* <code>Node</code> and the value is <code>null</code></p>
|
|
240
|
+
*
|
|
241
|
+
* <p><strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}</p>
|
|
242
|
+
* @param aNode the <code>Node</code> that contains the metadata value. May not be <code>null</code>
|
|
243
|
+
* @param aPropertyName the name of the metadata property that should be queried. May not be <code>null</code>
|
|
244
|
+
* @return a <code>boolean</code> indicating the inheritance
|
|
245
|
+
* @throws RepositoryException if anything goes wrong
|
|
246
|
+
* @see #isMetadataValueInherited(javax.jcr.Node, String, int)
|
|
247
|
+
*/
|
|
248
|
+
export function isMetadataValueInherited(
|
|
249
|
+
aNode: Node,
|
|
250
|
+
aPropertyName: string
|
|
251
|
+
): boolean;
|
|
58
252
|
|
|
59
253
|
/**
|
|
60
|
-
* Returns a boolean indicating that the metadata value in a specified version on the Node is
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
|
|
66
|
-
|
|
254
|
+
* <p>Returns a <code>boolean</code> indicating that the metadata value in a specified version on the <code>Node</code> is
|
|
255
|
+
* inherited from a parent node.</p>
|
|
256
|
+
*
|
|
257
|
+
* <p>Note that this method returns <code>true</code> when the metadata definition is defined on the
|
|
258
|
+
* <code>Node</code> and the value is <code>null</code></p>
|
|
259
|
+
* @param aNode the <code>Node</code> that contains the metadata value. May not be <code>null</code>
|
|
260
|
+
* @param aPropertyName the name of the metadata property that should be queried. May not be <code>null</code>
|
|
261
|
+
* @param aVersion {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION} or {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}
|
|
262
|
+
* @return a <code>boolean</code> indicating the inheritance
|
|
263
|
+
* @throws RepositoryException if anything goes wrong
|
|
264
|
+
* @since Sitevision 2.6.1_04
|
|
265
|
+
*/
|
|
266
|
+
export function isMetadataValueInherited(
|
|
267
|
+
aNode: Node,
|
|
268
|
+
aPropertyName: string,
|
|
269
|
+
aVersion: number
|
|
270
|
+
): boolean;
|
|
67
271
|
|
|
68
272
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
|
|
73
|
-
|
|
273
|
+
* <p>
|
|
274
|
+
* Returns a <code>List</code> containing all related metadata values for a specified <code>Node</code>.
|
|
275
|
+
* </p>
|
|
276
|
+
*
|
|
277
|
+
* <p>
|
|
278
|
+
* <strong>Important note!</strong> The returned List is not type safe and my contain either a <code>Node</code>
|
|
279
|
+
* and/or a <code>String</code> depending on its findings.
|
|
280
|
+
* </p>
|
|
281
|
+
* @param aNode the <code>Node</code> that contains the metadata value. May not be <code>null</code>
|
|
282
|
+
* @param aPropertyName the name of the metadata property that should be queried. May not be <code>null</code>
|
|
283
|
+
* @return a <code>List</code> containing all related metadata values, or an <code>empty List</code> if no could be found.
|
|
284
|
+
* @throws NullPointerException if <code>aNode</code> or <code>aPropertyName</code> is <code>null</code>.
|
|
285
|
+
* @throws IllegalArgumentException if <code>aNode</code> is of wrong type (a node that doesn't have metadata).
|
|
286
|
+
* @throws RepositoryException if anything goes wrong while accessing <code>aNode</code> or extracting the result
|
|
287
|
+
* @since Sitevision 2.6.2_03
|
|
288
|
+
*/
|
|
289
|
+
export function getRelatedMetadataPropertyValues(
|
|
290
|
+
aNode: Node,
|
|
291
|
+
aPropertyName: string
|
|
292
|
+
): unknown[];
|
|
74
293
|
|
|
75
294
|
/**
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
|
|
80
|
-
|
|
295
|
+
* <p>Returns a <code>Node</code> for a link metadata on a specified <code>Node</code>.</p>
|
|
296
|
+
*
|
|
297
|
+
* <p><strong>Important note!</strong> The nodes returned by this method are temporary objects and are not part of the
|
|
298
|
+
* Sitevision model. This means that methods like {@link javax.jcr.Node#getPath()}, {@link javax.jcr.Node#getParent()} and
|
|
299
|
+
* {@link javax.jcr.Node#getName()} etc. will not return any information.</p>
|
|
300
|
+
* @param aNode the <code>Node</code> that contains the link metadata value. May not be <code>null</code>
|
|
301
|
+
* @param aPropertyName the name of the link metadata property that should be queried. May not be <code>null</code>
|
|
302
|
+
* @return a temporary <code>Node</code> representing the link metadata value, or <code>null</code> if no link could be found.
|
|
303
|
+
* @throws NullPointerException if <code>aNode</code> or <code>aPropertyName</code> is <code>null</code>.
|
|
304
|
+
* @throws IllegalArgumentException if <code>aNode</code> is of wrong type (a node that doesn't have metadata).
|
|
305
|
+
* @throws RepositoryException if anything goes wrong while accessing <code>aNode</code> or extracting the result
|
|
306
|
+
* @since Sitevision 3.1
|
|
307
|
+
*/
|
|
308
|
+
export function getLinkMetadataPropertyValue(
|
|
309
|
+
aNode: Node,
|
|
310
|
+
aPropertyName: string
|
|
311
|
+
): Node;
|
|
81
312
|
|
|
82
313
|
/**
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
|
|
88
|
-
|
|
314
|
+
* <p>
|
|
315
|
+
* Returns a link value builder that can be used to build <code>LinkValue</code> instances.
|
|
316
|
+
* </p>
|
|
317
|
+
*
|
|
318
|
+
* <p>
|
|
319
|
+
* <strong>Tip!</strong> A <code>LinkValue</code> can be used to set a <em>link metadata</em>
|
|
320
|
+
* via {@link #setMetadataPropertyValue(javax.jcr.Node, String, Object)}
|
|
321
|
+
* or {@link #setMetadataPropertyValue(javax.jcr.Node, javax.jcr.Property, Object)}.
|
|
322
|
+
* </p>
|
|
323
|
+
* @return a link value builder.
|
|
324
|
+
* @since Sitevision 3.6
|
|
325
|
+
*/
|
|
326
|
+
export function getLinkValueBuilder(): LinkValueBuilder;
|
|
89
327
|
|
|
90
328
|
/**
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
|
|
96
|
-
|
|
329
|
+
* <p>
|
|
330
|
+
* Returns a related value builder that can be used to build <code>RelatedValue</code> instances.
|
|
331
|
+
* </p>
|
|
332
|
+
*
|
|
333
|
+
* <p>
|
|
334
|
+
* <strong>Tip!</strong> A <code>RelatedValue</code> can be used to set a <em>related metadata</em>
|
|
335
|
+
* via {@link #setMetadataPropertyValue(javax.jcr.Node, String, Object)}
|
|
336
|
+
* or {@link #setMetadataPropertyValue(javax.jcr.Node, javax.jcr.Property, Object)}.
|
|
337
|
+
* </p>
|
|
338
|
+
* @return a related value builder.
|
|
339
|
+
* @since Sitevision 3.6
|
|
340
|
+
*/
|
|
341
|
+
export function getRelatedValueBuilder(): RelatedValueBuilder;
|
|
97
342
|
|
|
98
|
-
|
|
343
|
+
/**
|
|
344
|
+
* <p>
|
|
345
|
+
* Utility used to handle metadata. Due to the nature of the Sitevision metadata it is not suited to alter the values using JCR
|
|
346
|
+
* (i.e. due to inheritance). This utility adds the functionality needed to access and alter metadata.
|
|
347
|
+
* </p>
|
|
348
|
+
*
|
|
349
|
+
* <p>
|
|
350
|
+
* Note that any metadata value is available as property on a JCR-node.
|
|
351
|
+
* </p>
|
|
352
|
+
*
|
|
353
|
+
* <p>
|
|
354
|
+
* An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getMetadataUtil()}.
|
|
355
|
+
* See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
|
|
356
|
+
* </p><p>
|
|
357
|
+
* Set a new value to a metadata <code>Property</code> on a <code>Node</code>. The node must
|
|
358
|
+
* be of such a type where it is possible to define a metadata value (e.g. page, article, template, file, image)
|
|
359
|
+
* or an <code>IllegalArgumentException</code> will be thrown.
|
|
360
|
+
* </p>
|
|
361
|
+
* <p>
|
|
362
|
+
* <strong>For comprehensive information about supported metadata</strong> see alternate method
|
|
363
|
+
* {@link #setMetadataPropertyValue(javax.jcr.Node, String, Object)}.
|
|
364
|
+
* </p>
|
|
365
|
+
*
|
|
366
|
+
* <p>
|
|
367
|
+
* <strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}.
|
|
368
|
+
* Hence, if you set a metadata value, <code>aNode</code> must be published (see {@link senselogic.sitevision.api.versioning.PublishingUtil})
|
|
369
|
+
* to have any effect in the {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}
|
|
370
|
+
* </p><p>
|
|
371
|
+
* Set a new value to a metadata <code>Property</code> on a <code>Node</code>. The node must
|
|
372
|
+
* be of such a type where it is possible to define a metadata value (e.g. page, article, template, file, image)
|
|
373
|
+
* or an <code>IllegalArgumentException</code> will be thrown.
|
|
374
|
+
* </p>
|
|
375
|
+
*
|
|
376
|
+
* <p>This method currently supports alternation of the following metadata types:</p>
|
|
377
|
+
* <ul>
|
|
378
|
+
* <li>
|
|
379
|
+
* <strong>text</strong><br>
|
|
380
|
+
* The value will be handled as string (i.e. toString).
|
|
381
|
+
* </li>
|
|
382
|
+
* <li>
|
|
383
|
+
* <strong>single alternative</strong><br>
|
|
384
|
+
* The value must be a valid alternative, or the metadata definition
|
|
385
|
+
* must support 'other' values. If not, an <code>UnsupportedOperationException</code> is
|
|
386
|
+
* thrown. The value is handled as a string (i.e. toString).
|
|
387
|
+
* </li>
|
|
388
|
+
* <li>
|
|
389
|
+
* <strong>multiple alternative</strong><br>
|
|
390
|
+
* The value must be a valid alternative, or the metadata definition
|
|
391
|
+
* must support 'other' values. Any invalid value will be ignored. If no valid alternatives
|
|
392
|
+
* are provided an <code>UnsupportedOperationException</code> is thrown. The value is
|
|
393
|
+
* a comma separated string of the alternatives. It is also possible to provide a collection
|
|
394
|
+
* or an array of strings corresponding to the alternatives.
|
|
395
|
+
* </li>
|
|
396
|
+
* <li>
|
|
397
|
+
* <strong>date</strong><br>
|
|
398
|
+
* The value must be a <code>Date</code>, <code>Calendar</code>, <code>Long</code>,
|
|
399
|
+
* <code>Integer</code> or <code>Double</code>. If no valid value is provided an
|
|
400
|
+
* <code>UnsupportedOperationException</code> is thrown.
|
|
401
|
+
* </li>
|
|
402
|
+
* <li>
|
|
403
|
+
* <strong>user</strong><br>
|
|
404
|
+
* The value must be a <code>Node</code> (of type sv:user or sv:simpleUser) or an id <code>String</code> to a JCR-node
|
|
405
|
+
* corresponding to the designated user. If no valid value is provided an
|
|
406
|
+
* <code>UnsupportedOperationException</code> is thrown.
|
|
407
|
+
* </li>
|
|
408
|
+
* <li>
|
|
409
|
+
* <strong>directory object</strong><br>
|
|
410
|
+
* The value must be a <code>Node</code> (of type sv:user, sv:userGroup or sv:userContainer) or an id <code>String</code> to a JCR-node
|
|
411
|
+
* corresponding to the designated directory object. It is also possible to provide a collection, an
|
|
412
|
+
* array of such objects or a comma separated list of ids. If no valid value is provided an
|
|
413
|
+
* <code>UnsupportedOperationException</code> is thrown.
|
|
414
|
+
* </li>
|
|
415
|
+
* <li>
|
|
416
|
+
* <strong>link</strong><br>
|
|
417
|
+
* The value must be a {@link senselogic.sitevision.api.metadata.value.LinkValue} <em>(since Sitevision 3.6)</em>,
|
|
418
|
+
* a <code>Node</code> or an id <code>String</code> to a JCR-node that can be used as link (e.g. page, article, image, file).
|
|
419
|
+
* If no valid value is provided an <code>UnsupportedOperationException</code> is thrown.
|
|
420
|
+
* </li>
|
|
421
|
+
* <li>
|
|
422
|
+
* <strong>link to portlet</strong> <em>(since Sitevision 2.6.2)</em><br>
|
|
423
|
+
* The value will be handled as string (i.e. toString).
|
|
424
|
+
* </li>
|
|
425
|
+
* <li>
|
|
426
|
+
* <strong>number</strong> <em>(since Sitevision 2.6.2)</em><br>
|
|
427
|
+
* The value must be a <code>Number</code> (e.g. <code>Integer</code>, <code>Long</code>, <code>Double</code> etc.)
|
|
428
|
+
* or the toString() method of the value must be parseable as an int <em>(i.e. Integer.parseInt(aValue.toString())
|
|
429
|
+
* must not throw a NumberFormatException)</em>.
|
|
430
|
+
* If no valid value is provided an <code>UnsupportedOperationException</code> is thrown.
|
|
431
|
+
* </li>
|
|
432
|
+
* <li>
|
|
433
|
+
* <strong>related</strong> <em>(since Sitevision 3.6)</em><br>
|
|
434
|
+
* The value must be a {@link senselogic.sitevision.api.metadata.value.RelatedValue}.
|
|
435
|
+
* If no valid value is provided an <code>UnsupportedOperationException</code> is thrown.
|
|
436
|
+
* </li>
|
|
437
|
+
* <li>
|
|
438
|
+
* <strong>single tag</strong> <em>(since Sitevision 7.2)</em><br>
|
|
439
|
+
* The value must be a valid tag, or the metadata definition
|
|
440
|
+
* must allow custom tags. If not, an <code>UnsupportedOperationException</code> is
|
|
441
|
+
* thrown. The value must be of type <code>sv:tag</code> or a tag name as a <code>String</code>.
|
|
442
|
+
* </li>
|
|
443
|
+
* <li>
|
|
444
|
+
* <strong>multiple tags</strong> <em>(since Sitevision 7.2)</em><br>
|
|
445
|
+
* The value must be a valid tag, or the metadata definition
|
|
446
|
+
* must allow custom tags. Any invalid tags will be ignored. If no valid tags
|
|
447
|
+
* are provided an <code>UnsupportedOperationException</code> is thrown. The value is
|
|
448
|
+
* a comma separated string of the tag names. Note that tag names provided as a comma separated string must be prefixed with #.
|
|
449
|
+
* It is also possible to provide a collection or an array of <code>sv:tag</code> or strings of tag names.
|
|
450
|
+
* </li>
|
|
451
|
+
* </ul>
|
|
452
|
+
*
|
|
453
|
+
* <p>
|
|
454
|
+
* <strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}.
|
|
455
|
+
* Hence, if you set a metadata value, <code>aNode</code> must be published (see {@link senselogic.sitevision.api.versioning.PublishingUtil})
|
|
456
|
+
* to have any effect in the {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}
|
|
457
|
+
* </p>
|
|
458
|
+
*
|
|
459
|
+
* <p>
|
|
460
|
+
* Throws <code>NullPointerException</code> or <code>IllegalArgumentException</code> if an illegal argument is provided.
|
|
461
|
+
* Throws <code>UnsupportedOperationException</code> if an invalid value or metadata property type is specified.
|
|
462
|
+
* Throws <code>ConstraintViolationException</code> <em>(i.e. a <code>RepositoryException</code>)</em> if current user
|
|
463
|
+
* doesn't have permission to write metadata on the node.
|
|
464
|
+
* </p><p>Removes a metadata <code>Property</code> value on a <code>Node</code>. The node must
|
|
465
|
+
* be of such a type where it is possible to define a metadata value (e.g. page, article, template,
|
|
466
|
+
* file, image) or an <code>IllegalArgumentException</code> will be thrown.</p>
|
|
467
|
+
*
|
|
468
|
+
* <p>
|
|
469
|
+
* For comprehensive information, see alternate method
|
|
470
|
+
* {@link #removeMetadataPropertyValue(javax.jcr.Node, String) removeMetadataPropertyValue(Node, String)}
|
|
471
|
+
* </p>.
|
|
472
|
+
*
|
|
473
|
+
* <p><strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}.
|
|
474
|
+
* Hence, if you remove a metadata value, <code>aNode</code> must be published (see {@link senselogic.sitevision.api.versioning.PublishingUtil})
|
|
475
|
+
* to have any effect in the {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}</p><p>Removes a metadata <code>Property</code> value on a <code>Node</code>. The node must
|
|
476
|
+
* be of such a type where it is possible to define a metadata value (e.g. page, article, template,
|
|
477
|
+
* file, image) or an <code>IllegalArgumentException</code> will be thrown.</p>
|
|
478
|
+
*
|
|
479
|
+
* <p>Due to the hierarchical nature of the metadata and the inheritance mechanism, a removal of a value
|
|
480
|
+
* does not necessarily mean that the value is removed (it may then be inherited from a parent node)</p>
|
|
481
|
+
*
|
|
482
|
+
* <p>Note that the result of removal of a text metadata on the node where the metadata definition is defined
|
|
483
|
+
* is not the <code>null</code> value but an empty <code>String</code>. This means that the JCR property will be available after
|
|
484
|
+
* the removal and contain "" as value.</p>
|
|
485
|
+
*
|
|
486
|
+
* <p><strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}.
|
|
487
|
+
* Hence, if you remove a metadata value, <code>aNode</code> must be published (see {@link senselogic.sitevision.api.versioning.PublishingUtil})
|
|
488
|
+
* to have any effect in the {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION}</p>
|
|
489
|
+
*
|
|
490
|
+
* <p>Throws <code>NullPointerException</code> or <code>IllegalArgumentException</code> if illegal arguments
|
|
491
|
+
* are used. Throws <code>ConstraintViolationException</code> <em>(i.e. a <code>RepositoryException</code>)</em>
|
|
492
|
+
* if current user doesn't have permission to write metadata on the node.</p><p>Returns a <code>boolean</code> indicating that the metadata value on the <code>Node</code> is
|
|
493
|
+
* inherited from a parent node.</p>
|
|
494
|
+
*
|
|
495
|
+
* <p>Note that this method returns <code>true</code> when the metadata definition is defined on the
|
|
496
|
+
* <code>Node</code> and the value is <code>null</code></p>
|
|
497
|
+
*
|
|
498
|
+
* <p><strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}</p><p>Returns a <code>boolean</code> indicating that the metadata value in a specified version on the <code>Node</code> is
|
|
499
|
+
* inherited from a parent node.</p>
|
|
500
|
+
*
|
|
501
|
+
* <p>Note that this method returns <code>true</code> when the metadata definition is defined on the
|
|
502
|
+
* <code>Node</code> and the value is <code>null</code></p><p>Returns a <code>boolean</code> indicating that the metadata value on the <code>Node</code> is
|
|
503
|
+
* inherited from a parent node.</p>
|
|
504
|
+
*
|
|
505
|
+
* <p>Note that this method returns <code>true</code> when the metadata definition is defined on the
|
|
506
|
+
* <code>Node</code> and the value is <code>null</code></p>
|
|
507
|
+
*
|
|
508
|
+
* <p><strong>Important note!</strong> This method operates in the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION}</p><p>Returns a <code>boolean</code> indicating that the metadata value in a specified version on the <code>Node</code> is
|
|
509
|
+
* inherited from a parent node.</p>
|
|
510
|
+
*
|
|
511
|
+
* <p>Note that this method returns <code>true</code> when the metadata definition is defined on the
|
|
512
|
+
* <code>Node</code> and the value is <code>null</code></p><p>
|
|
513
|
+
* Returns a <code>List</code> containing all related metadata values for a specified <code>Node</code>.
|
|
514
|
+
* </p>
|
|
515
|
+
*
|
|
516
|
+
* <p>
|
|
517
|
+
* <strong>Important note!</strong> The returned List is not type safe and my contain either a <code>Node</code>
|
|
518
|
+
* and/or a <code>String</code> depending on its findings.
|
|
519
|
+
* </p><p>Returns a <code>Node</code> for a link metadata on a specified <code>Node</code>.</p>
|
|
520
|
+
*
|
|
521
|
+
* <p><strong>Important note!</strong> The nodes returned by this method are temporary objects and are not part of the
|
|
522
|
+
* Sitevision model. This means that methods like {@link javax.jcr.Node#getPath()}, {@link javax.jcr.Node#getParent()} and
|
|
523
|
+
* {@link javax.jcr.Node#getName()} etc. will not return any information.</p><p>
|
|
524
|
+
* Returns a link value builder that can be used to build <code>LinkValue</code> instances.
|
|
525
|
+
* </p>
|
|
526
|
+
*
|
|
527
|
+
* <p>
|
|
528
|
+
* <strong>Tip!</strong> A <code>LinkValue</code> can be used to set a <em>link metadata</em>
|
|
529
|
+
* via {@link #setMetadataPropertyValue(javax.jcr.Node, String, Object)}
|
|
530
|
+
* or {@link #setMetadataPropertyValue(javax.jcr.Node, javax.jcr.Property, Object)}.
|
|
531
|
+
* </p><p>
|
|
532
|
+
* Returns a related value builder that can be used to build <code>RelatedValue</code> instances.
|
|
533
|
+
* </p>
|
|
534
|
+
*
|
|
535
|
+
* <p>
|
|
536
|
+
* <strong>Tip!</strong> A <code>RelatedValue</code> can be used to set a <em>related metadata</em>
|
|
537
|
+
* via {@link #setMetadataPropertyValue(javax.jcr.Node, String, Object)}
|
|
538
|
+
* or {@link #setMetadataPropertyValue(javax.jcr.Node, javax.jcr.Property, Object)}.
|
|
539
|
+
* </p>
|
|
540
|
+
* @author Mikael Wikblom
|
|
541
|
+
* @since Sitevision 2.6.1
|
|
542
|
+
*/
|
|
543
|
+
declare namespace MetadataUtil {
|
|
99
544
|
export {
|
|
545
|
+
setMetadataPropertyValue,
|
|
546
|
+
removeMetadataPropertyValue,
|
|
547
|
+
isMetadataValueInherited,
|
|
548
|
+
getRelatedMetadataPropertyValues,
|
|
100
549
|
getLinkMetadataPropertyValue,
|
|
101
550
|
getLinkValueBuilder,
|
|
102
|
-
getRelatedMetadataPropertyValues,
|
|
103
551
|
getRelatedValueBuilder,
|
|
104
|
-
|
|
105
|
-
removeMetadataPropertyValue,
|
|
106
|
-
setMetadataPropertyValue,
|
|
107
|
-
}
|
|
552
|
+
};
|
|
108
553
|
}
|
|
109
554
|
|
|
110
|
-
export default
|
|
555
|
+
export default MetadataUtil;
|