@sitevision/api 2.0.0-alpha.1 → 2.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +8 -0
- package/package.json +1 -1
- package/server/AliasUtil/index.d.ts +13 -11
- package/server/ArchiveUtil/index.d.ts +45 -43
- package/server/ArraysInstance/index.d.ts +1667 -1808
- package/server/ArticleUtil/index.d.ts +294 -226
- package/server/AuthenticationUtil/index.d.ts +73 -85
- package/server/BookmarkUtil/index.d.ts +76 -81
- package/server/BuddyIconRenderer/index.d.ts +124 -132
- package/server/BuddyIconRenderer.BuddyIconSize/index.d.ts +41 -0
- package/server/BuddyIconRenderer.BuddyIconSize/index.js +25 -0
- package/server/ClientUtil/index.d.ts +11 -9
- package/server/CollaborationFactory/index.d.ts +37 -40
- package/server/CollaborationGroupFolderUtil/index.d.ts +30 -28
- package/server/CollaborationGroupState/index.d.ts +27 -0
- package/server/CollaborationGroupState/index.js +11 -0
- package/server/CollaborationGroupTemplateUtil/index.d.ts +48 -50
- package/server/CollaborationGroupType/index.d.ts +28 -0
- package/server/CollaborationGroupType/index.js +12 -0
- package/server/CollaborationGroupUtil/index.d.ts +86 -82
- package/server/CollectionsInstance/index.d.ts +642 -705
- package/server/ColorUtil/index.d.ts +36 -37
- package/server/CompoundAndFilterBuilder/index.d.ts +31 -29
- package/server/CompoundComparatorBuilder/index.d.ts +35 -33
- package/server/CompoundOrFilterBuilder/index.d.ts +31 -29
- package/server/ContentNodeUtil/index.d.ts +36 -34
- package/server/CurrencyFactory/index.d.ts +72 -70
- package/server/DateUtil/index.d.ts +132 -142
- package/server/DecorationUtil/index.d.ts +13 -11
- package/server/DeviceUtil/index.d.ts +21 -19
- package/server/DimensionMode/index.d.ts +17 -0
- package/server/DimensionMode/index.js +12 -0
- package/server/DirectoryUtil/index.d.ts +90 -88
- package/server/DocType/index.d.ts +30 -0
- package/server/DocType/index.js +14 -0
- package/server/DocTypeUtil/index.d.ts +129 -135
- package/server/EndecUtil/index.d.ts +330 -347
- package/server/ExtendedDismaxParserBuilder/index.d.ts +156 -170
- package/server/FileIconRenderer/index.d.ts +153 -172
- package/server/FileUtil/index.d.ts +274 -300
- package/server/FilterBuilder/index.d.ts +42 -40
- package/server/FolderUtil/index.d.ts +93 -94
- package/server/FontUtil/index.d.ts +36 -37
- package/server/FormatterBuilderFactory/index.d.ts +76 -84
- package/server/HighlightBuilder/index.d.ts +79 -86
- package/server/IconUtil/index.d.ts +27 -25
- package/server/ImageLinkRenderer/index.d.ts +34 -32
- package/server/ImageRenderer/index.d.ts +343 -379
- package/server/ImageUtil/index.d.ts +247 -265
- package/server/IndexUtil/index.d.ts +40 -37
- package/server/IndexUtil.IndexType/index.d.ts +29 -0
- package/server/IndexUtil.IndexType/index.js +13 -0
- package/server/IndexingUtil/index.d.ts +69 -47
- package/server/InstanceCreatorUtil/index.d.ts +421 -457
- package/server/InstanceTypeUtil/index.d.ts +168 -189
- package/server/JwtUtil/index.d.ts +131 -129
- package/server/LandingPageUtil/index.d.ts +84 -87
- package/server/LandingPageUtil/index.js +1 -0
- package/server/LinkPageUtil/index.d.ts +297 -251
- package/server/LinkRenderer/index.d.ts +651 -715
- package/server/LinkTargetBuilder/index.d.ts +69 -77
- package/server/LinkValueBuilder/index.d.ts +70 -77
- package/server/ListWrapper/index.d.ts +82 -91
- package/server/LocaleUtil/index.d.ts +382 -394
- package/server/LogUtil/index.d.ts +119 -128
- package/server/MailBuilder/index.d.ts +109 -124
- package/server/MailUtil/index.d.ts +58 -63
- package/server/MathInstance/index.d.ts +625 -657
- package/server/MessageDigesterFactory/index.d.ts +30 -28
- package/server/MetadataDefinitionUtil/index.d.ts +79 -83
- package/server/MetadataUtil/index.d.ts +322 -346
- package/server/MimeTypeUtil/index.d.ts +209 -215
- package/server/MonitorBuilder/index.d.ts +20 -20
- package/server/NodeComparatorUtil/index.d.ts +215 -225
- package/server/NodeFactoryUtil/index.d.ts +18 -16
- package/server/NodeFilterUtil/index.d.ts +652 -739
- package/server/NodeIteratorUtil/index.d.ts +214 -229
- package/server/NodeResolverUtil/index.d.ts +400 -406
- package/server/NodeTreeUtil/index.d.ts +214 -229
- package/server/NodeTypeUtil/index.d.ts +1432 -548
- package/server/OfflineVersionPropertyUtil/index.d.ts +8 -6
- package/server/OnlineVersionPropertyUtil/index.d.ts +8 -6
- package/server/OutputUtil/index.d.ts +385 -380
- package/server/PageUtil/index.d.ts +266 -188
- package/server/PermissionUtil/index.d.ts +393 -430
- package/server/PermissionUtil.Permission/index.d.ts +54 -0
- package/server/PermissionUtil.Permission/index.js +38 -0
- package/server/PortletContextUtil/index.d.ts +112 -107
- package/server/PortletUtil/index.d.ts +32 -22
- package/server/PrincipalUtil/index.d.ts +35 -33
- package/server/Properties/index.d.ts +69 -76
- package/server/PropertyUtil/index.d.ts +1422 -1464
- package/server/PublishingUtil/index.d.ts +248 -249
- package/server/QueryStringUtil/index.d.ts +404 -415
- package/server/RedirectUtil/index.d.ts +64 -68
- package/server/RelatedValueBuilder/index.d.ts +45 -43
- package/server/Requester/index.d.ts +125 -125
- package/server/ResourceLocatorUtil/index.d.ts +436 -476
- package/server/RestApi/index.d.ts +158 -138
- package/server/RestAppInvokerFactory/index.d.ts +28 -26
- package/server/RoleAssignmentBuilder/index.d.ts +39 -37
- package/server/RoleMatcherBuilder/index.d.ts +39 -37
- package/server/RoleUtil/index.d.ts +35 -37
- package/server/ScriptUtil/index.d.ts +458 -495
- package/server/SearchFactory/index.d.ts +90 -105
- package/server/SearchUtil/index.d.ts +75 -73
- package/server/SearcherBuilder/index.d.ts +117 -124
- package/server/Session/index.d.ts +261 -1103
- package/server/Session/index.js +1 -20
- package/server/SimpleUserUtil/index.d.ts +28 -29
- package/server/SiteCookieUtil/index.d.ts +152 -175
- package/server/SortBuilder/index.d.ts +27 -25
- package/server/SourceSetMode/index.d.ts +12 -0
- package/server/SourceSetMode/index.js +12 -0
- package/server/SpellCheckBuilder/index.d.ts +30 -30
- package/server/StandardParserBuilder/index.d.ts +36 -34
- package/server/StructureUtil/index.d.ts +85 -83
- package/server/SubscriberUtil/index.d.ts +60 -67
- package/server/SubscriptionUtil/index.d.ts +123 -130
- package/server/SystemUserUtil/index.d.ts +148 -146
- package/server/TagUtil/index.d.ts +115 -120
- package/server/TemplateUtil/index.d.ts +115 -120
- package/server/TemporaryFileNodeBuilder/index.d.ts +32 -30
- package/server/TemporaryNodeBuilder/index.d.ts +139 -177
- package/server/TextModuleRendererBuilder/index.d.ts +22 -20
- package/server/TimestampUtil/index.d.ts +103 -117
- package/server/TranslationUtil/index.d.ts +98 -104
- package/server/TrashcanUtil/index.d.ts +114 -117
- package/server/UserDataUtil/index.d.ts +110 -111
- package/server/UserFactory/index.d.ts +47 -54
- package/server/UserFieldRenderer/index.d.ts +120 -128
- package/server/UserIdentityUtil/index.d.ts +38 -36
- package/server/UserUtil/index.d.ts +32 -30
- package/server/Utils/index.d.ts +634 -723
- package/server/VelocityRenderer/index.d.ts +96 -94
- package/server/VersionUtil/index.d.ts +25 -9
- package/server/WebContentUtil/index.d.ts +277 -284
- package/server/WebResourceFactory/index.d.ts +41 -46
- package/server/XSLTUtil/index.d.ts +34 -32
- package/server/XmlParserUtil/index.d.ts +50 -48
- package/types/javax/jcr/Binary/index.d.ts +3 -21
- package/types/javax/jcr/Binary/index.js +0 -1
- package/types/javax/jcr/Credentials/index.d.ts +3 -1
- package/types/javax/jcr/ImportUUIDBehavior/index.d.ts +27 -1
- package/types/javax/jcr/Item/index.d.ts +6 -119
- package/types/javax/jcr/Item/index.js +0 -6
- package/types/javax/jcr/ItemVisitor/index.d.ts +5 -3
- package/types/javax/jcr/NamespaceRegistry/index.d.ts +69 -43
- package/types/javax/jcr/NamespaceRegistry/index.js +0 -2
- package/types/javax/jcr/Node/index.d.ts +37 -1506
- package/types/javax/jcr/Node/index.js +1 -34
- package/types/javax/jcr/NodeIterator/index.d.ts +5 -3
- package/types/javax/jcr/Property/index.d.ts +494 -494
- package/types/javax/jcr/Property/index.js +0 -5
- package/types/javax/jcr/PropertyIterator/index.d.ts +5 -3
- package/types/javax/jcr/RangeIterator/index.d.ts +2 -42
- package/types/javax/jcr/RangeIterator/index.js +1 -5
- package/types/javax/jcr/Repository/index.d.ts +465 -263
- package/types/javax/jcr/Repository/index.js +0 -4
- package/types/javax/jcr/RepositoryFactory/index.d.ts +4 -2
- package/types/javax/jcr/Value/index.d.ts +4 -31
- package/types/javax/jcr/Value/index.js +0 -2
- package/types/javax/jcr/ValueFactory/index.d.ts +6 -74
- package/types/javax/jcr/ValueFactory/index.js +1 -2
- package/types/javax/jcr/Workspace/index.d.ts +103 -577
- package/types/javax/jcr/Workspace/index.js +1 -12
- package/types/javax/jcr/lock/Lock/index.d.ts +4 -2
- package/types/javax/jcr/lock/LockManager/index.d.ts +4 -2
- package/types/javax/jcr/nodetype/ItemDefinition/index.d.ts +4 -105
- package/types/javax/jcr/nodetype/ItemDefinition/index.js +0 -5
- package/types/javax/jcr/nodetype/NodeDefinition/index.d.ts +5 -3
- package/types/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +4 -2
- package/types/javax/jcr/nodetype/NodeType/index.d.ts +262 -269
- package/types/javax/jcr/nodetype/NodeType/index.js +1 -12
- package/types/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +5 -107
- package/types/javax/jcr/nodetype/NodeTypeDefinition/index.js +1 -7
- package/types/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +5 -3
- package/types/javax/jcr/nodetype/NodeTypeManager/index.d.ts +9 -130
- package/types/javax/jcr/nodetype/NodeTypeManager/index.js +1 -8
- package/types/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +4 -2
- package/types/javax/jcr/nodetype/PropertyDefinition/index.d.ts +5 -272
- package/types/javax/jcr/nodetype/PropertyDefinition/index.js +1 -7
- package/types/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +5 -3
- package/types/javax/jcr/observation/Event/index.d.ts +85 -42
- package/types/javax/jcr/observation/EventIterator/index.d.ts +5 -3
- package/types/javax/jcr/observation/EventJournal/index.d.ts +4 -2
- package/types/javax/jcr/observation/EventListener/index.d.ts +4 -2
- package/types/javax/jcr/observation/EventListenerIterator/index.d.ts +5 -3
- package/types/javax/jcr/observation/ObservationManager/index.d.ts +6 -4
- package/types/javax/jcr/query/Query/index.d.ts +35 -12
- package/types/javax/jcr/query/QueryManager/index.d.ts +6 -4
- package/types/javax/jcr/query/QueryResult/index.d.ts +5 -3
- package/types/javax/jcr/query/Row/index.d.ts +5 -3
- package/types/javax/jcr/query/RowIterator/index.d.ts +5 -3
- package/types/javax/jcr/query/qom/And/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/BindVariableValue/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/ChildNode/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Column/index.d.ts +3 -1
- package/types/javax/jcr/query/qom/Comparison/index.d.ts +6 -4
- package/types/javax/jcr/query/qom/Constraint/index.d.ts +3 -1
- package/types/javax/jcr/query/qom/DescendantNode/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/DynamicOperand/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/FullTextSearch/index.d.ts +5 -3
- package/types/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Join/index.d.ts +5 -3
- package/types/javax/jcr/query/qom/JoinCondition/index.d.ts +3 -1
- package/types/javax/jcr/query/qom/Length/index.d.ts +5 -3
- package/types/javax/jcr/query/qom/Literal/index.d.ts +5 -3
- package/types/javax/jcr/query/qom/LowerCase/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/NodeLocalName/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/NodeName/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Not/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Operand/index.d.ts +3 -1
- package/types/javax/jcr/query/qom/Or/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Ordering/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/PropertyExistence/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/PropertyValue/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/QueryObjectModel/index.d.ts +8 -6
- package/types/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +76 -2
- package/types/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +37 -35
- package/types/javax/jcr/query/qom/SameNode/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Selector/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Source/index.d.ts +3 -1
- package/types/javax/jcr/query/qom/StaticOperand/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/UpperCase/index.d.ts +4 -2
- package/types/javax/jcr/retention/Hold/index.d.ts +3 -1
- package/types/javax/jcr/retention/RetentionManager/index.d.ts +5 -3
- package/types/javax/jcr/retention/RetentionPolicy/index.d.ts +3 -1
- package/types/javax/jcr/security/AccessControlEntry/index.d.ts +4 -2
- package/types/javax/jcr/security/AccessControlList/index.d.ts +6 -4
- package/types/javax/jcr/security/AccessControlManager/index.d.ts +6 -4
- package/types/javax/jcr/security/AccessControlPolicy/index.d.ts +3 -1
- package/types/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +5 -3
- package/types/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +4 -2
- package/types/javax/jcr/security/Privilege/index.d.ts +130 -44
- package/types/javax/jcr/version/Version/index.d.ts +5 -3
- package/types/javax/jcr/version/VersionHistory/index.d.ts +7 -5
- package/types/javax/jcr/version/VersionIterator/index.d.ts +5 -3
- package/types/javax/jcr/version/VersionManager/index.d.ts +7 -5
- package/types/senselogic/sitevision/api/base/Builder/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/base/Filter/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/base/FilterSplit/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/base/Loadable/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/base/Requireable/ScriptEngine/index.d.ts +9 -0
- package/types/senselogic/sitevision/api/base/Requireable/ScriptEngine/index.js +11 -0
- package/types/senselogic/sitevision/api/base/Resolver/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/base/Wrapper/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +13 -7
- package/types/senselogic/sitevision/api/format/NumericFormatter/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +5 -3
- package/types/senselogic/sitevision/api/i18n/Currency/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +5 -3
- package/types/senselogic/sitevision/api/link/CustomLinkRenderData/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/mail/Mail/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/message/MessageTextLinker/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/metadata/value/LinkValue/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/metadata/value/RelatedValue/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/property/VersionedPropertyUtil/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/render/BuddyIconRenderer.BuddyIconInfo/index.d.ts +51 -0
- package/types/senselogic/sitevision/api/render/BuddyIconRenderer.BuddyIconInfo/index.js +12 -0
- package/types/senselogic/sitevision/api/render/ImageScaler/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/render/TextModuleRenderer/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants/index.d.ts +85 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants/index.js +21 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ExceptionSuppressingProxyConstants/index.d.ts +31 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ExceptionSuppressingProxyConstants/index.js +12 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants/index.d.ts +31 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants/index.js +12 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.LinkPageUtilConstants/index.d.ts +67 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.LinkPageUtilConstants/index.js +18 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MathInstanceConstants/index.d.ts +25 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MathInstanceConstants/index.js +11 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MimeTypeUtilConstants/index.d.ts +19 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MimeTypeUtilConstants/index.js +10 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.d.ts +1243 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.js +189 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.OutputUtilConstants/index.d.ts +31 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.OutputUtilConstants/index.js +12 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants/index.d.ts +91 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants/index.js +22 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletContextUtilConstants/index.d.ts +27 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletContextUtilConstants/index.js +11 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants/index.d.ts +19 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants/index.js +10 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.QueryStringUtilConstants/index.d.ts +19 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.QueryStringUtilConstants/index.js +10 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchHitConstants/index.d.ts +25 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchHitConstants/index.js +11 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchResultConstants/index.d.ts +37 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchResultConstants/index.js +13 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.VersionUtilConstants/index.d.ts +25 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.VersionUtilConstants/index.js +11 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityContext/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/render/velocity/VelocityEvaluator/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/script/app/RestAppInvoker/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/script/factory/TypedArgument/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingCollection/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingIterator/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +24 -2
- package/types/senselogic/sitevision/api/search/SearchFieldUtil/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/SearchHighlighter/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/search/SearchHit/index.d.ts +19 -3
- package/types/senselogic/sitevision/api/search/SearchResult/index.d.ts +31 -7
- package/types/senselogic/sitevision/api/search/facet/SearchFacetField/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/facet/SearchFacetValue/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/searcher/Searcher/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/search/searcher/component/Filter/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/searcher/component/Highlight/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/searcher/component/Monitor/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/searcher/component/Parser/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/searcher/component/Sort/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/searcher/component/SpellCheck/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/sort/CustomSort/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/suggestion/SearchSuggestion/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/security/DirectoryAttributes/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/security/MessageDigester/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/security/RoleAssignment/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/security/RoleMatcher/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/security/SecretStore/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/security/UserUtil/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +35 -3
- package/types/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilterChain/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +5 -3
- package/types/senselogic/sitevision/api/webresource/LinkTarget/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/xml/XmlElement/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/xml/XmlElementHandler/index.d.ts +4 -2
|
@@ -1,166 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type Node from "../../types/javax/jcr/Node";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
* <p>
|
|
5
|
-
* Creates a page as sub node to the specified parent.
|
|
6
|
-
* </p>
|
|
7
|
-
* <p>
|
|
8
|
-
* The parent may be either a {@code sv:sitePage}, {@code sv:page}, {@code sv:folder}, {@code sv:article} or a
|
|
9
|
-
* {@code sv:collaborationGroupPage}.
|
|
10
|
-
* If other parent is specified a <code>ConstraintViolationException</code> is thrown.
|
|
11
|
-
* </p>
|
|
12
|
-
*
|
|
13
|
-
* <p>Any name can be given a page, it should however not contain the character '/'.</p>
|
|
14
|
-
*
|
|
15
|
-
* <p>If no parent, no template or no name is specified a <code>NullPointerException</code> is thrown.</p>
|
|
16
|
-
*
|
|
17
|
-
* <p>The current user must be authorized to create pages, layouts and to do write operations on the parent node or
|
|
18
|
-
* a <code>ConstraintViolationException</code> will be thrown.</p>
|
|
19
|
-
*
|
|
20
|
-
* <p>Note that a new page inherits metadata and permissions from its parent.</p>
|
|
21
|
-
*
|
|
22
|
-
* <p>Use {@link senselogic.sitevision.api.webresource.webcontent.WebContentUtil#updateContent(javax.jcr.Node, java.util.Map)}
|
|
23
|
-
* to add content to the new page.</p>
|
|
24
|
-
* @param aParent the parent node of the page. May not be <code>null</code>
|
|
25
|
-
* @param aTemplate the template used for the page. May not be <code>null</code>
|
|
26
|
-
* @param aName the name of the sv:page. May not be <code>null</code>
|
|
27
|
-
* @return a sv:page node corresponding to the newly created page. Will never return <code>null</code>
|
|
28
|
-
* @throws ConstraintViolationException if an invalid parent is specified or if the current user is not authorized to create a page
|
|
29
|
-
* @throws RepositoryException if something else goes wrong
|
|
30
|
-
* @see #createPage(javax.jcr.Node, javax.jcr.Node, String, java.util.Map, java.util.Map)
|
|
31
|
-
*/
|
|
32
|
-
export function createPage(aParent: Node, aTemplate: Node, aName: string): Node;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* <p>
|
|
36
|
-
* Creates a page with properties and web content.
|
|
37
|
-
* </p>
|
|
38
|
-
* <p>
|
|
39
|
-
* The parent may be either a {@code sv:sitePage}, {@code sv:page}, {@code sv:folder}, {@code sv:article}
|
|
40
|
-
* or a {@code sv:collaborationGroupPage}.
|
|
41
|
-
* If other parent is specified a <code>ConstraintViolationException</code> is thrown.
|
|
42
|
-
* It is possible to provide the web content for the page as well as page properties.
|
|
43
|
-
* </p>
|
|
44
|
-
* <p>Properties:</p>
|
|
45
|
-
* <ul>
|
|
46
|
-
* <li>{@link #PROPERTY_VISIBLE_IN_MENUS}</li>
|
|
47
|
-
* <li>{@link #PROPERTY_TITLE}</li>
|
|
48
|
-
* <li>
|
|
49
|
-
* {@link #PROPERTY_SHORTID} - If the short id is already used by an other Sitevision node an <code>IllegalArgumentException</code> is thrown
|
|
50
|
-
* </li>
|
|
51
|
-
* <li>{@link #PROPERTY_LOCALE}</li>
|
|
52
|
-
* <li>{@link #PROPERTY_ROBOTS_INDEX}</li>
|
|
53
|
-
* <li>{@link #PROPERTY_CREATION_DATE}</li>
|
|
54
|
-
* <li>{@link #PROPERTY_CREATED_BY}</li>
|
|
55
|
-
* <li>{@link #PROPERTY_LAST_MODIFIED_DATE}</li>
|
|
56
|
-
* <li>{@link #PROPERTY_LAST_MODIFIED_BY}</li>
|
|
57
|
-
* <li>{@link #PROPERTY_LAST_PUBLISH_DATE}</li>
|
|
58
|
-
* <li>{@link #PROPERTY_LAST_PUBLISHED_BY}</li>
|
|
59
|
-
* <li>{@link #PROPERTY_PUBLISH_DATE}</li>
|
|
60
|
-
* <li>{@link #PROPERTY_PUBLISHED_BY}</li>
|
|
61
|
-
* </ul>
|
|
62
|
-
* <p>If an invalid value is provided for a property, an <code>IllegalArgumentException</code> is thrown</p>
|
|
63
|
-
*
|
|
64
|
-
* <p>Default values:</p>
|
|
65
|
-
* <ul>
|
|
66
|
-
* <li>{@link #PROPERTY_VISIBLE_IN_MENUS} - true</li>
|
|
67
|
-
* <li>{@link #PROPERTY_TITLE} - ""</li>
|
|
68
|
-
* <li>{@link #PROPERTY_SHORTID} - "" (a short id will be generated by Sitevision)</li>
|
|
69
|
-
* <li>{@link #PROPERTY_LOCALE} - parent locale</li>
|
|
70
|
-
* <li>{@link #PROPERTY_ROBOTS_INDEX} - true</li>
|
|
71
|
-
* <li>{@link #PROPERTY_CREATION_DATE} - current time stamp</li>
|
|
72
|
-
* <li>{@link #PROPERTY_CREATED_BY} - current user</li>
|
|
73
|
-
* <li>{@link #PROPERTY_LAST_MODIFIED_DATE} - current time stamp</li>
|
|
74
|
-
* <li>{@link #PROPERTY_LAST_MODIFIED_BY} - current user</li>
|
|
75
|
-
* <li>{@link #PROPERTY_LAST_PUBLISH_DATE} - null (will not have a value)</li>
|
|
76
|
-
* <li>{@link #PROPERTY_LAST_PUBLISHED_BY} - null (will not have a value)</li>
|
|
77
|
-
* <li>{@link #PROPERTY_PUBLISH_DATE} - null (will not have a value)</li>
|
|
78
|
-
* <li>{@link #PROPERTY_PUBLISHED_BY} - null (will not have a value)</li>
|
|
79
|
-
* </ul>
|
|
80
|
-
*
|
|
81
|
-
* <p>The page content is specified using the
|
|
82
|
-
* content map containing keys corresponding to layout names (e.g. "mittenspalt") on the page and values containing the
|
|
83
|
-
* HTML used to generate a portlet structure in the layout. The provided content is converted to
|
|
84
|
-
* Sitevision text, table and image modules. It is also possible to specify that a horizontal or a vertical
|
|
85
|
-
* layout should be created. For more information about the HTML to portlet mapping can be found in the
|
|
86
|
-
* {@link senselogic.sitevision.api.webresource.webcontent.WebContentUtil} javadoc.
|
|
87
|
-
*
|
|
88
|
-
* <p>Any name can be given a page, it should however not contain the character '/'.</p>
|
|
89
|
-
*
|
|
90
|
-
* <p>If no parent, no template or no name is specified a <code>NullPointerException</code> is thrown.</p>
|
|
91
|
-
*
|
|
92
|
-
* <p>The current user must be authorized to create pages, layouts and to do write operations on the parent node or
|
|
93
|
-
* a <code>ConstraintViolationException</code> will be thrown.</p>
|
|
94
|
-
*
|
|
95
|
-
* <p>Note that a new page inherits metadata and permissions from its parent.</p>
|
|
96
|
-
* @param aParent the parent node of the page. May not be <code>null</code>
|
|
97
|
-
* @param aTemplate the sv:template node to be used for the page. May not be <code>null</code>
|
|
98
|
-
* @param aName the name of the sv:page. May not be <code>null</code>
|
|
99
|
-
* @param properties the page properties. May be <code>null</code>
|
|
100
|
-
* @param content a map containing the HTML content. The keys must correspond to layout names on the node. May be <code>null</code>
|
|
101
|
-
* @return a sv:page node corresponding to the newly created page. Will never return <code>null</code>
|
|
102
|
-
* @throws ConstraintViolationException if an invalid parent is specified or if the current user is not authorized to create the page
|
|
103
|
-
* @throws RepositoryException if something else goes wrong
|
|
104
|
-
* @see #createPage(javax.jcr.Node, javax.jcr.Node, String)
|
|
105
|
-
*/
|
|
106
|
-
export function createPage(
|
|
107
|
-
aParent: Node,
|
|
108
|
-
aTemplate: Node,
|
|
109
|
-
aName: string,
|
|
110
|
-
properties: unknown,
|
|
111
|
-
content: unknown
|
|
112
|
-
): Node;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* <p>Updates the properties of a page. If no page is specified a <code>NullPointerException</code>
|
|
116
|
-
* is thrown. If the node is not a sv:page an <code>IllegalArgumentException</code> is thrown.</p>
|
|
117
|
-
*
|
|
118
|
-
* <p>Properties:</p>
|
|
119
|
-
* <ul>
|
|
120
|
-
* <li>{@link #PROPERTY_VISIBLE_IN_MENUS}</li>
|
|
121
|
-
* <li>{@link #PROPERTY_TITLE}</li>
|
|
122
|
-
* <li>
|
|
123
|
-
* {@link #PROPERTY_SHORTID} - If the short id is already used by an other Sitevision node an <code>IllegalArgumentException</code> is thrown
|
|
124
|
-
* </li>
|
|
125
|
-
* <li>{@link #PROPERTY_LOCALE}</li>
|
|
126
|
-
* <li>{@link #PROPERTY_ROBOTS_INDEX}</li>
|
|
127
|
-
* <li>{@link #PROPERTY_CREATION_DATE}</li>
|
|
128
|
-
* <li>{@link #PROPERTY_CREATED_BY}</li>
|
|
129
|
-
* <li>{@link #PROPERTY_LAST_MODIFIED_DATE}</li>
|
|
130
|
-
* <li>{@link #PROPERTY_LAST_MODIFIED_BY}</li>
|
|
131
|
-
* <li>{@link #PROPERTY_LAST_PUBLISH_DATE}</li>
|
|
132
|
-
* <li>{@link #PROPERTY_LAST_PUBLISHED_BY}</li>
|
|
133
|
-
* <li>{@link #PROPERTY_PUBLISH_DATE}</li>
|
|
134
|
-
* <li>{@link #PROPERTY_PUBLISHED_BY}</li>
|
|
135
|
-
* </ul>
|
|
136
|
-
* <p>If an invalid value is provided for a property, an <code>IllegalArgumentException</code> is thrown.</p>
|
|
137
|
-
*
|
|
138
|
-
* <p>The current user must be authorized to do write operations on the page or
|
|
139
|
-
* a <code>ConstraintViolationException</code> will be thrown.</p>
|
|
140
|
-
*
|
|
141
|
-
* <p>If no properties map is specified a <code>NullPointerException</code> is thrown.</p>
|
|
142
|
-
* @param aPage the sv:page that will be altered. May not be <code>null</code>
|
|
143
|
-
* @param properties the page properties. May not be <code>null</code>
|
|
144
|
-
* @throws ConstraintViolationException if the current user is not authorized to alter the page
|
|
145
|
-
* @throws RepositoryException if something else goes wrong
|
|
146
|
-
*/
|
|
147
|
-
export function updatePage(aPage: Node, properties: unknown): void;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* <p>Alters the name of a page. If no page is specified a <code>NullPointerException</code>
|
|
151
|
-
* is thrown. If the node is not a sv:page an <code>IllegalArgumentException</code> is thrown.</p>
|
|
152
|
-
*
|
|
153
|
-
* <p>Any name can be given a page, it should however not contain the character '/'. If <code>null</code> is
|
|
154
|
-
* provided a <code>NullPointerException</code> is thrown.</p>
|
|
155
|
-
*
|
|
156
|
-
* <p>The current user must be authorized to do write operations on the page or
|
|
157
|
-
* a <code>ConstraintViolationException</code> will be thrown.</p>
|
|
158
|
-
* @param aPage the page that should be renamed. May not be <code>null</code>
|
|
159
|
-
* @param aName the new name of the page. May not be <code>null</code>
|
|
160
|
-
* @throws ConstraintViolationException if the current user is not authorized to alter the name of the page
|
|
161
|
-
* @throws RepositoryException if something else goes wrong
|
|
162
|
-
*/
|
|
163
|
-
export function renamePage(aPage: Node, aName: string): void;
|
|
3
|
+
import type PageUtilConstants from "../../types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants";
|
|
164
4
|
|
|
165
5
|
/**
|
|
166
6
|
* Page utility interface that handles nodes with primary node type <code>sv:page</code>.
|
|
@@ -184,36 +24,274 @@ export function renamePage(aPage: Node, aName: string): void;
|
|
|
184
24
|
* <p>
|
|
185
25
|
* An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getPageUtil()}.
|
|
186
26
|
* See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
|
|
187
|
-
* </p>
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
|
|
27
|
+
* </p>
|
|
28
|
+
* @author Mikael Wikblom
|
|
29
|
+
* @since Sitevision 2.6.2
|
|
30
|
+
*/
|
|
31
|
+
export interface PageUtil extends PageUtilConstants {
|
|
32
|
+
/**
|
|
33
|
+
* Name of the property specifying if a page is visible in menus. It corresponds to the sv:page property <code>visibleInMenus</code>.
|
|
34
|
+
* <p>The property value must be of type <code>Boolean</code>.</p>
|
|
35
|
+
|
|
36
|
+
*/
|
|
37
|
+
PROPERTY_VISIBLE_IN_MENUS: "visibleInMenus";
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Name of the property specifying the title of a page. It corresponds to the sv:page property <code>title</code>.
|
|
41
|
+
* <p>The property value must be of type <code>String</code>.</p>
|
|
42
|
+
|
|
43
|
+
*/
|
|
44
|
+
PROPERTY_TITLE: "title";
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Name of the property specifying the short id for a page. It corresponds to the sv:page property <code>shortId</code>.
|
|
48
|
+
* <p>The property value must be of type <code>String</code>.</p>
|
|
49
|
+
|
|
50
|
+
*/
|
|
51
|
+
PROPERTY_SHORTID: "shortId";
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Name of the property specifying locale used by the page. It corresponds to the sv:page property <code>locale</code>.
|
|
191
55
|
* <p>
|
|
192
56
|
* The property value must be of type <code>Locale</code> or a <code>String</code> that can be resolved to a non-null Locale
|
|
193
57
|
* via {@link senselogic.sitevision.api.i18n.LocaleUtil#getLocaleByString(String)}.
|
|
194
|
-
* </p>
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
58
|
+
* </p>
|
|
59
|
+
|
|
60
|
+
*/
|
|
61
|
+
PROPERTY_LOCALE: "locale";
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Name of the property specifying if the page is indexable. It corresponds to the sv:page property <code>robotsIndex</code>.
|
|
65
|
+
* <p>The property value must be of type <code>Boolean</code>.</p>
|
|
66
|
+
|
|
67
|
+
*/
|
|
68
|
+
PROPERTY_ROBOTS_INDEX: "robotsIndex";
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Name of the property specifying the creation date of the page. It corresponds to the sv:page property <code>creationDate</code>.
|
|
199
72
|
* <p>The property value must be of type <code>Date</code> or a <code>String</code> on format yyyy-MM-dd HH:mm:ss where
|
|
200
|
-
* HH:mm:ss is optional (defaults to 00:00:00).</p>
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
*
|
|
73
|
+
* HH:mm:ss is optional (defaults to 00:00:00).</p>
|
|
74
|
+
|
|
75
|
+
*/
|
|
76
|
+
PROPERTY_CREATION_DATE: "creationDate";
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Name of the property specifying the creator of the page. It corresponds to the sv:page property <code>createdBy</code>.
|
|
207
80
|
* <p>The property value must be a {@link javax.jcr.Node} with primary node type sv:user or sv:systemUser.</p>
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
*
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
81
|
+
|
|
82
|
+
*/
|
|
83
|
+
PROPERTY_CREATED_BY: "createdBy";
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Name of the property specifying the last modified date of the page. It corresponds to the sv:page property <code>lastModifiedDate</code>.
|
|
87
|
+
* <p>The property value must be of type <code>Date</code> or a <code>String</code> on format yyyy-MM-dd HH:mm:ss where
|
|
88
|
+
* HH:mm:ss is optional (defaults to 00:00:00).</p>
|
|
89
|
+
|
|
90
|
+
*/
|
|
91
|
+
PROPERTY_LAST_MODIFIED_DATE: "lastModifiedDate";
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Name of the property specifying the last modifier of the page. It corresponds to the sv:page property <code>lastModifiedBy</code>.
|
|
95
|
+
* <p>The property value must be of type {@link javax.jcr.Node} of type sv:user or sv:systemUser.</p>
|
|
96
|
+
|
|
97
|
+
*/
|
|
98
|
+
PROPERTY_LAST_MODIFIED_BY: "lastModifiedBy";
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Name of the property specifying the last published date of a page. It corresponds to the sv:page property <code>lastPublishDate</code>.
|
|
102
|
+
* <p>The property value must be of type <code>Date</code> or a <code>String</code> on format yyyy-MM-dd HH:mm:ss, where
|
|
103
|
+
* HH:mm:ss is optional (defaults to 00:00:00).</p>
|
|
104
|
+
* @since Sitevision 3.5.3
|
|
105
|
+
*/
|
|
106
|
+
PROPERTY_LAST_PUBLISH_DATE: "lastPublishDate";
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Name of the property specifying the last publisher of a page. It corresponds to the sv:page property <code>lastPublishedBy</code>.
|
|
110
|
+
* <p>The property value must be a {@link javax.jcr.Node} with primary node type sv:user or sv:systemUser.</p>
|
|
111
|
+
* @since Sitevision 3.5.3
|
|
112
|
+
*/
|
|
113
|
+
PROPERTY_LAST_PUBLISHED_BY: "lastPublishedBy";
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Name of the property specifying the published date of a page. It corresponds to the sv:page property <code>publishDate</code>.
|
|
117
|
+
* <p>The property value must be of type <code>Date</code> or a <code>String</code> on format yyyy-MM-dd HH:mm:ss, where
|
|
118
|
+
* HH:mm:ss is optional (defaults to 00:00:00).</p>
|
|
119
|
+
* @since Sitevision 3.5.3
|
|
120
|
+
*/
|
|
121
|
+
PROPERTY_PUBLISH_DATE: "publishDate";
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Name of the property specifying the publisher of a page. It corresponds to the sv:page property <code>publishedBy</code>.
|
|
125
|
+
* <p>The property value must be a {@link javax.jcr.Node} with primary node type sv:user or sv:systemUser.</p>
|
|
126
|
+
* @since Sitevision 3.5.3
|
|
127
|
+
*/
|
|
128
|
+
PROPERTY_PUBLISHED_BY: "publishedBy";
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* <p>
|
|
132
|
+
* Creates a page as sub node to the specified parent.
|
|
133
|
+
* </p>
|
|
134
|
+
* <p>
|
|
135
|
+
* The parent may be either a {@code sv:sitePage}, {@code sv:page}, {@code sv:folder}, {@code sv:article} or a
|
|
136
|
+
* {@code sv:collaborationGroupPage}.
|
|
137
|
+
* If other parent is specified a <code>ConstraintViolationException</code> is thrown.
|
|
138
|
+
* </p>
|
|
139
|
+
*
|
|
140
|
+
* <p>Any name can be given a page, it should however not contain the character '/'.</p>
|
|
141
|
+
*
|
|
142
|
+
* <p>If no parent, no template or no name is specified a <code>NullPointerException</code> is thrown.</p>
|
|
143
|
+
*
|
|
144
|
+
* <p>The current user must be authorized to create pages, layouts and to do write operations on the parent node or
|
|
145
|
+
* a <code>ConstraintViolationException</code> will be thrown.</p>
|
|
146
|
+
*
|
|
147
|
+
* <p>Note that a new page inherits metadata and permissions from its parent.</p>
|
|
148
|
+
*
|
|
149
|
+
* <p>Use {@link senselogic.sitevision.api.webresource.webcontent.WebContentUtil#updateContent(javax.jcr.Node, java.util.Map)}
|
|
150
|
+
* to add content to the new page.</p>
|
|
151
|
+
* @param aParent the parent node of the page. May not be <code>null</code>
|
|
152
|
+
* @param aTemplate the template used for the page. May not be <code>null</code>
|
|
153
|
+
* @param aName the name of the sv:page. May not be <code>null</code>
|
|
154
|
+
* @return a sv:page node corresponding to the newly created page. Will never return <code>null</code>
|
|
155
|
+
* @throws ConstraintViolationException if an invalid parent is specified or if the current user is not authorized to create a page
|
|
156
|
+
* @throws RepositoryException if something else goes wrong
|
|
157
|
+
* @see #createPage(javax.jcr.Node, javax.jcr.Node, String, java.util.Map, java.util.Map)
|
|
158
|
+
*/
|
|
159
|
+
createPage(aParent: Node, aTemplate: Node, aName: string): Node;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* <p>
|
|
163
|
+
* Creates a page with properties and web content.
|
|
164
|
+
* </p>
|
|
165
|
+
* <p>
|
|
166
|
+
* The parent may be either a {@code sv:sitePage}, {@code sv:page}, {@code sv:folder}, {@code sv:article}
|
|
167
|
+
* or a {@code sv:collaborationGroupPage}.
|
|
168
|
+
* If other parent is specified a <code>ConstraintViolationException</code> is thrown.
|
|
169
|
+
* It is possible to provide the web content for the page as well as page properties.
|
|
170
|
+
* </p>
|
|
171
|
+
* <p>Properties:</p>
|
|
172
|
+
* <ul>
|
|
173
|
+
* <li>{@link #PROPERTY_VISIBLE_IN_MENUS}</li>
|
|
174
|
+
* <li>{@link #PROPERTY_TITLE}</li>
|
|
175
|
+
* <li>
|
|
176
|
+
* {@link #PROPERTY_SHORTID} - If the short id is already used by an other Sitevision node an <code>IllegalArgumentException</code> is thrown
|
|
177
|
+
* </li>
|
|
178
|
+
* <li>{@link #PROPERTY_LOCALE}</li>
|
|
179
|
+
* <li>{@link #PROPERTY_ROBOTS_INDEX}</li>
|
|
180
|
+
* <li>{@link #PROPERTY_CREATION_DATE}</li>
|
|
181
|
+
* <li>{@link #PROPERTY_CREATED_BY}</li>
|
|
182
|
+
* <li>{@link #PROPERTY_LAST_MODIFIED_DATE}</li>
|
|
183
|
+
* <li>{@link #PROPERTY_LAST_MODIFIED_BY}</li>
|
|
184
|
+
* <li>{@link #PROPERTY_LAST_PUBLISH_DATE}</li>
|
|
185
|
+
* <li>{@link #PROPERTY_LAST_PUBLISHED_BY}</li>
|
|
186
|
+
* <li>{@link #PROPERTY_PUBLISH_DATE}</li>
|
|
187
|
+
* <li>{@link #PROPERTY_PUBLISHED_BY}</li>
|
|
188
|
+
* </ul>
|
|
189
|
+
* <p>If an invalid value is provided for a property, an <code>IllegalArgumentException</code> is thrown</p>
|
|
190
|
+
*
|
|
191
|
+
* <p>Default values:</p>
|
|
192
|
+
* <ul>
|
|
193
|
+
* <li>{@link #PROPERTY_VISIBLE_IN_MENUS} - true</li>
|
|
194
|
+
* <li>{@link #PROPERTY_TITLE} - ""</li>
|
|
195
|
+
* <li>{@link #PROPERTY_SHORTID} - "" (a short id will be generated by Sitevision)</li>
|
|
196
|
+
* <li>{@link #PROPERTY_LOCALE} - parent locale</li>
|
|
197
|
+
* <li>{@link #PROPERTY_ROBOTS_INDEX} - true</li>
|
|
198
|
+
* <li>{@link #PROPERTY_CREATION_DATE} - current time stamp</li>
|
|
199
|
+
* <li>{@link #PROPERTY_CREATED_BY} - current user</li>
|
|
200
|
+
* <li>{@link #PROPERTY_LAST_MODIFIED_DATE} - current time stamp</li>
|
|
201
|
+
* <li>{@link #PROPERTY_LAST_MODIFIED_BY} - current user</li>
|
|
202
|
+
* <li>{@link #PROPERTY_LAST_PUBLISH_DATE} - null (will not have a value)</li>
|
|
203
|
+
* <li>{@link #PROPERTY_LAST_PUBLISHED_BY} - null (will not have a value)</li>
|
|
204
|
+
* <li>{@link #PROPERTY_PUBLISH_DATE} - null (will not have a value)</li>
|
|
205
|
+
* <li>{@link #PROPERTY_PUBLISHED_BY} - null (will not have a value)</li>
|
|
206
|
+
* </ul>
|
|
207
|
+
*
|
|
208
|
+
* <p>The page content is specified using the
|
|
209
|
+
* content map containing keys corresponding to layout names (e.g. "mittenspalt") on the page and values containing the
|
|
210
|
+
* HTML used to generate a portlet structure in the layout. The provided content is converted to
|
|
211
|
+
* Sitevision text, table and image modules. It is also possible to specify that a horizontal or a vertical
|
|
212
|
+
* layout should be created. For more information about the HTML to portlet mapping can be found in the
|
|
213
|
+
* {@link senselogic.sitevision.api.webresource.webcontent.WebContentUtil} javadoc.
|
|
214
|
+
*
|
|
215
|
+
* <p>Any name can be given a page, it should however not contain the character '/'.</p>
|
|
216
|
+
*
|
|
217
|
+
* <p>If no parent, no template or no name is specified a <code>NullPointerException</code> is thrown.</p>
|
|
218
|
+
*
|
|
219
|
+
* <p>The current user must be authorized to create pages, layouts and to do write operations on the parent node or
|
|
220
|
+
* a <code>ConstraintViolationException</code> will be thrown.</p>
|
|
221
|
+
*
|
|
222
|
+
* <p>Note that a new page inherits metadata and permissions from its parent.</p>
|
|
223
|
+
* @param aParent the parent node of the page. May not be <code>null</code>
|
|
224
|
+
* @param aTemplate the sv:template node to be used for the page. May not be <code>null</code>
|
|
225
|
+
* @param aName the name of the sv:page. May not be <code>null</code>
|
|
226
|
+
* @param properties the page properties. May be <code>null</code>
|
|
227
|
+
* @param content a map containing the HTML content. The keys must correspond to layout names on the node. May be <code>null</code>
|
|
228
|
+
* @return a sv:page node corresponding to the newly created page. Will never return <code>null</code>
|
|
229
|
+
* @throws ConstraintViolationException if an invalid parent is specified or if the current user is not authorized to create the page
|
|
230
|
+
* @throws RepositoryException if something else goes wrong
|
|
231
|
+
* @see #createPage(javax.jcr.Node, javax.jcr.Node, String)
|
|
232
|
+
*/
|
|
233
|
+
createPage(
|
|
234
|
+
aParent: Node,
|
|
235
|
+
aTemplate: Node,
|
|
236
|
+
aName: string,
|
|
237
|
+
properties: unknown,
|
|
238
|
+
content: unknown
|
|
239
|
+
): Node;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* <p>Updates the properties of a page. If no page is specified a <code>NullPointerException</code>
|
|
243
|
+
* is thrown. If the node is not a sv:page an <code>IllegalArgumentException</code> is thrown.</p>
|
|
244
|
+
*
|
|
245
|
+
* <p>Properties:</p>
|
|
246
|
+
* <ul>
|
|
247
|
+
* <li>{@link #PROPERTY_VISIBLE_IN_MENUS}</li>
|
|
248
|
+
* <li>{@link #PROPERTY_TITLE}</li>
|
|
249
|
+
* <li>
|
|
250
|
+
* {@link #PROPERTY_SHORTID} - If the short id is already used by an other Sitevision node an <code>IllegalArgumentException</code> is thrown
|
|
251
|
+
* </li>
|
|
252
|
+
* <li>{@link #PROPERTY_LOCALE}</li>
|
|
253
|
+
* <li>{@link #PROPERTY_ROBOTS_INDEX}</li>
|
|
254
|
+
* <li>{@link #PROPERTY_CREATION_DATE}</li>
|
|
255
|
+
* <li>{@link #PROPERTY_CREATED_BY}</li>
|
|
256
|
+
* <li>{@link #PROPERTY_LAST_MODIFIED_DATE}</li>
|
|
257
|
+
* <li>{@link #PROPERTY_LAST_MODIFIED_BY}</li>
|
|
258
|
+
* <li>{@link #PROPERTY_LAST_PUBLISH_DATE}</li>
|
|
259
|
+
* <li>{@link #PROPERTY_LAST_PUBLISHED_BY}</li>
|
|
260
|
+
* <li>{@link #PROPERTY_PUBLISH_DATE}</li>
|
|
261
|
+
* <li>{@link #PROPERTY_PUBLISHED_BY}</li>
|
|
262
|
+
* </ul>
|
|
263
|
+
* <p>If an invalid value is provided for a property, an <code>IllegalArgumentException</code> is thrown.</p>
|
|
264
|
+
*
|
|
265
|
+
* <p>The current user must be authorized to do write operations on the page or
|
|
266
|
+
* a <code>ConstraintViolationException</code> will be thrown.</p>
|
|
267
|
+
*
|
|
268
|
+
* <p>If no properties map is specified a <code>NullPointerException</code> is thrown.</p>
|
|
269
|
+
* @param aPage the sv:page that will be altered. May not be <code>null</code>
|
|
270
|
+
* @param properties the page properties. May not be <code>null</code>
|
|
271
|
+
* @throws ConstraintViolationException if the current user is not authorized to alter the page
|
|
272
|
+
* @throws RepositoryException if something else goes wrong
|
|
273
|
+
*/
|
|
274
|
+
updatePage(aPage: Node, properties: unknown): void;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* <p>Alters the name of a page. If no page is specified a <code>NullPointerException</code>
|
|
278
|
+
* is thrown. If the node is not a sv:page an <code>IllegalArgumentException</code> is thrown.</p>
|
|
279
|
+
*
|
|
280
|
+
* <p>Any name can be given a page, it should however not contain the character '/'. If <code>null</code> is
|
|
281
|
+
* provided a <code>NullPointerException</code> is thrown.</p>
|
|
282
|
+
*
|
|
283
|
+
* <p>The current user must be authorized to do write operations on the page or
|
|
284
|
+
* a <code>ConstraintViolationException</code> will be thrown.</p>
|
|
285
|
+
* @param aPage the page that should be renamed. May not be <code>null</code>
|
|
286
|
+
* @param aName the new name of the page. May not be <code>null</code>
|
|
287
|
+
* @throws ConstraintViolationException if the current user is not authorized to alter the name of the page
|
|
288
|
+
* @throws RepositoryException if something else goes wrong
|
|
289
|
+
*/
|
|
290
|
+
renamePage(aPage: Node, aName: string): void;
|
|
217
291
|
}
|
|
218
292
|
|
|
219
|
-
|
|
293
|
+
declare namespace PageUtil {}
|
|
294
|
+
|
|
295
|
+
declare var pageUtil: PageUtil;
|
|
296
|
+
|
|
297
|
+
export = pageUtil;
|