@sitevision/api 1.0.19 → 1.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/router/index.d.ts +1 -1
- package/hidden/javax/jcr/Binary/index.d.ts +86 -0
- package/hidden/javax/jcr/Credentials/index.d.ts +11 -0
- package/hidden/javax/jcr/ImportUUIDBehavior/index.d.ts +11 -0
- package/hidden/javax/jcr/Item/index.d.ts +353 -0
- package/hidden/javax/jcr/ItemVisitor/index.d.ts +41 -0
- package/hidden/javax/jcr/NamespaceRegistry/index.d.ts +100 -0
- package/hidden/javax/jcr/Node/index.d.ts +2808 -0
- package/hidden/javax/jcr/NodeIterator/index.d.ts +18 -0
- package/hidden/javax/jcr/Property/index.d.ts +801 -0
- package/hidden/javax/jcr/PropertyIterator/index.d.ts +17 -0
- package/hidden/javax/jcr/RangeIterator/index.d.ts +75 -0
- package/hidden/javax/jcr/Repository/index.d.ts +318 -0
- package/hidden/javax/jcr/RepositoryFactory/index.d.ts +90 -0
- package/hidden/javax/jcr/Value/index.d.ts +190 -0
- package/hidden/javax/jcr/ValueFactory/index.d.ts +179 -0
- package/hidden/javax/jcr/Workspace/index.d.ts +1061 -0
- package/hidden/javax/jcr/lock/Lock/index.d.ts +142 -0
- package/hidden/javax/jcr/lock/LockManager/index.d.ts +217 -0
- package/hidden/javax/jcr/nodetype/ItemDefinition/index.d.ts +219 -0
- package/hidden/javax/jcr/nodetype/NodeDefinition/index.d.ts +158 -0
- package/hidden/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +74 -0
- package/hidden/javax/jcr/nodetype/NodeType/index.d.ts +349 -0
- package/hidden/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +248 -0
- package/hidden/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +16 -0
- package/hidden/javax/jcr/nodetype/NodeTypeManager/index.d.ts +218 -0
- package/hidden/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +98 -0
- package/hidden/javax/jcr/nodetype/PropertyDefinition/index.d.ts +536 -0
- package/hidden/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +97 -0
- package/hidden/javax/jcr/observation/Event/index.d.ts +133 -0
- package/hidden/javax/jcr/observation/EventIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/observation/EventJournal/index.d.ts +22 -0
- package/hidden/javax/jcr/observation/EventListener/index.d.ts +23 -0
- package/hidden/javax/jcr/observation/EventListenerIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/observation/ObservationManager/index.d.ts +227 -0
- package/hidden/javax/jcr/query/Query/index.d.ts +201 -0
- package/hidden/javax/jcr/query/QueryManager/index.d.ts +73 -0
- package/hidden/javax/jcr/query/QueryResult/index.d.ts +51 -0
- package/hidden/javax/jcr/query/Row/index.d.ts +159 -0
- package/hidden/javax/jcr/query/RowIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/query/qom/And/index.d.ts +26 -0
- package/hidden/javax/jcr/query/qom/BindVariableValue/index.d.ts +15 -0
- package/hidden/javax/jcr/query/qom/ChildNode/index.d.ts +27 -0
- package/hidden/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +27 -0
- package/hidden/javax/jcr/query/qom/Column/index.d.ts +39 -0
- package/hidden/javax/jcr/query/qom/Comparison/index.d.ts +82 -0
- package/hidden/javax/jcr/query/qom/Constraint/index.d.ts +13 -0
- package/hidden/javax/jcr/query/qom/DescendantNode/index.d.ts +31 -0
- package/hidden/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +29 -0
- package/hidden/javax/jcr/query/qom/DynamicOperand/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +41 -0
- package/hidden/javax/jcr/query/qom/FullTextSearch/index.d.ts +89 -0
- package/hidden/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +24 -0
- package/hidden/javax/jcr/query/qom/Join/index.d.ts +36 -0
- package/hidden/javax/jcr/query/qom/JoinCondition/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/Length/index.d.ts +24 -0
- package/hidden/javax/jcr/query/qom/Literal/index.d.ts +18 -0
- package/hidden/javax/jcr/query/qom/LowerCase/index.d.ts +26 -0
- package/hidden/javax/jcr/query/qom/NodeLocalName/index.d.ts +16 -0
- package/hidden/javax/jcr/query/qom/NodeName/index.d.ts +16 -0
- package/hidden/javax/jcr/query/qom/Not/index.d.ts +20 -0
- package/hidden/javax/jcr/query/qom/Operand/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/Or/index.d.ts +30 -0
- package/hidden/javax/jcr/query/qom/Ordering/index.d.ts +53 -0
- package/hidden/javax/jcr/query/qom/PropertyExistence/index.d.ts +24 -0
- package/hidden/javax/jcr/query/qom/PropertyValue/index.d.ts +25 -0
- package/hidden/javax/jcr/query/qom/QueryObjectModel/index.d.ts +64 -0
- package/hidden/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +638 -0
- package/hidden/javax/jcr/query/qom/SameNode/index.d.ts +27 -0
- package/hidden/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +36 -0
- package/hidden/javax/jcr/query/qom/Selector/index.d.ts +35 -0
- package/hidden/javax/jcr/query/qom/Source/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/StaticOperand/index.d.ts +10 -0
- package/hidden/javax/jcr/query/qom/UpperCase/index.d.ts +26 -0
- package/hidden/javax/jcr/retention/Hold/index.d.ts +34 -0
- package/hidden/javax/jcr/retention/RetentionManager/index.d.ts +189 -0
- package/hidden/javax/jcr/retention/RetentionPolicy/index.d.ts +21 -0
- package/hidden/javax/jcr/security/AccessControlEntry/index.d.ts +24 -0
- package/hidden/javax/jcr/security/AccessControlList/index.d.ts +91 -0
- package/hidden/javax/jcr/security/AccessControlManager/index.d.ts +297 -0
- package/hidden/javax/jcr/security/AccessControlPolicy/index.d.ts +11 -0
- package/hidden/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +22 -0
- package/hidden/javax/jcr/security/Privilege/index.d.ts +117 -0
- package/hidden/javax/jcr/version/Version/index.d.ts +121 -0
- package/hidden/javax/jcr/version/VersionHistory/index.d.ts +307 -0
- package/hidden/javax/jcr/version/VersionIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/version/VersionManager/index.d.ts +1082 -0
- package/hidden/senselogic/sitevision/api/base/Builder/index.d.ts +102 -0
- package/hidden/senselogic/sitevision/api/base/Filter/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/base/FilterSplit/index.d.ts +50 -0
- package/hidden/senselogic/sitevision/api/base/Loadable/index.d.ts +15 -0
- package/hidden/senselogic/sitevision/api/base/Resolver/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/base/Wrapper/index.d.ts +24 -0
- package/hidden/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +417 -0
- package/hidden/senselogic/sitevision/api/format/NumericFormatter/index.d.ts +80 -0
- package/hidden/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +100 -0
- package/hidden/senselogic/sitevision/api/i18n/Currency/index.d.ts +120 -0
- package/hidden/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +45 -0
- package/hidden/senselogic/sitevision/api/link/CustomLinkRenderData/index.d.ts +65 -0
- package/hidden/senselogic/sitevision/api/mail/Mail/index.d.ts +32 -0
- package/hidden/senselogic/sitevision/api/message/MessageTextLinker/index.d.ts +15 -0
- package/hidden/senselogic/sitevision/api/metadata/value/LinkValue/index.d.ts +23 -0
- package/hidden/senselogic/sitevision/api/metadata/value/RelatedValue/index.d.ts +23 -0
- package/hidden/senselogic/sitevision/api/property/VersionedPropertyUtil/index.d.ts +642 -0
- package/hidden/senselogic/sitevision/api/render/BuddyIconRenderer/BuddyIconInfo/index.d.ts +51 -0
- package/hidden/senselogic/sitevision/api/render/ImageScaler/index.d.ts +58 -0
- package/hidden/senselogic/sitevision/api/render/TextModuleRenderer/index.d.ts +301 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ArticleUtilConstants/index.d.ts +85 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ExceptionSuppressingProxyConstants/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/IndexingUtilConstants/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/LinkPageUtilConstants/index.d.ts +67 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MathInstanceConstants/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MimeTypeUtilConstants/index.d.ts +19 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/NodeTypeUtilConstants/index.d.ts +1243 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/OutputUtilConstants/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PageUtilConstants/index.d.ts +91 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletContextUtilConstants/index.d.ts +27 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletUtilConstants/index.d.ts +19 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/QueryStringUtilConstants/index.d.ts +19 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchHitConstants/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchResultConstants/index.d.ts +37 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/VersionUtilConstants/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/index.d.ts +8 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityContext/index.d.ts +50 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityEvaluator/index.d.ts +89 -0
- package/hidden/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +119 -0
- package/hidden/senselogic/sitevision/api/script/app/RestAppInvoker/index.d.ts +272 -0
- package/hidden/senselogic/sitevision/api/script/factory/TypedArgument/index.d.ts +43 -0
- package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingCollection/index.d.ts +94 -0
- package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingIterator/index.d.ts +117 -0
- package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +90 -0
- package/hidden/senselogic/sitevision/api/search/SearchFieldUtil/index.d.ts +89 -0
- package/hidden/senselogic/sitevision/api/search/SearchHighlighter/index.d.ts +45 -0
- package/hidden/senselogic/sitevision/api/search/SearchHit/index.d.ts +1176 -0
- package/hidden/senselogic/sitevision/api/search/SearchResult/index.d.ts +414 -0
- package/hidden/senselogic/sitevision/api/search/facet/SearchFacetField/index.d.ts +27 -0
- package/hidden/senselogic/sitevision/api/search/facet/SearchFacetValue/index.d.ts +61 -0
- package/hidden/senselogic/sitevision/api/search/searcher/Searcher/index.d.ts +277 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Filter/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Highlight/index.d.ts +29 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Monitor/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Parser/index.d.ts +35 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Sort/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/SpellCheck/index.d.ts +29 -0
- package/hidden/senselogic/sitevision/api/search/sort/CustomSort/index.d.ts +82 -0
- package/hidden/senselogic/sitevision/api/search/suggestion/SearchSuggestion/index.d.ts +21 -0
- package/hidden/senselogic/sitevision/api/security/DirectoryAttributes/index.d.ts +70 -0
- package/hidden/senselogic/sitevision/api/security/MessageDigester/index.d.ts +50 -0
- package/hidden/senselogic/sitevision/api/security/RoleAssignment/index.d.ts +72 -0
- package/hidden/senselogic/sitevision/api/security/RoleMatcher/index.d.ts +29 -0
- package/hidden/senselogic/sitevision/api/security/SecretStore/index.d.ts +55 -0
- package/hidden/senselogic/sitevision/api/security/UserUtil/index.d.ts +80 -0
- package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +36 -0
- package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilterChain/index.d.ts +32 -0
- package/hidden/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +599 -0
- package/hidden/senselogic/sitevision/api/webresource/LinkTarget/index.d.ts +20 -0
- package/hidden/senselogic/sitevision/api/xml/XmlElement/index.d.ts +55 -0
- package/hidden/senselogic/sitevision/api/xml/XmlElementHandler/index.d.ts +17 -0
- package/package.json +2 -4
- package/server/AliasUtil/index.d.ts +25 -0
- package/server/AliasUtil/index.js +10 -0
- package/server/ArchiveUtil/index.d.ts +65 -11
- package/server/ArraysInstance/index.d.ts +1846 -0
- package/server/ArticleUtil/index.d.ts +381 -69
- package/server/AuthenticationUtil/index.d.ts +106 -0
- package/server/BookmarkUtil/index.d.ts +36 -28
- package/server/BuddyIconRenderer/index.d.ts +240 -0
- package/server/ClientUtil/index.d.ts +18 -4
- package/server/CollaborationFactory/index.d.ts +42 -25
- package/server/CollaborationGroupFolderUtil/index.d.ts +40 -29
- package/server/CollaborationGroupTemplateUtil/index.d.ts +71 -39
- package/server/CollaborationGroupUtil/index.d.ts +128 -55
- package/server/CollectionsInstance/index.d.ts +738 -0
- package/server/ColorUtil/index.d.ts +22 -17
- package/server/CompoundAndFilterBuilder/index.d.ts +60 -0
- package/server/CompoundComparatorBuilder/index.d.ts +63 -0
- package/server/CompoundOrFilterBuilder/index.d.ts +59 -0
- package/server/ContentNodeUtil/index.d.ts +76 -0
- package/server/CurrencyFactory/index.d.ts +135 -0
- package/server/DateUtil/index.d.ts +154 -77
- package/server/DecorationUtil/index.d.ts +23 -0
- package/server/DeviceUtil/index.d.ts +36 -0
- package/server/DirectoryUtil/index.d.ts +107 -47
- package/server/DocTypeUtil/index.d.ts +149 -0
- package/server/EndecUtil/index.d.ts +537 -91
- package/server/ExtendedDismaxParserBuilder/index.d.ts +311 -0
- package/server/FileIconRenderer/index.d.ts +346 -0
- package/server/FileUtil/index.d.ts +462 -0
- package/server/FilterBuilder/index.d.ts +120 -0
- package/server/FolderUtil/index.d.ts +161 -0
- package/server/FontUtil/index.d.ts +49 -0
- package/server/FormatterBuilderFactory/index.d.ts +129 -0
- package/server/HighlightBuilder/index.d.ts +194 -0
- package/server/IconUtil/index.d.ts +37 -0
- package/server/ImageLinkRenderer/index.d.ts +134 -0
- package/server/ImageRenderer/index.d.ts +613 -231
- package/server/ImageUtil/index.d.ts +430 -0
- package/server/IndexUtil/index.d.ts +71 -0
- package/server/IndexingUtil/index.d.ts +92 -0
- package/server/InstanceCreatorUtil/index.d.ts +661 -0
- package/server/InstanceTypeUtil/index.d.ts +202 -0
- package/server/JwtUtil/index.d.ts +217 -0
- package/server/LandingPageUtil/index.d.ts +67 -50
- package/server/LinkPageUtil/index.d.ts +468 -0
- package/server/LinkRenderer/index.d.ts +1157 -0
- package/server/LinkTargetBuilder/index.d.ts +146 -0
- package/server/LinkValueBuilder/index.d.ts +129 -52
- package/server/ListWrapper/index.d.ts +172 -0
- package/server/LocaleUtil/index.d.ts +695 -61
- package/server/LogUtil/index.d.ts +118 -77
- package/server/MailBuilder/index.d.ts +238 -0
- package/server/MailUtil/index.d.ts +98 -0
- package/server/MathInstance/index.d.ts +681 -0
- package/server/MessageDigesterFactory/index.d.ts +49 -0
- package/server/MetadataDefinitionUtil/index.d.ts +118 -0
- package/server/MetadataUtil/index.d.ts +524 -79
- package/server/MimeTypeUtil/index.d.ts +316 -0
- package/server/MonitorBuilder/index.d.ts +51 -0
- package/server/NodeComparatorUtil/index.d.ts +397 -0
- package/server/NodeFactoryUtil/index.d.ts +32 -0
- package/server/NodeFilterUtil/index.d.ts +924 -0
- package/server/NodeIteratorUtil/index.d.ts +322 -72
- package/server/NodeResolverUtil/index.d.ts +767 -0
- package/server/NodeTreeUtil/index.d.ts +339 -63
- package/server/NodeTypeUtil/index.d.ts +391 -197
- package/server/OfflineVersionPropertyUtil/index.d.ts +30 -0
- package/server/OnlineVersionPropertyUtil/index.d.ts +30 -0
- package/server/OutputUtil/index.d.ts +641 -0
- package/server/PageUtil/index.d.ts +330 -0
- package/server/PermissionUtil/index.d.ts +650 -0
- package/server/PortletContextUtil/index.d.ts +118 -37
- package/server/PortletContextUtil/index.js +1 -0
- package/server/PortletUtil/index.d.ts +40 -0
- package/server/PrincipalUtil/index.d.ts +51 -0
- package/server/Properties/index.d.ts +185 -38
- package/server/PropertyUtil/index.d.ts +2330 -406
- package/server/PublishingUtil/index.d.ts +385 -49
- package/server/QueryStringUtil/index.d.ts +737 -0
- package/server/RedirectUtil/index.d.ts +98 -0
- package/server/RelatedValueBuilder/index.d.ts +81 -39
- package/server/Requester/index.d.ts +441 -65
- package/server/ResourceLocatorUtil/index.d.ts +483 -227
- package/server/RestApi/index.d.ts +208 -23
- package/server/RestAppInvokerFactory/index.d.ts +73 -0
- package/server/RoleAssignmentBuilder/index.d.ts +60 -0
- package/server/RoleMatcherBuilder/index.d.ts +59 -0
- package/server/RoleUtil/index.d.ts +57 -0
- package/server/ScriptUtil/index.d.ts +625 -143
- package/server/SearchFactory/index.d.ts +133 -0
- package/server/SearchUtil/index.d.ts +164 -0
- package/server/SearcherBuilder/index.d.ts +260 -0
- package/server/Session/index.d.ts +1758 -0
- package/server/SimpleUserUtil/index.d.ts +39 -30
- package/server/SiteCookieUtil/index.d.ts +78 -53
- package/server/SortBuilder/index.d.ts +111 -0
- package/server/SpellCheckBuilder/index.d.ts +68 -0
- package/server/StandardParserBuilder/index.d.ts +112 -0
- package/server/StructureUtil/index.d.ts +167 -0
- package/server/SubscriberUtil/index.d.ts +122 -0
- package/server/SubscriptionUtil/index.d.ts +197 -0
- package/server/SystemUserUtil/index.d.ts +201 -98
- package/server/TagUtil/index.d.ts +193 -0
- package/server/TemplateUtil/index.d.ts +217 -0
- package/server/TemporaryFileNodeBuilder/index.d.ts +63 -0
- package/server/TemporaryNodeBuilder/index.d.ts +241 -0
- package/server/TextModuleRendererBuilder/index.d.ts +68 -0
- package/server/TimestampUtil/index.d.ts +98 -82
- package/server/TranslationUtil/index.d.ts +175 -0
- package/server/TrashcanUtil/index.d.ts +193 -24
- package/server/UserDataUtil/index.d.ts +167 -85
- package/server/UserFactory/index.d.ts +45 -30
- package/server/UserFieldRenderer/index.d.ts +258 -0
- package/server/UserIdentityUtil/index.d.ts +61 -29
- package/server/UserUtil/index.d.ts +69 -28
- package/server/Utils/index.d.ts +870 -12
- package/server/VelocityRenderer/index.d.ts +248 -0
- package/server/VersionUtil/index.d.ts +15 -12
- package/server/WebContentUtil/index.d.ts +644 -0
- package/server/WebResourceFactory/index.d.ts +66 -0
- package/server/XSLTUtil/index.d.ts +49 -10
- package/server/XmlParserUtil/index.d.ts +82 -81
- package/builtins/Binary/index.d.ts +0 -3
- package/builtins/Calendar/index.d.ts +0 -3
- package/builtins/Collection/index.d.ts +0 -3
- package/builtins/Date/index.d.ts +0 -3
- package/builtins/InputStream/index.d.ts +0 -3
- package/builtins/Instant/index.d.ts +0 -3
- package/builtins/List/index.d.ts +0 -3
- package/builtins/LocalDateTime/index.d.ts +0 -3
- package/builtins/Locale/index.d.ts +0 -3
- package/builtins/Node/index.d.ts +0 -3
- package/builtins/NodeIterator/index.d.ts +0 -27
- package/builtins/Property/index.d.ts +0 -3
- package/builtins/Serializable/index.d.ts +0 -3
- package/builtins/Set/index.d.ts +0 -3
- package/builtins/Throwable/index.d.ts +0 -3
- package/builtins/byte/index.d.ts +0 -3
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import PropertyDefinition from "../PropertyDefinition";
|
|
2
|
+
import NodeDefinition from "../NodeDefinition";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The <code>NodeTypeDefinition</code> interface provides methods for
|
|
6
|
+
* discovering the static definition of a node type. These are accessible both
|
|
7
|
+
* before and after the node type is registered. Its subclass
|
|
8
|
+
* <code>NodeType</code> adds methods that are relevant only when the node type
|
|
9
|
+
* is "live"; that is, after it has been registered. Note that the separate
|
|
10
|
+
* <code>NodeDefinition</code> interface only plays a significant role in
|
|
11
|
+
* implementations that support node type registration. In those cases it serves
|
|
12
|
+
* as the superclass of both <code>NodeType</code> and <code>NodeTypeTemplate</code>.
|
|
13
|
+
* In implementations that do not support node type registration, only objects
|
|
14
|
+
* implementing the subinterface <code>NodeType</code> will be encountered.Returns the name of the node type.
|
|
15
|
+
* <p>
|
|
16
|
+
* In implementations that support node type registration, if this
|
|
17
|
+
* <code>NodeTypeDefinition</code> object is actually a newly-created empty
|
|
18
|
+
* <code>NodeTypeTemplate</code>, then this method will return
|
|
19
|
+
* <code>null</code>.Returns the names of the supertypes actually declared in this node type.
|
|
20
|
+
* <p>
|
|
21
|
+
* In implementations that support node type registration, if this
|
|
22
|
+
* <code>NodeTypeDefinition</code> object is actually a newly-created empty
|
|
23
|
+
* <code>NodeTypeTemplate</code>, then this method will return an empty array.
|
|
24
|
+
*
|
|
25
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns <code>true</code> if this is an abstract node type; returns
|
|
26
|
+
* <code>false</code> otherwise.
|
|
27
|
+
* <p>
|
|
28
|
+
* An abstract node type is one that cannot be assigned as the primary or
|
|
29
|
+
* mixin type of a node but can be used in the definitions of other node
|
|
30
|
+
* types as a superclass.
|
|
31
|
+
* <p>
|
|
32
|
+
* In implementations that support node type registration, if this
|
|
33
|
+
* <code>NodeTypeDefinition</code> object is actually a newly-created empty
|
|
34
|
+
* <code>NodeTypeTemplate</code>, then this method will return
|
|
35
|
+
* <code>false</code>.Returns <code>true</code> if this is a mixin type; returns
|
|
36
|
+
* <code>false</code> if it is primary.
|
|
37
|
+
* <p>
|
|
38
|
+
* In implementations that support node type registration, if this
|
|
39
|
+
* <code>NodeTypeDefinition</code> object is actually a newly-created empty
|
|
40
|
+
* <code>NodeTypeTemplate</code>, then this method will return
|
|
41
|
+
* <code>false</code>.Returns <code>true</code> if nodes of this type must support orderable
|
|
42
|
+
* child nodes; returns <code>false</code> otherwise. If a node type returns
|
|
43
|
+
* <code>true</code> on a call to this method, then all nodes of that node
|
|
44
|
+
* type <i>must</i> support the method <code>Node.orderBefore</code>. If a
|
|
45
|
+
* node type returns <code>false</code> on a call to this method, then nodes
|
|
46
|
+
* of that node type <i>may</i> support <code>Node.orderBefore</code>. Only
|
|
47
|
+
* the primary node type of a node controls that node's status in this
|
|
48
|
+
* regard. This setting on a mixin node type will not have any effect on the
|
|
49
|
+
* node.
|
|
50
|
+
* <p>
|
|
51
|
+
* In implementations that support node type registration, if this
|
|
52
|
+
* <code>NodeTypeDefinition</code> object is actually a newly-created empty
|
|
53
|
+
* <code>NodeTypeTemplate</code>, then this method will return
|
|
54
|
+
* <code>false</code>.
|
|
55
|
+
*
|
|
56
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns <code>true</code> if the node type is queryable, meaning that the
|
|
57
|
+
* available-query-operators, full-text-searchable and query-orderable
|
|
58
|
+
* attributes of its property definitions take effect. See {@link
|
|
59
|
+
* javax.jcr.nodetype.PropertyDefinition#getAvailableQueryOperators()},
|
|
60
|
+
* {@link javax.jcr.nodetype.PropertyDefinition#isFullTextSearchable()} and
|
|
61
|
+
* {@link javax.jcr.nodetype.PropertyDefinition#isQueryOrderable()}.
|
|
62
|
+
* <p>
|
|
63
|
+
* If a node type is declared non-queryable then these attributes of its
|
|
64
|
+
* property definitions have no effect.
|
|
65
|
+
* <p>
|
|
66
|
+
* In implementations that support node type registration, if this
|
|
67
|
+
* <code>NodeTypeDefinition</code> object is actually a newly-created empty
|
|
68
|
+
* <code>NodeTypeTemplate</code>, then this method will return
|
|
69
|
+
* an implementation-determined defalt value.
|
|
70
|
+
*
|
|
71
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns the name of the primary item (one of the child items of the nodes
|
|
72
|
+
* of this node type). If this node has no primary item, then this method
|
|
73
|
+
* returns <code>null</code>. This indicator is used by the method
|
|
74
|
+
* <code>Node.getPrimaryItem()</code>.
|
|
75
|
+
* <p>
|
|
76
|
+
* In implementations that support node type registration, if this
|
|
77
|
+
* <code>NodeTypeDefinition</code> object is actually a newly-created empty
|
|
78
|
+
* <code>NodeTypeTemplate</code>, then this method will return
|
|
79
|
+
* <code>null</code>.
|
|
80
|
+
*
|
|
81
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns an array containing the property definitions actually declared in
|
|
82
|
+
* this node type.
|
|
83
|
+
* <p>
|
|
84
|
+
* In implementations that support node type registration, if this
|
|
85
|
+
* <code>NodeTypeDefinition</code> object is actually a newly-created empty
|
|
86
|
+
* <code>NodeTypeTemplate</code>, then this method will return
|
|
87
|
+
* <code>null</code>.
|
|
88
|
+
*
|
|
89
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns an array containing the child node definitions actually declared
|
|
90
|
+
* in this node type.
|
|
91
|
+
* <p>
|
|
92
|
+
* In implementations that support node type registration, if this
|
|
93
|
+
* <code>NodeTypeDefinition</code> object is actually a newly-created empty
|
|
94
|
+
* <code>NodeTypeTemplate</code>, then this method will return
|
|
95
|
+
* <code>null</code>.
|
|
96
|
+
*
|
|
97
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
98
|
+
* @since JCR 2.0
|
|
99
|
+
*/
|
|
100
|
+
interface NodeTypeDefinition {
|
|
101
|
+
/**
|
|
102
|
+
* Returns the name of the node type.
|
|
103
|
+
* <p>
|
|
104
|
+
* In implementations that support node type registration, if this
|
|
105
|
+
* <code>NodeTypeDefinition</code> object is actually a newly-created empty
|
|
106
|
+
* <code>NodeTypeTemplate</code>, then this method will return
|
|
107
|
+
* <code>null</code>.
|
|
108
|
+
* @return a <code>String</code>
|
|
109
|
+
* @since JCR 2.0 moved here from JCR 1.0 <code>NodeType</code>.
|
|
110
|
+
*/
|
|
111
|
+
getName(): string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Returns the names of the supertypes actually declared in this node type.
|
|
115
|
+
* <p>
|
|
116
|
+
* In implementations that support node type registration, if this
|
|
117
|
+
* <code>NodeTypeDefinition</code> object is actually a newly-created empty
|
|
118
|
+
* <code>NodeTypeTemplate</code>, then this method will return an empty array.
|
|
119
|
+
*
|
|
120
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
121
|
+
* @return an array of <code>String</code>s
|
|
122
|
+
* @since JCR 2.0
|
|
123
|
+
*/
|
|
124
|
+
getDeclaredSupertypeNames(): string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Returns <code>true</code> if this is an abstract node type; returns
|
|
128
|
+
* <code>false</code> otherwise.
|
|
129
|
+
* <p>
|
|
130
|
+
* An abstract node type is one that cannot be assigned as the primary or
|
|
131
|
+
* mixin type of a node but can be used in the definitions of other node
|
|
132
|
+
* types as a superclass.
|
|
133
|
+
* <p>
|
|
134
|
+
* In implementations that support node type registration, if this
|
|
135
|
+
* <code>NodeTypeDefinition</code> object is actually a newly-created empty
|
|
136
|
+
* <code>NodeTypeTemplate</code>, then this method will return
|
|
137
|
+
* <code>false</code>.
|
|
138
|
+
* @return a <code>boolean</code>
|
|
139
|
+
* @since JCR 2.0
|
|
140
|
+
*/
|
|
141
|
+
isAbstract(): boolean;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Returns <code>true</code> if this is a mixin type; returns
|
|
145
|
+
* <code>false</code> if it is primary.
|
|
146
|
+
* <p>
|
|
147
|
+
* In implementations that support node type registration, if this
|
|
148
|
+
* <code>NodeTypeDefinition</code> object is actually a newly-created empty
|
|
149
|
+
* <code>NodeTypeTemplate</code>, then this method will return
|
|
150
|
+
* <code>false</code>.
|
|
151
|
+
* @return a <code>boolean</code>
|
|
152
|
+
* @since JCR 2.0 moved here from JCR 1.0 <code>NodeType</code>.
|
|
153
|
+
*/
|
|
154
|
+
isMixin(): boolean;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Returns <code>true</code> if nodes of this type must support orderable
|
|
158
|
+
* child nodes; returns <code>false</code> otherwise. If a node type returns
|
|
159
|
+
* <code>true</code> on a call to this method, then all nodes of that node
|
|
160
|
+
* type <i>must</i> support the method <code>Node.orderBefore</code>. If a
|
|
161
|
+
* node type returns <code>false</code> on a call to this method, then nodes
|
|
162
|
+
* of that node type <i>may</i> support <code>Node.orderBefore</code>. Only
|
|
163
|
+
* the primary node type of a node controls that node's status in this
|
|
164
|
+
* regard. This setting on a mixin node type will not have any effect on the
|
|
165
|
+
* node.
|
|
166
|
+
* <p>
|
|
167
|
+
* In implementations that support node type registration, if this
|
|
168
|
+
* <code>NodeTypeDefinition</code> object is actually a newly-created empty
|
|
169
|
+
* <code>NodeTypeTemplate</code>, then this method will return
|
|
170
|
+
* <code>false</code>.
|
|
171
|
+
*
|
|
172
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
173
|
+
* @return a <code>boolean</code>
|
|
174
|
+
* @since JCR 2.0 moved here from JCR 1.0 <code>NodeType</code>.
|
|
175
|
+
*/
|
|
176
|
+
hasOrderableChildNodes(): boolean;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Returns <code>true</code> if the node type is queryable, meaning that the
|
|
180
|
+
* available-query-operators, full-text-searchable and query-orderable
|
|
181
|
+
* attributes of its property definitions take effect. See {@link
|
|
182
|
+
* javax.jcr.nodetype.PropertyDefinition#getAvailableQueryOperators()},
|
|
183
|
+
* {@link javax.jcr.nodetype.PropertyDefinition#isFullTextSearchable()} and
|
|
184
|
+
* {@link javax.jcr.nodetype.PropertyDefinition#isQueryOrderable()}.
|
|
185
|
+
* <p>
|
|
186
|
+
* If a node type is declared non-queryable then these attributes of its
|
|
187
|
+
* property definitions have no effect.
|
|
188
|
+
* <p>
|
|
189
|
+
* In implementations that support node type registration, if this
|
|
190
|
+
* <code>NodeTypeDefinition</code> object is actually a newly-created empty
|
|
191
|
+
* <code>NodeTypeTemplate</code>, then this method will return
|
|
192
|
+
* an implementation-determined defalt value.
|
|
193
|
+
*
|
|
194
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
195
|
+
* @return a <code>boolean</code>
|
|
196
|
+
* @since JCR 2.0
|
|
197
|
+
*/
|
|
198
|
+
isQueryable(): boolean;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Returns the name of the primary item (one of the child items of the nodes
|
|
202
|
+
* of this node type). If this node has no primary item, then this method
|
|
203
|
+
* returns <code>null</code>. This indicator is used by the method
|
|
204
|
+
* <code>Node.getPrimaryItem()</code>.
|
|
205
|
+
* <p>
|
|
206
|
+
* In implementations that support node type registration, if this
|
|
207
|
+
* <code>NodeTypeDefinition</code> object is actually a newly-created empty
|
|
208
|
+
* <code>NodeTypeTemplate</code>, then this method will return
|
|
209
|
+
* <code>null</code>.
|
|
210
|
+
*
|
|
211
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
212
|
+
* @return a <code>String</code>
|
|
213
|
+
* @since JCR 2.0 moved here from JCR 1.0 <code>NodeType</code>.
|
|
214
|
+
*/
|
|
215
|
+
getPrimaryItemName(): string;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Returns an array containing the property definitions actually declared in
|
|
219
|
+
* this node type.
|
|
220
|
+
* <p>
|
|
221
|
+
* In implementations that support node type registration, if this
|
|
222
|
+
* <code>NodeTypeDefinition</code> object is actually a newly-created empty
|
|
223
|
+
* <code>NodeTypeTemplate</code>, then this method will return
|
|
224
|
+
* <code>null</code>.
|
|
225
|
+
*
|
|
226
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
227
|
+
* @return an array of <code>PropertyDefinition</code>s
|
|
228
|
+
* @since JCR 2.0 moved here from JCR 1.0 <code>NodeType</code>.
|
|
229
|
+
*/
|
|
230
|
+
getDeclaredPropertyDefinitions(): PropertyDefinition;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Returns an array containing the child node definitions actually declared
|
|
234
|
+
* in this node type.
|
|
235
|
+
* <p>
|
|
236
|
+
* In implementations that support node type registration, if this
|
|
237
|
+
* <code>NodeTypeDefinition</code> object is actually a newly-created empty
|
|
238
|
+
* <code>NodeTypeTemplate</code>, then this method will return
|
|
239
|
+
* <code>null</code>.
|
|
240
|
+
*
|
|
241
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
242
|
+
* @return an array of <code>NodeDefinition</code>s
|
|
243
|
+
* @since JCR 2.0 moved here from JCR 1.0 <code>NodeType</code>.
|
|
244
|
+
*/
|
|
245
|
+
getDeclaredChildNodeDefinitions(): NodeDefinition;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export default NodeTypeDefinition;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import NodeType from "../NodeType";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* An iterator for <code>NodeType</code> objects.Returns the next <code>NodeType</code> in the iteration.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
interface NodeTypeIterator {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the next <code>NodeType</code> in the iteration.
|
|
10
|
+
* @return the next <code>NodeType</code> in the iteration.
|
|
11
|
+
* @throws java.util.NoSuchElementException if iteration has no more <code>NodeType</code>s.
|
|
12
|
+
*/
|
|
13
|
+
nextNodeType(): NodeType;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default NodeTypeIterator;
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import NodeType from "../NodeType";
|
|
2
|
+
import NodeTypeIterator from "../NodeTypeIterator";
|
|
3
|
+
import NodeTypeTemplate from "../NodeTypeTemplate";
|
|
4
|
+
import NodeTypeDefinition from "../NodeTypeDefinition";
|
|
5
|
+
import NodeDefinitionTemplate from "../NodeDefinitionTemplate";
|
|
6
|
+
import PropertyDefinitionTemplate from "../PropertyDefinitionTemplate";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Allows for the retrieval and (in implementations that support it) the
|
|
10
|
+
* registration of node types. Accessed via {@link Workspace#getNodeTypeManager}.Returns the named node type.Returns <code>true</code> if a node type with the specified name is
|
|
11
|
+
* registered. Returns <code>false</code> otherwise.Returns an iterator over all available node types (primary and mixin).Returns an iterator over all available primary node types.Returns an iterator over all available mixin node types. If none are
|
|
12
|
+
* available, an empty iterator is returned.Returns an empty <code>NodeTypeTemplate</code> which can then be used to
|
|
13
|
+
* define a node type and passed to <code>NodeTypeManager.registerNodeType</code>.
|
|
14
|
+
*
|
|
15
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns a <code>NodeTypeTemplate</code> holding the specified node type
|
|
16
|
+
* definition. This template can then be altered and passed to
|
|
17
|
+
* <code>NodeTypeManager.registerNodeType</code>.
|
|
18
|
+
*
|
|
19
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns an empty <code>NodeDefinitionTemplate</code> which can then be
|
|
20
|
+
* used to create a child node definition and attached to a
|
|
21
|
+
* <code>NodeTypeTemplate</code>.
|
|
22
|
+
*
|
|
23
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns an empty <code>PropertyDefinitionTemplate</code> which can then
|
|
24
|
+
* be used to create a property definition and attached to a
|
|
25
|
+
* <code>NodeTypeTemplate</code>.
|
|
26
|
+
*
|
|
27
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Registers a new node type or updates an existing node type using the
|
|
28
|
+
* specified definition and returns the resulting <code>NodeType</code>
|
|
29
|
+
* object.
|
|
30
|
+
* <p>
|
|
31
|
+
* Typically, the object passed to this method will be a
|
|
32
|
+
* <code>NodeTypeTemplate</code> (a subclass of <code>NodeTypeDefinition</code>)
|
|
33
|
+
* acquired from <code>NodeTypeManager.createNodeTypeTemplate</code> and
|
|
34
|
+
* then filled-in with definition information.
|
|
35
|
+
*
|
|
36
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Registers or updates the specified array of <code>NodeTypeDefinition</code>
|
|
37
|
+
* objects. This method is used to register or update a set of node types
|
|
38
|
+
* with mutual dependencies. Returns an iterator over the resulting
|
|
39
|
+
* <code>NodeType</code> objects.
|
|
40
|
+
* <p>
|
|
41
|
+
* The effect of the method is "all or nothing"; if an error occurs, no node
|
|
42
|
+
* types are registered or updated.
|
|
43
|
+
*
|
|
44
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Unregisters the specified node type.
|
|
45
|
+
*
|
|
46
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Unregisters the specified set of node types. Used to unregister a set of
|
|
47
|
+
* node types with mutual dependencies.
|
|
48
|
+
*
|
|
49
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
50
|
+
|
|
51
|
+
*/
|
|
52
|
+
interface NodeTypeManager {
|
|
53
|
+
/**
|
|
54
|
+
* Returns the named node type.
|
|
55
|
+
* @param nodeTypeName the name of an existing node type.
|
|
56
|
+
* @return A <code>NodeType</code> object.
|
|
57
|
+
* @throws NoSuchNodeTypeException if no node type by the given name exists.
|
|
58
|
+
* @throws RepositoryException if another error occurs.
|
|
59
|
+
*/
|
|
60
|
+
getNodeType(nodeTypeName: string): NodeType;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Returns <code>true</code> if a node type with the specified name is
|
|
64
|
+
* registered. Returns <code>false</code> otherwise.
|
|
65
|
+
* @param name a <code>String</code>.
|
|
66
|
+
* @return a <code>boolean</code>
|
|
67
|
+
* @throws RepositoryException if an error occurs.
|
|
68
|
+
* @since JCR 2.0
|
|
69
|
+
*/
|
|
70
|
+
hasNodeType(name: string): boolean;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Returns an iterator over all available node types (primary and mixin).
|
|
74
|
+
* @return An <code>NodeTypeIterator</code>.
|
|
75
|
+
* @throws RepositoryException if an error occurs.
|
|
76
|
+
*/
|
|
77
|
+
getAllNodeTypes(): NodeTypeIterator;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Returns an iterator over all available primary node types.
|
|
81
|
+
* @return An <code>NodeTypeIterator</code>.
|
|
82
|
+
* @throws RepositoryException if an error occurs.
|
|
83
|
+
*/
|
|
84
|
+
getPrimaryNodeTypes(): NodeTypeIterator;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Returns an iterator over all available mixin node types. If none are
|
|
88
|
+
* available, an empty iterator is returned.
|
|
89
|
+
* @return An <code>NodeTypeIterator</code>.
|
|
90
|
+
* @throws RepositoryException if an error occurs.
|
|
91
|
+
*/
|
|
92
|
+
getMixinNodeTypes(): NodeTypeIterator;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Returns an empty <code>NodeTypeTemplate</code> which can then be used to
|
|
96
|
+
* define a node type and passed to <code>NodeTypeManager.registerNodeType</code>.
|
|
97
|
+
*
|
|
98
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
99
|
+
* @return A <code>NodeTypeTemplate</code>.
|
|
100
|
+
* @throws UnsupportedRepositoryOperationException if this implementation does not support node type registration.
|
|
101
|
+
* @throws RepositoryException if another error occurs.
|
|
102
|
+
* @since JCR 2.0
|
|
103
|
+
*/
|
|
104
|
+
createNodeTypeTemplate(): NodeTypeTemplate;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Returns a <code>NodeTypeTemplate</code> holding the specified node type
|
|
108
|
+
* definition. This template can then be altered and passed to
|
|
109
|
+
* <code>NodeTypeManager.registerNodeType</code>.
|
|
110
|
+
*
|
|
111
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
112
|
+
* @param ntd a <code>NodeTypeDefinition</code>.
|
|
113
|
+
* @return A <code>NodeTypeTemplate</code>.
|
|
114
|
+
* @throws UnsupportedRepositoryOperationException if this implementation does not support node type registration.
|
|
115
|
+
* @throws RepositoryException if another error occurs.
|
|
116
|
+
* @since JCR 2.0
|
|
117
|
+
*/
|
|
118
|
+
createNodeTypeTemplate(ntd: NodeTypeDefinition): NodeTypeTemplate;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Returns an empty <code>NodeDefinitionTemplate</code> which can then be
|
|
122
|
+
* used to create a child node definition and attached to a
|
|
123
|
+
* <code>NodeTypeTemplate</code>.
|
|
124
|
+
*
|
|
125
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
126
|
+
* @return A <code>NodeDefinitionTemplate</code>.
|
|
127
|
+
* @throws UnsupportedRepositoryOperationException if this implementation does not support node type registration.
|
|
128
|
+
* @throws RepositoryException if another error occurs.
|
|
129
|
+
* @since JCR 2.0
|
|
130
|
+
*/
|
|
131
|
+
createNodeDefinitionTemplate(): NodeDefinitionTemplate;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Returns an empty <code>PropertyDefinitionTemplate</code> which can then
|
|
135
|
+
* be used to create a property definition and attached to a
|
|
136
|
+
* <code>NodeTypeTemplate</code>.
|
|
137
|
+
*
|
|
138
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
139
|
+
* @return A <code>PropertyDefinitionTemplate</code>.
|
|
140
|
+
* @throws UnsupportedRepositoryOperationException if this implementation does not support node type registration.
|
|
141
|
+
* @throws RepositoryException if another error occurs.
|
|
142
|
+
* @since JCR 2.0
|
|
143
|
+
*/
|
|
144
|
+
createPropertyDefinitionTemplate(): PropertyDefinitionTemplate;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Registers a new node type or updates an existing node type using the
|
|
148
|
+
* specified definition and returns the resulting <code>NodeType</code>
|
|
149
|
+
* object.
|
|
150
|
+
* <p>
|
|
151
|
+
* Typically, the object passed to this method will be a
|
|
152
|
+
* <code>NodeTypeTemplate</code> (a subclass of <code>NodeTypeDefinition</code>)
|
|
153
|
+
* acquired from <code>NodeTypeManager.createNodeTypeTemplate</code> and
|
|
154
|
+
* then filled-in with definition information.
|
|
155
|
+
*
|
|
156
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
157
|
+
* @param ntd an <code>NodeTypeDefinition</code>.
|
|
158
|
+
* @param allowUpdate a boolean
|
|
159
|
+
* @return the registered node type
|
|
160
|
+
* @throws InvalidNodeTypeDefinitionException if the <code>NodeTypeDefinition</code> is invalid.
|
|
161
|
+
* @throws NodeTypeExistsException if <code>allowUpdate</code> is <code>false</code> and the <code>NodeTypeDefinition</code> specifies a node type name that is already registered.
|
|
162
|
+
* @throws UnsupportedRepositoryOperationException if this implementation does not support node type registration.
|
|
163
|
+
* @throws RepositoryException if another error occurs.
|
|
164
|
+
* @since JCR 2.0
|
|
165
|
+
*/
|
|
166
|
+
registerNodeType(ntd: NodeTypeDefinition, allowUpdate: boolean): NodeType;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Registers or updates the specified array of <code>NodeTypeDefinition</code>
|
|
170
|
+
* objects. This method is used to register or update a set of node types
|
|
171
|
+
* with mutual dependencies. Returns an iterator over the resulting
|
|
172
|
+
* <code>NodeType</code> objects.
|
|
173
|
+
* <p>
|
|
174
|
+
* The effect of the method is "all or nothing"; if an error occurs, no node
|
|
175
|
+
* types are registered or updated.
|
|
176
|
+
*
|
|
177
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
178
|
+
* @param ntds a collection of <code>NodeTypeDefinition</code>s
|
|
179
|
+
* @param allowUpdate a boolean
|
|
180
|
+
* @return the registered node types.
|
|
181
|
+
* @throws InvalidNodeTypeDefinitionException if a <code>NodeTypeDefinition</code> within the <code>Collection</code> is invalid or if the <code>Collection</code> contains an object of a type other than <code>NodeTypeDefinition</code>.
|
|
182
|
+
* @throws NodeTypeExistsException if <code>allowUpdate</code> is <code>false</code> and a <code>NodeTypeDefinition</code> within the <code>Collection</code> specifies a node type name that is already registered.
|
|
183
|
+
* @throws UnsupportedRepositoryOperationException if this implementation does not support node type registration.
|
|
184
|
+
* @throws RepositoryException if another error occurs.
|
|
185
|
+
* @since JCR 2.0
|
|
186
|
+
*/
|
|
187
|
+
registerNodeTypes(
|
|
188
|
+
ntds: NodeTypeDefinition,
|
|
189
|
+
allowUpdate: boolean
|
|
190
|
+
): NodeTypeIterator;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Unregisters the specified node type.
|
|
194
|
+
*
|
|
195
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
196
|
+
* @param name a <code>String</code>.
|
|
197
|
+
* @throws UnsupportedRepositoryOperationException if this implementation does not support node type registration.
|
|
198
|
+
* @throws NoSuchNodeTypeException if no registered node type exists with the specified name.
|
|
199
|
+
* @throws RepositoryException if another error occurs.
|
|
200
|
+
* @since JCR 2.0
|
|
201
|
+
*/
|
|
202
|
+
unregisterNodeType(name: string): void;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Unregisters the specified set of node types. Used to unregister a set of
|
|
206
|
+
* node types with mutual dependencies.
|
|
207
|
+
*
|
|
208
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
209
|
+
* @param names a <code>String</code> array
|
|
210
|
+
* @throws UnsupportedRepositoryOperationException if this implementation does not support node type registration.
|
|
211
|
+
* @throws NoSuchNodeTypeException if one of the names listed is not a registered node type.
|
|
212
|
+
* @throws RepositoryException if another error occurs.
|
|
213
|
+
* @since JCR 2.0
|
|
214
|
+
*/
|
|
215
|
+
unregisterNodeTypes(names: string): void;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export default NodeTypeManager;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The <code>NodeTypeTemplate</code> interface is used to define node types which
|
|
3
|
+
* are then registered through the <code>NodeTypeManager.registerNodeType</code> method.
|
|
4
|
+
* <p>
|
|
5
|
+
* <code>NodeTypeTemplate</code>, like <code>NodeType</code>, is a subclass of
|
|
6
|
+
* <code>NodeTypeDefinition</code> so it shares with <code>NodeType</code> those
|
|
7
|
+
* methods that are relevant to a static definition. In addition,
|
|
8
|
+
* <code>NodeTypeTemplate</code> provides methods for setting the attributes of
|
|
9
|
+
* the definition.
|
|
10
|
+
* <p>
|
|
11
|
+
* See the corresponding <code>get</code> methods for each attribute in
|
|
12
|
+
* <code>NodeTypeDefinition</code> for the default values assumed when a new
|
|
13
|
+
* empty <code>NodeTypeTemplate</code> is created (as opposed to one extracted
|
|
14
|
+
* from an existing <code>NodeType</code>).
|
|
15
|
+
*
|
|
16
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Sets the name of the node type. This must be a JCR name in either
|
|
17
|
+
* qualified or expanded form.Sets the names of the supertypes of the node type.
|
|
18
|
+
* These must be a JCR names in either
|
|
19
|
+
* qualified or expanded form.Sets the abstract flag of the node type.Sets the mixin flag of the node type.Sets the orderable child nodes flag of the node type.Sets the name of the primary item. This must be a JCR name in either
|
|
20
|
+
* qualified or expanded form.Sets the queryable status of the node type.Returns a mutable <code>List</code> of <code>PropertyDefinitionTemplate</code>
|
|
21
|
+
* objects. To define a new <code>NodeTypeTemplate</code> or change an
|
|
22
|
+
* existing one, <code>PropertyDefinitionTemplate</code> objects can be
|
|
23
|
+
* added to or removed from this <code>List</code>.Returns a mutable <code>List</code> of <code>NodeDefinitionTemplate</code>
|
|
24
|
+
* objects. To define a new <code>NodeTypeTemplate</code> or change an
|
|
25
|
+
* existing one, <code>NodeDefinitionTemplate</code> objects can be added to
|
|
26
|
+
* or removed from this <code>List</code>.
|
|
27
|
+
* @since JCR 2.0
|
|
28
|
+
*/
|
|
29
|
+
interface NodeTypeTemplate {
|
|
30
|
+
/**
|
|
31
|
+
* Sets the name of the node type. This must be a JCR name in either
|
|
32
|
+
* qualified or expanded form.
|
|
33
|
+
* @param name a JCR name.
|
|
34
|
+
* @throws ConstraintViolationException if <code>name</code> is not a syntactically valid JCR name in either qualified or expanded form.
|
|
35
|
+
*/
|
|
36
|
+
setName(name: string): void;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Sets the names of the supertypes of the node type.
|
|
40
|
+
* These must be a JCR names in either
|
|
41
|
+
* qualified or expanded form.
|
|
42
|
+
* @param names an array of JCR names.
|
|
43
|
+
* @throws ConstraintViolationException if <code>names</code> includes a name that is not a syntactically valid JCR name in either qualified or expanded form.
|
|
44
|
+
*/
|
|
45
|
+
setDeclaredSuperTypeNames(names: string): void;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Sets the abstract flag of the node type.
|
|
49
|
+
* @param abstractStatus a <code>boolean</code>.
|
|
50
|
+
*/
|
|
51
|
+
setAbstract(abstractStatus: boolean): void;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Sets the mixin flag of the node type.
|
|
55
|
+
* @param mixin a <code>boolean</code>.
|
|
56
|
+
*/
|
|
57
|
+
setMixin(mixin: boolean): void;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Sets the orderable child nodes flag of the node type.
|
|
61
|
+
* @param orderable a <code>boolean</code>.
|
|
62
|
+
*/
|
|
63
|
+
setOrderableChildNodes(orderable: boolean): void;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Sets the name of the primary item. This must be a JCR name in either
|
|
67
|
+
* qualified or expanded form.
|
|
68
|
+
* @param name a JCR name.
|
|
69
|
+
* @throws ConstraintViolationException if <code>name</code> is not a syntactically valid JCR name in either qualified or expanded form.
|
|
70
|
+
*/
|
|
71
|
+
setPrimaryItemName(name: string): void;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Sets the queryable status of the node type.
|
|
75
|
+
* @param queryable a <code>boolean</code>.
|
|
76
|
+
*/
|
|
77
|
+
setQueryable(queryable: boolean): void;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Returns a mutable <code>List</code> of <code>PropertyDefinitionTemplate</code>
|
|
81
|
+
* objects. To define a new <code>NodeTypeTemplate</code> or change an
|
|
82
|
+
* existing one, <code>PropertyDefinitionTemplate</code> objects can be
|
|
83
|
+
* added to or removed from this <code>List</code>.
|
|
84
|
+
* @return a mutable <code>List</code> of <code>PropertyDefinitionTemplate</code> objects.
|
|
85
|
+
*/
|
|
86
|
+
getPropertyDefinitionTemplates(): unknown[];
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Returns a mutable <code>List</code> of <code>NodeDefinitionTemplate</code>
|
|
90
|
+
* objects. To define a new <code>NodeTypeTemplate</code> or change an
|
|
91
|
+
* existing one, <code>NodeDefinitionTemplate</code> objects can be added to
|
|
92
|
+
* or removed from this <code>List</code>.
|
|
93
|
+
* @return a mutable <code>List</code> of <code>NodeDefinitionTemplate</code> objects.
|
|
94
|
+
*/
|
|
95
|
+
getNodeDefinitionTemplates(): unknown[];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export default NodeTypeTemplate;
|