@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,158 @@
|
|
|
1
|
+
import NodeType from "../NodeType";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A node definition. Used in node type definitions.Gets the minimum set of primary node types that the child node must have.
|
|
5
|
+
* Returns an array to support those implementations with multiple
|
|
6
|
+
* inheritance. This method never returns an empty array. If this node
|
|
7
|
+
* definition places no requirements on the primary node type, then this
|
|
8
|
+
* method will return an array containing only the <code>NodeType</code>
|
|
9
|
+
* object representing <code>nt:base</code>, which is the base of all
|
|
10
|
+
* primary node types and therefore constitutes the least restrictive node
|
|
11
|
+
* type requirement. Note that any particular node instance still has only
|
|
12
|
+
* one assigned primary node type, but in multiple-inheritance-supporting
|
|
13
|
+
* implementations the <code>RequiredPrimaryTypes</code> attribute can be
|
|
14
|
+
* used to restrict that assigned node type to be a subtype of <i>all</i> of
|
|
15
|
+
* a specified set of node types.
|
|
16
|
+
* <p>
|
|
17
|
+
* In implementations that support node type registration an
|
|
18
|
+
* <code>NodeDefinition</code> object may be acquired (in the form of a
|
|
19
|
+
* <code>NodeDefinitionTemplate</code>) that is not attached to a live
|
|
20
|
+
* <code>NodeType</code>. In such cases this method returns
|
|
21
|
+
* <code>null</code>.Returns the names of the required primary node types.
|
|
22
|
+
* <p>
|
|
23
|
+
* If this <code>NodeDefinition</code> is acquired from a live
|
|
24
|
+
* <code>NodeType</code> this list will reflect the node types returned by
|
|
25
|
+
* <code>getRequiredPrimaryTypes</code>, above.
|
|
26
|
+
* <p>
|
|
27
|
+
* If this <code>NodeDefinition</code> is actually a
|
|
28
|
+
* <code>NodeDefinitionTemplate</code> that is not part of a registered node
|
|
29
|
+
* type, then this method will return the required primary types as set in
|
|
30
|
+
* that template. If that template is a newly-created empty one, then this
|
|
31
|
+
* method will return <code>null</code>.Gets the default primary node type that will be assigned to the child
|
|
32
|
+
* node if it is created without an explicitly specified primary node type.
|
|
33
|
+
* This node type must be a subtype of (or the same type as) the node types
|
|
34
|
+
* returned by <code>getRequiredPrimaryTypes</code>.
|
|
35
|
+
* <p>
|
|
36
|
+
* If <code>null</code> is returned this indicates that no default primary
|
|
37
|
+
* type is specified and that therefore an attempt to create this node
|
|
38
|
+
* without specifying a node type will throw a <code>ConstraintViolationException</code>.
|
|
39
|
+
* <p>
|
|
40
|
+
* In implementations that support node type registration an
|
|
41
|
+
* <code>NodeDefinition</code> object may be acquired (in the form of a
|
|
42
|
+
* <code>NodeDefinitionTemplate</code>) that is not attached to a live
|
|
43
|
+
* <code>NodeType</code>. In such cases this method returns
|
|
44
|
+
* <code>null</code>.Returns the name of the default primary node type.
|
|
45
|
+
* <p>
|
|
46
|
+
* If this <code>NodeDefinition</code> is acquired from a live
|
|
47
|
+
* <code>NodeType</code> this list will reflect the NodeType returned by
|
|
48
|
+
* getDefaultPrimaryType, above.
|
|
49
|
+
* <p>
|
|
50
|
+
* If this <code>NodeDefinition</code> is actually a
|
|
51
|
+
* <code>NodeDefinitionTemplate</code> that is not part of a registered node
|
|
52
|
+
* type, then this method will return the required primary types as set in
|
|
53
|
+
* that template. If that template is a newly-created empty one, then this
|
|
54
|
+
* method will return <code>null</code>.Reports whether this child node can have same-name siblings. In other
|
|
55
|
+
* words, whether the parent node can have more than one child node of this
|
|
56
|
+
* name.
|
|
57
|
+
* <p>
|
|
58
|
+
* If this <code>NodeDefinition</code> is actually a
|
|
59
|
+
* <code>NodeDefinitionTemplate</code> that is not part of a registered node
|
|
60
|
+
* type, then this method will return the same name siblings status as set
|
|
61
|
+
* in that template. If that template is a newly-created empty one, then
|
|
62
|
+
* this method will return <code>false</code>.
|
|
63
|
+
* @see NodeType#getChildNodeDefinitions
|
|
64
|
+
* @see javax.jcr.Node#getDefinition
|
|
65
|
+
*/
|
|
66
|
+
interface NodeDefinition {
|
|
67
|
+
/**
|
|
68
|
+
* Gets the minimum set of primary node types that the child node must have.
|
|
69
|
+
* Returns an array to support those implementations with multiple
|
|
70
|
+
* inheritance. This method never returns an empty array. If this node
|
|
71
|
+
* definition places no requirements on the primary node type, then this
|
|
72
|
+
* method will return an array containing only the <code>NodeType</code>
|
|
73
|
+
* object representing <code>nt:base</code>, which is the base of all
|
|
74
|
+
* primary node types and therefore constitutes the least restrictive node
|
|
75
|
+
* type requirement. Note that any particular node instance still has only
|
|
76
|
+
* one assigned primary node type, but in multiple-inheritance-supporting
|
|
77
|
+
* implementations the <code>RequiredPrimaryTypes</code> attribute can be
|
|
78
|
+
* used to restrict that assigned node type to be a subtype of <i>all</i> of
|
|
79
|
+
* a specified set of node types.
|
|
80
|
+
* <p>
|
|
81
|
+
* In implementations that support node type registration an
|
|
82
|
+
* <code>NodeDefinition</code> object may be acquired (in the form of a
|
|
83
|
+
* <code>NodeDefinitionTemplate</code>) that is not attached to a live
|
|
84
|
+
* <code>NodeType</code>. In such cases this method returns
|
|
85
|
+
* <code>null</code>.
|
|
86
|
+
* @return an array of <code>NodeType</code> objects.
|
|
87
|
+
*/
|
|
88
|
+
getRequiredPrimaryTypes(): NodeType;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Returns the names of the required primary node types.
|
|
92
|
+
* <p>
|
|
93
|
+
* If this <code>NodeDefinition</code> is acquired from a live
|
|
94
|
+
* <code>NodeType</code> this list will reflect the node types returned by
|
|
95
|
+
* <code>getRequiredPrimaryTypes</code>, above.
|
|
96
|
+
* <p>
|
|
97
|
+
* If this <code>NodeDefinition</code> is actually a
|
|
98
|
+
* <code>NodeDefinitionTemplate</code> that is not part of a registered node
|
|
99
|
+
* type, then this method will return the required primary types as set in
|
|
100
|
+
* that template. If that template is a newly-created empty one, then this
|
|
101
|
+
* method will return <code>null</code>.
|
|
102
|
+
* @return a String array
|
|
103
|
+
* @since JCR 2.0
|
|
104
|
+
*/
|
|
105
|
+
getRequiredPrimaryTypeNames(): string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Gets the default primary node type that will be assigned to the child
|
|
109
|
+
* node if it is created without an explicitly specified primary node type.
|
|
110
|
+
* This node type must be a subtype of (or the same type as) the node types
|
|
111
|
+
* returned by <code>getRequiredPrimaryTypes</code>.
|
|
112
|
+
* <p>
|
|
113
|
+
* If <code>null</code> is returned this indicates that no default primary
|
|
114
|
+
* type is specified and that therefore an attempt to create this node
|
|
115
|
+
* without specifying a node type will throw a <code>ConstraintViolationException</code>.
|
|
116
|
+
* <p>
|
|
117
|
+
* In implementations that support node type registration an
|
|
118
|
+
* <code>NodeDefinition</code> object may be acquired (in the form of a
|
|
119
|
+
* <code>NodeDefinitionTemplate</code>) that is not attached to a live
|
|
120
|
+
* <code>NodeType</code>. In such cases this method returns
|
|
121
|
+
* <code>null</code>.
|
|
122
|
+
* @return a <code>NodeType</code>.
|
|
123
|
+
*/
|
|
124
|
+
getDefaultPrimaryType(): NodeType;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Returns the name of the default primary node type.
|
|
128
|
+
* <p>
|
|
129
|
+
* If this <code>NodeDefinition</code> is acquired from a live
|
|
130
|
+
* <code>NodeType</code> this list will reflect the NodeType returned by
|
|
131
|
+
* getDefaultPrimaryType, above.
|
|
132
|
+
* <p>
|
|
133
|
+
* If this <code>NodeDefinition</code> is actually a
|
|
134
|
+
* <code>NodeDefinitionTemplate</code> that is not part of a registered node
|
|
135
|
+
* type, then this method will return the required primary types as set in
|
|
136
|
+
* that template. If that template is a newly-created empty one, then this
|
|
137
|
+
* method will return <code>null</code>.
|
|
138
|
+
* @return a String
|
|
139
|
+
* @since JCR 2.0
|
|
140
|
+
*/
|
|
141
|
+
getDefaultPrimaryTypeName(): string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Reports whether this child node can have same-name siblings. In other
|
|
145
|
+
* words, whether the parent node can have more than one child node of this
|
|
146
|
+
* name.
|
|
147
|
+
* <p>
|
|
148
|
+
* If this <code>NodeDefinition</code> is actually a
|
|
149
|
+
* <code>NodeDefinitionTemplate</code> that is not part of a registered node
|
|
150
|
+
* type, then this method will return the same name siblings status as set
|
|
151
|
+
* in that template. If that template is a newly-created empty one, then
|
|
152
|
+
* this method will return <code>false</code>.
|
|
153
|
+
* @return a boolean.
|
|
154
|
+
*/
|
|
155
|
+
allowsSameNameSiblings(): boolean;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export default NodeDefinition;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The <code>NodeDefinitionTemplate</code> interface extends
|
|
3
|
+
* <code>NodeDefinition</code> with the addition of write methods, enabling the
|
|
4
|
+
* characteristics of a child node definition to be set, after which the
|
|
5
|
+
* <code>NodeDefinitionTemplate</code> is added to a <code>NodeTypeTemplate</code>.
|
|
6
|
+
* <p>
|
|
7
|
+
* See the corresponding <code>get</code> methods for each attribute in
|
|
8
|
+
* <code>NodeDefinition</code> for the default values assumed when a new empty
|
|
9
|
+
* <code>NodeDefinitionTemplate</code> is created (as opposed to one extracted
|
|
10
|
+
* from an existing <code>NodeType</code>).
|
|
11
|
+
*
|
|
12
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Sets the name of the node. This must be a JCR name in either
|
|
13
|
+
* qualified or expanded form.Sets the auto-create status of the node.Sets the mandatory status of the node.Sets the on-parent-version status of the node.Sets the protected status of the node.Sets the names of the required primary types of this node.
|
|
14
|
+
* These must be a JCR names in either qualified or expanded form.Sets the name of the default primary type of this node.
|
|
15
|
+
* This must be a JCR name in either qualified or expanded form.Sets the same-name sibling status of this node.
|
|
16
|
+
* @since JCR 2.0
|
|
17
|
+
*/
|
|
18
|
+
interface NodeDefinitionTemplate {
|
|
19
|
+
/**
|
|
20
|
+
* Sets the name of the node. This must be a JCR name in either
|
|
21
|
+
* qualified or expanded form.
|
|
22
|
+
* @param name a JCR name.
|
|
23
|
+
* @throws ConstraintViolationException if <code>name</code> is not a syntactically valid JCR name in either qualified or expanded form.
|
|
24
|
+
*/
|
|
25
|
+
setName(name: string): void;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Sets the auto-create status of the node.
|
|
29
|
+
* @param autoCreated a <code>boolean</code>.
|
|
30
|
+
*/
|
|
31
|
+
setAutoCreated(autoCreated: boolean): void;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Sets the mandatory status of the node.
|
|
35
|
+
* @param mandatory a <code>boolean</code>.
|
|
36
|
+
*/
|
|
37
|
+
setMandatory(mandatory: boolean): void;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Sets the on-parent-version status of the node.
|
|
41
|
+
* @param opv an <code>int</code> constant member of <code>OnParentVersionAction</code>.
|
|
42
|
+
*/
|
|
43
|
+
setOnParentVersion(opv: number): void;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Sets the protected status of the node.
|
|
47
|
+
* @param protectedStatus a <code>boolean</code>.
|
|
48
|
+
*/
|
|
49
|
+
setProtected(protectedStatus: boolean): void;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Sets the names of the required primary types of this node.
|
|
53
|
+
* These must be a JCR names in either qualified or expanded form.
|
|
54
|
+
* @param names an array of JCR names.
|
|
55
|
+
* @throws ConstraintViolationException if <code>names</code> includes a name that is not a syntactically valid JCR name in either qualified or expanded form.
|
|
56
|
+
*/
|
|
57
|
+
setRequiredPrimaryTypeNames(names: string): void;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Sets the name of the default primary type of this node.
|
|
61
|
+
* This must be a JCR name in either qualified or expanded form.
|
|
62
|
+
* @param name a JCR name.
|
|
63
|
+
* @throws ConstraintViolationException if <code>name</code> is not a syntactically valid JCR name in either qualified or expanded form.
|
|
64
|
+
*/
|
|
65
|
+
setDefaultPrimaryTypeName(name: string): void;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Sets the same-name sibling status of this node.
|
|
69
|
+
* @param allowSameNameSiblings a <code>boolean</code>.
|
|
70
|
+
*/
|
|
71
|
+
setSameNameSiblings(allowSameNameSiblings: boolean): void;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export default NodeDefinitionTemplate;
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import NodeTypeIterator from "../NodeTypeIterator";
|
|
2
|
+
import PropertyDefinition from "../PropertyDefinition";
|
|
3
|
+
import NodeDefinition from "../NodeDefinition";
|
|
4
|
+
import Value from "../../Value";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A <code>NodeType</code> object represents a "live" node type that is
|
|
8
|
+
* registered in the repository.Returns all supertypes of this node type in the node type inheritance
|
|
9
|
+
* hierarchy. For primary types apart from <code>nt:base</code>, this list
|
|
10
|
+
* will always include at least <code>nt:base</code>. For mixin types, there
|
|
11
|
+
* is no required supertype.
|
|
12
|
+
*
|
|
13
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns the <i>direct</i> supertypes of this node type in the node type
|
|
14
|
+
* inheritance hierarchy, that is, those actually declared in this node
|
|
15
|
+
* type. In single-inheritance systems, this will always be an array of size
|
|
16
|
+
* 0 or 1. In systems that support multiple inheritance of node types this
|
|
17
|
+
* array may be of size greater than 1.
|
|
18
|
+
*
|
|
19
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns all subtypes of this node type in the node type inheritance
|
|
20
|
+
* hierarchy.
|
|
21
|
+
*
|
|
22
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns the <i>direct</i> subtypes of this node type in the node type
|
|
23
|
+
* inheritance hierarchy, that is, those which actually declared this node
|
|
24
|
+
* type in their list of supertypes.
|
|
25
|
+
*
|
|
26
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns <code>true</code> if the name of <i>this</i> node type or any of
|
|
27
|
+
* its direct or indirect supertypes is equal to <code>nodeTypeName</code>,
|
|
28
|
+
* otherwise returns <code>false</code>.Returns an array containing the property definitions of this node type.
|
|
29
|
+
* This includes both those property definitions actually declared in this
|
|
30
|
+
* node type and those inherited from the supertypes of this type.
|
|
31
|
+
*
|
|
32
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns an array containing the child node definitions of this node type.
|
|
33
|
+
* This includes both those child node definitions actually declared in this
|
|
34
|
+
* node type and those inherited from the supertypes of this node type.
|
|
35
|
+
*
|
|
36
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns <code>true</code> if setting <code>propertyName</code> to
|
|
37
|
+
* <code>value</code> is allowed by this node type. Otherwise returns
|
|
38
|
+
* <code>false</code>.
|
|
39
|
+
*
|
|
40
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns <code>true</code> if setting <code>propertyName</code> to
|
|
41
|
+
* <code>values</code> is allowed by this node type. Otherwise returns
|
|
42
|
+
* <code>false</code>.
|
|
43
|
+
*
|
|
44
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns <code>true</code> if this node type allows the addition of a
|
|
45
|
+
* child node called <code>childNodeName</code> without specific node type
|
|
46
|
+
* information (that is, given the definition of this parent node type, the
|
|
47
|
+
* child node name is sufficient to determine the intended child node type).
|
|
48
|
+
* Returns <code>false</code> otherwise.
|
|
49
|
+
*
|
|
50
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns <code>true</code> if this node type allows the addition of a
|
|
51
|
+
* child node called <code>childNodeName</code> of node type
|
|
52
|
+
* <code>nodeTypeName</code>. Returns <code>false</code> otherwise.
|
|
53
|
+
*
|
|
54
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns <code>true</code> if removing the child item called
|
|
55
|
+
* <code>itemName</code> is allowed by this node type. Returns
|
|
56
|
+
* <code>false</code> otherwise.
|
|
57
|
+
*
|
|
58
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns <code>true</code> if removing the child node called
|
|
59
|
+
* <code>nodeName</code> is allowed by this node type. Returns
|
|
60
|
+
* <code>false</code> otherwise.
|
|
61
|
+
*
|
|
62
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>Returns <code>true</code> if removing the property called
|
|
63
|
+
* <code>propertyName</code> is allowed by this node type. Returns
|
|
64
|
+
* <code>false</code> otherwise.
|
|
65
|
+
*
|
|
66
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>A constant for the node type name <code>nt:base</code> (in expanded
|
|
67
|
+
* form). Constants for the names of the properties declared by
|
|
68
|
+
* <code>nt:base</code> are: <ul> <li>{@link javax.jcr.Property#JCR_PRIMARY_TYPE}</li>
|
|
69
|
+
* <li>{@link javax.jcr.Property#JCR_MIXIN_TYPES}</li> </ul>A constant for the node type name <code>nt:hierarchyNode</code> (in
|
|
70
|
+
* expanded form).A constant for the node type name <code>nt:folder</code> (in expanded
|
|
71
|
+
* form).A constant for the node type name <code>nt:file</code> (in expanded
|
|
72
|
+
* form). A constant for the name of the child node declared by
|
|
73
|
+
* <code>nt:file</code> is: <ul> <li>{@link javax.jcr.Node#JCR_CONTENT}</li>
|
|
74
|
+
* </ul>A constant for the node type name <code>nt:linkedFile</code> (in expanded
|
|
75
|
+
* form). A constant for the name of the property declared by
|
|
76
|
+
* <code>nt:linkedFile</code> is: <ul> <li>{@link javax.jcr.Property#JCR_CONTENT}</li>
|
|
77
|
+
* </ul>A constant for the node type name <code>nt:resource</code> (in expanded
|
|
78
|
+
* form). A constant for the name of the property declared by
|
|
79
|
+
* <code>nt:resource</code> is: <ul> <li>{@link javax.jcr.Property#JCR_DATA}</li>
|
|
80
|
+
* </ul>A constant for the node type name <code>nt:unstructured</code> (in
|
|
81
|
+
* expanded form).A constant for the node type name <code>nt:address</code> (in expanded
|
|
82
|
+
* form). Constants for the names of the properties declared by
|
|
83
|
+
* <code>nt:base</code> are: <ul> <li>{@link javax.jcr.Property#JCR_PROTOCOL}</li>
|
|
84
|
+
* <li>{@link javax.jcr.Property#JCR_HOST}</li> <li>{@link
|
|
85
|
+
* javax.jcr.Property#JCR_PORT}</li> <li>{@link javax.jcr.Property#JCR_REPOSITORY}</li>
|
|
86
|
+
* <li>{@link javax.jcr.Property#JCR_WORKSPACE}</li> <li>{@link
|
|
87
|
+
* javax.jcr.Property#JCR_PATH}</li> <li>{@link javax.jcr.Property#JCR_ID}</li>
|
|
88
|
+
* </ul>A constant for the node type name <code>mix:referenceable</code> (in
|
|
89
|
+
* expanded form). A constant for the name of the property declared by
|
|
90
|
+
* <code>mix:referenceable</code> is: <ul> <li>{@link
|
|
91
|
+
* javax.jcr.Property#JCR_UUID}</li> </ul>A constant for the node type name <code>mix:title</code> (in expanded
|
|
92
|
+
* form). Constants for the names of the properties declared by
|
|
93
|
+
* <code>mix:title</code> are: <ul> <li>{@link javax.jcr.Property#JCR_TITLE}</li>
|
|
94
|
+
* <li>{@link javax.jcr.Property#JCR_DESCRIPTION}</li> </ul>A constant for the node type name <code>mix:created</code> (in expanded
|
|
95
|
+
* form). Constants for the names of the properties declared by
|
|
96
|
+
* <code>mix:created</code> are: <ul> <li>{@link javax.jcr.Property#JCR_CREATED}</li>
|
|
97
|
+
* <li>{@link javax.jcr.Property#JCR_CREATED_BY}</li> </ul>A constant for the node type name <code>mix:lastModified</code> (in
|
|
98
|
+
* expanded form). Constants for the names of the properties declared by
|
|
99
|
+
* <code>mix:lastModified</code> are: <ul> <li>{@link
|
|
100
|
+
* javax.jcr.Property#JCR_LAST_MODIFIED}</li> <li>{@link
|
|
101
|
+
* javax.jcr.Property#JCR_LAST_MODIFIED_BY}</li> </ul>A constant for the node type name <code>mix:language</code> (in expanded
|
|
102
|
+
* form). A constant for the name of the property declared by
|
|
103
|
+
* <code>mix:language</code> is: <ul> <li>{@link javax.jcr.Property#JCR_LANGUAGE}</li>
|
|
104
|
+
* </ul>A constant for the node type name <code>mix:mimeType</code> (in expanded
|
|
105
|
+
* form). Constants for the names of the properties declared by
|
|
106
|
+
* <code>mix:mimeType</code> are: <ul> <li>{@link javax.jcr.Property#JCR_MIMETYPE}</li>
|
|
107
|
+
* <li>{@link javax.jcr.Property#JCR_ENCODING}</li> </ul>A constant for the node type name <code>nt:nodeType</code> (in expanded
|
|
108
|
+
* form). Constants for the names of the child items declared by
|
|
109
|
+
* <code>nt:nodeType</code> are: <ul> <li>{@link javax.jcr.Property#JCR_NODE_TYPE_NAME}</li>
|
|
110
|
+
* <li>{@link javax.jcr.Property#JCR_SUPERTYPES}</li> <li>{@link
|
|
111
|
+
* javax.jcr.Property#JCR_IS_ABSTRACT}</li> <li>{@link
|
|
112
|
+
* javax.jcr.Property#JCR_IS_MIXIN}</li> <li>{@link javax.jcr.Property#JCR_HAS_ORDERABLE_CHILD_NODES}</li>
|
|
113
|
+
* <li>{@link javax.jcr.Property#JCR_PRIMARY_ITEM_NAME}</li> <li>{@link
|
|
114
|
+
* javax.jcr.Node#JCR_PROPERTY_DEFINITION}</li> <li>{@link
|
|
115
|
+
* javax.jcr.Node#JCR_CHILD_NODE_DEFINITION}</li> </ul>A constant for the node type name <code>nt:propertyDefinition</code> (in
|
|
116
|
+
* expanded form). Constants for the names of the properties declared by
|
|
117
|
+
* <code>nt:propertyDefinition</code> are: <ul> <li>{@link
|
|
118
|
+
* javax.jcr.Property#JCR_NAME}</li> <li>{@link javax.jcr.Property#JCR_AUTOCREATED}</li>
|
|
119
|
+
* <li>{@link javax.jcr.Property#JCR_MANDATORY}</li> <li>{@link
|
|
120
|
+
* javax.jcr.Property#JCR_PROTECTED}</li> <li>{@link
|
|
121
|
+
* javax.jcr.Property#JCR_ON_PARENT_VERSION}</li> <li>{@link
|
|
122
|
+
* javax.jcr.Property#JCR_REQUIRED_TYPE}</li> <li>{@link
|
|
123
|
+
* javax.jcr.Property#JCR_VALUE_CONSTRAINTS}</li> <li>{@link
|
|
124
|
+
* javax.jcr.Property#JCR_DEFAULT_VALUES}</li> <li>{@link
|
|
125
|
+
* javax.jcr.Property#JCR_MULTIPLE}</li> </ul>A constant for the node type name <code>nt:childNodeDefinition</code> (in
|
|
126
|
+
* expanded form). Constants for the names of the properties declared by
|
|
127
|
+
* <code>nt:childNodeDefinition</code> are: <ul> <li>{@link
|
|
128
|
+
* javax.jcr.Property#JCR_NAME}</li> <li>{@link javax.jcr.Property#JCR_AUTOCREATED}</li>
|
|
129
|
+
* <li>{@link javax.jcr.Property#JCR_MANDATORY}</li> <li>{@link
|
|
130
|
+
* javax.jcr.Property#JCR_PROTECTED}</li> <li>{@link
|
|
131
|
+
* javax.jcr.Property#JCR_ON_PARENT_VERSION}</li> <li>{@link
|
|
132
|
+
* javax.jcr.Property#JCR_REQUIRED_PRIMARY_TYPES}</li> <li>{@link
|
|
133
|
+
* javax.jcr.Property#JCR_DEFAULT_PRIMARY_TYPE}</li> <li>{@link
|
|
134
|
+
* javax.jcr.Property#JCR_SAME_NAME_SIBLINGS}</li> </ul>A constant for the node type name <code>mix:shareable</code> (in expanded
|
|
135
|
+
* form).A constant for the node type name <code>mix:lockable</code> (in expanded
|
|
136
|
+
* form). Constants for the names of the properties declared by
|
|
137
|
+
* <code>mix:lockable</code> are: <ul> <li>{@link javax.jcr.Property#JCR_LOCK_OWNER}</li>
|
|
138
|
+
* <li>{@link javax.jcr.Property#JCR_LOCK_IS_DEEP}</li> </ul>A constant for the node type name <code>mix:lifecycle</code> (in expanded
|
|
139
|
+
* form). Constants for the names of the properties declared by
|
|
140
|
+
* <code>mix:lifecycle</code> are: <ul> <li>{@link javax.jcr.Property#JCR_LIFECYCLE_POLICY}</li>
|
|
141
|
+
* <li>{@link javax.jcr.Property#JCR_CURRENT_LIFECYCLE_STATE}</li> </ul>A constant for the node type name <code>mix:simpleVersionable</code> (in
|
|
142
|
+
* expanded form). A constant for the name of the property declared by
|
|
143
|
+
* <code>mix:simpleVersionable</code> is: <ul> <li>{@link
|
|
144
|
+
* javax.jcr.Property#JCR_IS_CHECKED_OUT}</li> </ul>A constant for the node type name <code>mix:versionable</code> (in
|
|
145
|
+
* expanded form). Constants for the names of the properties declared by
|
|
146
|
+
* <code>mix:versionable</code> are: <ul> <li>{@link
|
|
147
|
+
* javax.jcr.Property#JCR_VERSION_HISTORY}</li> <li>{@link
|
|
148
|
+
* javax.jcr.Property#JCR_BASE_VERSION}</li> <li>{@link
|
|
149
|
+
* javax.jcr.Property#JCR_PREDECESSORS}</li> <li>{@link
|
|
150
|
+
* javax.jcr.Property#JCR_MERGE_FAILED}</li> <li>{@link
|
|
151
|
+
* javax.jcr.Property#JCR_ACTIVITY}</li> <li>{@link javax.jcr.Property#JCR_CONFIGURATION}</li>
|
|
152
|
+
* </ul>A constant for the node type name <code>nt:versionHistory</code> (in
|
|
153
|
+
* expanded form). Constants for the names of the child items declared by
|
|
154
|
+
* <code>nt:versionHistory</code> are: <ul> <li>{@link
|
|
155
|
+
* javax.jcr.Property#JCR_VERSIONABLE_UUID}</li> <li>{@link
|
|
156
|
+
* javax.jcr.Property#JCR_COPIED_FROM}</li> <li>{@link
|
|
157
|
+
* javax.jcr.Node#JCR_ROOT_VERSION}</li> <li>{@link javax.jcr.Node#JCR_VERSION_LABELS}</li>
|
|
158
|
+
* </ul>A constant for the node type name <code>nt:version</code> (in expanded
|
|
159
|
+
* form). Constants for the names of the child items declared by
|
|
160
|
+
* <code>nt:version</code> are: <ul> <li>{@link javax.jcr.Property#JCR_CREATED}</li>
|
|
161
|
+
* <li>{@link javax.jcr.Property#JCR_PREDECESSORS}</li> <li>{@link
|
|
162
|
+
* javax.jcr.Property#JCR_SUCCESSORS}</li> <li>{@link
|
|
163
|
+
* javax.jcr.Property#JCR_ACTIVITY}</li> <li>{@link javax.jcr.Node#JCR_FROZEN_NODE}</li>
|
|
164
|
+
* </ul>A constant for the node type name <code>nt:frozenNode</code> (in expanded
|
|
165
|
+
* form). Constants for the names of the properties declared by
|
|
166
|
+
* <code>nt:frozenNode</code> are: <ul> <li>{@link javax.jcr.Property#JCR_FROZEN_PRIMARY_TYPE}</li>
|
|
167
|
+
* <li>{@link javax.jcr.Property#JCR_FROZEN_MIXIN_TYPES}</li> <li>{@link
|
|
168
|
+
* javax.jcr.Property#JCR_FROZEN_UUID}</li> </ul>A constant for the node type name <code>nt:versionedChild</code> (in
|
|
169
|
+
* expanded form). A constant for the name of the property declared by
|
|
170
|
+
* <code>nt:versionedChild</code> is: <ul> <li>{@link
|
|
171
|
+
* javax.jcr.Property#JCR_CHILD_VERSION_HISTORY}</li> </ul>A constant for the node type name <code>nt:activity</code> (in expanded
|
|
172
|
+
* form). A constant for the name of the property declared by
|
|
173
|
+
* <code>nt:activity</code> is: <ul> <li>{@link javax.jcr.Property#JCR_TITLE}</li>
|
|
174
|
+
* </ul>A constant for the node type name <code>nt:configuration</code> (in
|
|
175
|
+
* expanded form). A constant for the name of the property declared by
|
|
176
|
+
* <code>nt:configuration</code> are: <ul> <li>{@link
|
|
177
|
+
* javax.jcr.Property#JCR_ROOT}</li> </ul>A constant for the node type name <code>nt:query</code> (in expanded
|
|
178
|
+
* form). Constants for the names of the properties declared by
|
|
179
|
+
* <code>nt:query</code> are: <ul> <li>{@link javax.jcr.Property#JCR_STATEMENT}</li>
|
|
180
|
+
* <li>{@link javax.jcr.Property#JCR_LANGUAGE}</li> </ul>
|
|
181
|
+
|
|
182
|
+
*/
|
|
183
|
+
interface NodeType {
|
|
184
|
+
/**
|
|
185
|
+
* Returns all supertypes of this node type in the node type inheritance
|
|
186
|
+
* hierarchy. For primary types apart from <code>nt:base</code>, this list
|
|
187
|
+
* will always include at least <code>nt:base</code>. For mixin types, there
|
|
188
|
+
* is no required supertype.
|
|
189
|
+
*
|
|
190
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
191
|
+
* @return an array of <code>NodeType</code> objects.
|
|
192
|
+
* @see #getDeclaredSupertypes
|
|
193
|
+
*/
|
|
194
|
+
getSupertypes(): NodeType;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Returns the <i>direct</i> supertypes of this node type in the node type
|
|
198
|
+
* inheritance hierarchy, that is, those actually declared in this node
|
|
199
|
+
* type. In single-inheritance systems, this will always be an array of size
|
|
200
|
+
* 0 or 1. In systems that support multiple inheritance of node types this
|
|
201
|
+
* array may be of size greater than 1.
|
|
202
|
+
*
|
|
203
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
204
|
+
* @return an array of <code>NodeType</code> objects.
|
|
205
|
+
* @see #getSupertypes
|
|
206
|
+
*/
|
|
207
|
+
getDeclaredSupertypes(): NodeType;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Returns all subtypes of this node type in the node type inheritance
|
|
211
|
+
* hierarchy.
|
|
212
|
+
*
|
|
213
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
214
|
+
* @return a <code>NodeTypeIterator</code>.
|
|
215
|
+
* @see #getDeclaredSubtypes
|
|
216
|
+
* @since JCR 2.0
|
|
217
|
+
*/
|
|
218
|
+
getSubtypes(): NodeTypeIterator;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Returns the <i>direct</i> subtypes of this node type in the node type
|
|
222
|
+
* inheritance hierarchy, that is, those which actually declared this node
|
|
223
|
+
* type in their list of supertypes.
|
|
224
|
+
*
|
|
225
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
226
|
+
* @return an <code>NodeTypeIterator</code>.
|
|
227
|
+
* @see #getSubtypes
|
|
228
|
+
* @since JCR 2.0
|
|
229
|
+
*/
|
|
230
|
+
getDeclaredSubtypes(): NodeTypeIterator;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Returns <code>true</code> if the name of <i>this</i> node type or any of
|
|
234
|
+
* its direct or indirect supertypes is equal to <code>nodeTypeName</code>,
|
|
235
|
+
* otherwise returns <code>false</code>.
|
|
236
|
+
* @param nodeTypeName the name of a node type.
|
|
237
|
+
* @return a boolean
|
|
238
|
+
*/
|
|
239
|
+
isNodeType(nodeTypeName: string): boolean;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Returns an array containing the property definitions of this node type.
|
|
243
|
+
* This includes both those property definitions actually declared in this
|
|
244
|
+
* node type and those inherited from the supertypes of this type.
|
|
245
|
+
*
|
|
246
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
247
|
+
* @return an array containing the property definitions.
|
|
248
|
+
* @see #getDeclaredPropertyDefinitions()
|
|
249
|
+
*/
|
|
250
|
+
getPropertyDefinitions(): PropertyDefinition;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Returns an array containing the child node definitions of this node type.
|
|
254
|
+
* This includes both those child node definitions actually declared in this
|
|
255
|
+
* node type and those inherited from the supertypes of this node type.
|
|
256
|
+
*
|
|
257
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
258
|
+
* @return an array containing the child node definitions.
|
|
259
|
+
* @see #getDeclaredChildNodeDefinitions()
|
|
260
|
+
*/
|
|
261
|
+
getChildNodeDefinitions(): NodeDefinition;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Returns <code>true</code> if setting <code>propertyName</code> to
|
|
265
|
+
* <code>value</code> is allowed by this node type. Otherwise returns
|
|
266
|
+
* <code>false</code>.
|
|
267
|
+
*
|
|
268
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
269
|
+
* @param propertyName The name of the property
|
|
270
|
+
* @param value A <code>Value</code> object.
|
|
271
|
+
* @return a boolean
|
|
272
|
+
*/
|
|
273
|
+
canSetProperty(propertyName: string, value: Value): boolean;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Returns <code>true</code> if setting <code>propertyName</code> to
|
|
277
|
+
* <code>values</code> is allowed by this node type. Otherwise returns
|
|
278
|
+
* <code>false</code>.
|
|
279
|
+
*
|
|
280
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
281
|
+
* @param propertyName The name of the property
|
|
282
|
+
* @param values A <code>Value</code> array.
|
|
283
|
+
* @return a boolean
|
|
284
|
+
*/
|
|
285
|
+
canSetProperty(propertyName: string, values: Value): boolean;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Returns <code>true</code> if this node type allows the addition of a
|
|
289
|
+
* child node called <code>childNodeName</code> without specific node type
|
|
290
|
+
* information (that is, given the definition of this parent node type, the
|
|
291
|
+
* child node name is sufficient to determine the intended child node type).
|
|
292
|
+
* Returns <code>false</code> otherwise.
|
|
293
|
+
*
|
|
294
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
295
|
+
* @param childNodeName The name of the child node.
|
|
296
|
+
* @return a boolean
|
|
297
|
+
*/
|
|
298
|
+
canAddChildNode(childNodeName: string): boolean;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Returns <code>true</code> if this node type allows the addition of a
|
|
302
|
+
* child node called <code>childNodeName</code> of node type
|
|
303
|
+
* <code>nodeTypeName</code>. Returns <code>false</code> otherwise.
|
|
304
|
+
*
|
|
305
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
306
|
+
* @param childNodeName The name of the child node.
|
|
307
|
+
* @param nodeTypeName The name of the node type of the child node.
|
|
308
|
+
* @return a boolean
|
|
309
|
+
*/
|
|
310
|
+
canAddChildNode(childNodeName: string, nodeTypeName: string): boolean;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Returns <code>true</code> if removing the child item called
|
|
314
|
+
* <code>itemName</code> is allowed by this node type. Returns
|
|
315
|
+
* <code>false</code> otherwise.
|
|
316
|
+
*
|
|
317
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
318
|
+
* @param itemName The name of the child item
|
|
319
|
+
* @return a boolean
|
|
320
|
+
* @deprecated As of JCR 2.0, clients should use {@link #canRemoveNode(String)} and {@link #canRemoveProperty(String)} instead.
|
|
321
|
+
*/
|
|
322
|
+
canRemoveItem(itemName: string): boolean;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Returns <code>true</code> if removing the child node called
|
|
326
|
+
* <code>nodeName</code> is allowed by this node type. Returns
|
|
327
|
+
* <code>false</code> otherwise.
|
|
328
|
+
*
|
|
329
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
330
|
+
* @param nodeName The name of the child node
|
|
331
|
+
* @return a boolean
|
|
332
|
+
* @since JCR 2.0
|
|
333
|
+
*/
|
|
334
|
+
canRemoveNode(nodeName: string): boolean;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Returns <code>true</code> if removing the property called
|
|
338
|
+
* <code>propertyName</code> is allowed by this node type. Returns
|
|
339
|
+
* <code>false</code> otherwise.
|
|
340
|
+
*
|
|
341
|
+
* <p><strong>Sitevision note:</strong> Unsupported operation</p>
|
|
342
|
+
* @param propertyName The name of the property
|
|
343
|
+
* @return a boolean
|
|
344
|
+
* @since JCR 2.0
|
|
345
|
+
*/
|
|
346
|
+
canRemoveProperty(propertyName: string): boolean;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export default NodeType;
|