@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,206 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type Node from "../../types/javax/jcr/Node";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
* <p>Creates an article as sub node to a specified parent. The parent must be a node with primary
|
|
5
|
-
* node type sv:archive. If other parent is specified a <code>ConstraintViolationException</code> is thrown.</p>
|
|
6
|
-
*
|
|
7
|
-
* <p>Any name can be given a article, it should however not contain the character '/'.</p>
|
|
8
|
-
*
|
|
9
|
-
* <p>If no parent, no template or no name is specified a <code>NullPointerException</code> is thrown.</p>
|
|
10
|
-
*
|
|
11
|
-
* <p>The current user must be authorized to create pages, layouts and to do write operations on the parent node. A
|
|
12
|
-
* <code>ConstraintViolationException</code> will be thrown if not.</p>
|
|
13
|
-
*
|
|
14
|
-
* <p>Note that a new article inherits metadata and permissions from its parent.</p>
|
|
15
|
-
*
|
|
16
|
-
* <p>Use {@link senselogic.sitevision.api.webresource.webcontent.WebContentUtil#updateContent(javax.jcr.Node, java.util.Map)}
|
|
17
|
-
* to add content to the new article.</p>
|
|
18
|
-
* @param aParent the parent node of the article. May not be <code>null</code>
|
|
19
|
-
* @param aTemplate the template used for the article. May not be <code>null</code>
|
|
20
|
-
* @param aName the name of the sv:article. May not be <code>null</code>
|
|
21
|
-
* @return a sv:article node corresponding to the newly created article. Will never return <code>null</code>
|
|
22
|
-
* @throws javax.jcr.nodetype.ConstraintViolationException if an invalid parent is specified or if the current user is not authorized to create the article
|
|
23
|
-
* @throws RepositoryException if something else goes wrong
|
|
24
|
-
* @see #createArticle(javax.jcr.Node, javax.jcr.Node, String, java.util.Map, java.util.Map)
|
|
25
|
-
*/
|
|
26
|
-
export function createArticle(
|
|
27
|
-
aParent: Node,
|
|
28
|
-
aTemplate: Node,
|
|
29
|
-
aName: string
|
|
30
|
-
): Node;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* <p>Creates an article with properties and web content. The parent must be a node with primary node type sv:archive.
|
|
34
|
-
* If other parent is specified a <code>ConstraintViolationException</code> is thrown. It is possible to provide the web content for the article
|
|
35
|
-
* as well as article properties.</p>
|
|
36
|
-
*
|
|
37
|
-
* <p>Properties:</p>
|
|
38
|
-
* <ul>
|
|
39
|
-
* <li>
|
|
40
|
-
* {@link #PROPERTY_VISIBLE_IN_MENUS}
|
|
41
|
-
* </li>
|
|
42
|
-
* <li>
|
|
43
|
-
* {@link #PROPERTY_SHORTID} - If the short id is already used by an other Sitevision node an <code>IllegalArgumentException</code> is thrown
|
|
44
|
-
* </li>
|
|
45
|
-
* <li>
|
|
46
|
-
* {@link #PROPERTY_LOCALE}
|
|
47
|
-
* </li>
|
|
48
|
-
* <li>
|
|
49
|
-
* {@link #PROPERTY_ROBOTS_INDEX}
|
|
50
|
-
* </li>
|
|
51
|
-
* <li>
|
|
52
|
-
* {@link #PROPERTY_CREATION_DATE}
|
|
53
|
-
* </li>
|
|
54
|
-
* <li>
|
|
55
|
-
* {@link #PROPERTY_CREATED_BY}
|
|
56
|
-
* </li>
|
|
57
|
-
* <li>
|
|
58
|
-
* {@link #PROPERTY_LAST_MODIFIED_DATE}
|
|
59
|
-
* </li>
|
|
60
|
-
* <li>
|
|
61
|
-
* {@link #PROPERTY_LAST_MODIFIED_BY}
|
|
62
|
-
* </li>
|
|
63
|
-
* <li>
|
|
64
|
-
* {@link #PROPERTY_LAST_PUBLISH_DATE}
|
|
65
|
-
* </li>
|
|
66
|
-
* <li>
|
|
67
|
-
* {@link #PROPERTY_LAST_PUBLISHED_BY}
|
|
68
|
-
* </li>
|
|
69
|
-
* <li>
|
|
70
|
-
* {@link #PROPERTY_PUBLISH_DATE}
|
|
71
|
-
* </li>
|
|
72
|
-
* <li>
|
|
73
|
-
* {@link #PROPERTY_PUBLISHED_BY}
|
|
74
|
-
* </li>
|
|
75
|
-
* </ul>
|
|
76
|
-
* <p>
|
|
77
|
-
* If an invalid value is provided for a property, an <code>IllegalArgumentException</code> is thrown
|
|
78
|
-
* </p>
|
|
79
|
-
*
|
|
80
|
-
* <p>
|
|
81
|
-
* Default values:
|
|
82
|
-
* </p>
|
|
83
|
-
* <ul>
|
|
84
|
-
* <li>{@link #PROPERTY_VISIBLE_IN_MENUS} - true</li>
|
|
85
|
-
* <li>{@link #PROPERTY_SHORTID} - "" (a short id will be generated by Sitevision)</li>
|
|
86
|
-
* <li>{@link #PROPERTY_LOCALE} - parent locale</li>
|
|
87
|
-
* <li>{@link #PROPERTY_ROBOTS_INDEX} - true</li>
|
|
88
|
-
* <li>{@link #PROPERTY_CREATION_DATE} - current time stamp</li>
|
|
89
|
-
* <li>{@link #PROPERTY_CREATED_BY} - current user</li>
|
|
90
|
-
* <li>{@link #PROPERTY_LAST_MODIFIED_DATE} - current time stamp</li>
|
|
91
|
-
* <li>{@link #PROPERTY_LAST_MODIFIED_BY} - current user</li>
|
|
92
|
-
* <li>{@link #PROPERTY_LAST_PUBLISH_DATE} - null (will not have a value)</li>
|
|
93
|
-
* <li>{@link #PROPERTY_LAST_PUBLISHED_BY} - null (will not have a value)</li>
|
|
94
|
-
* <li>{@link #PROPERTY_PUBLISH_DATE} - null (will not have a value)</li>
|
|
95
|
-
* <li>{@link #PROPERTY_PUBLISHED_BY} - null (will not have a value)</li>
|
|
96
|
-
* </ul>
|
|
97
|
-
*
|
|
98
|
-
* <p>The article content is specified using the
|
|
99
|
-
* content map containing keys corresponding to layout names (e.g. "mittenspalt") on the articel and values containing the
|
|
100
|
-
* HTML used to generate a portlet structure in the layout. The provided content is converted to
|
|
101
|
-
* Sitevision text, table and image modules. It is also possible to specify that a horizontal or a vertical
|
|
102
|
-
* layout should be created. For more information about the HTML to portlet mapping can be found in the
|
|
103
|
-
* {@link senselogic.sitevision.api.webresource.webcontent.WebContentUtil} javadoc.
|
|
104
|
-
*
|
|
105
|
-
* <p>If no parent, no template or no name is specified a <code>NullPointerException</code> is thrown.</p>
|
|
106
|
-
*
|
|
107
|
-
* <p>The current user must be authorized to create pages, layouts and to do write operations on the parent node or
|
|
108
|
-
* a <code>ConstraintViolationException</code> will be thrown.</p>
|
|
109
|
-
*
|
|
110
|
-
* <p>Note that a new page inherits metadata and permissions from its parent.</p>
|
|
111
|
-
* @param aParent the parent node of the article. May not be <code>null</code>
|
|
112
|
-
* @param aTemplate the sv:template node to be used for the article. May not be <code>null</code>
|
|
113
|
-
* @param aName the name of the sv:article. May not be <code>null</code>
|
|
114
|
-
* @param properties the article properties. May be <code>null</code>
|
|
115
|
-
* @param content a map containing the HTML content. The keys must correspond to layout names on the node. May be <code>null</code>
|
|
116
|
-
* @return a sv:article node corresponding to the newly created article. Will never return <code>null</code>
|
|
117
|
-
* @throws javax.jcr.nodetype.ConstraintViolationException if an invalid parent is specified or if the current user is not authorized to create the article
|
|
118
|
-
* @throws RepositoryException if something else goes wrong
|
|
119
|
-
* @see #createArticle(javax.jcr.Node, javax.jcr.Node, String)
|
|
120
|
-
*/
|
|
121
|
-
export function createArticle(
|
|
122
|
-
aParent: Node,
|
|
123
|
-
aTemplate: Node,
|
|
124
|
-
aName: string,
|
|
125
|
-
properties: unknown,
|
|
126
|
-
content: unknown
|
|
127
|
-
): Node;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* <p>Updates the properties of an article. If no article is specified a <code>NullPointerException</code>
|
|
131
|
-
* is thrown. If the node is not a sv:article an <code>IllegalArgumentException</code> is thrown.</p>
|
|
132
|
-
*
|
|
133
|
-
* <p>
|
|
134
|
-
* Properties:
|
|
135
|
-
* </p>
|
|
136
|
-
* <ul>
|
|
137
|
-
* <li>
|
|
138
|
-
* {@link #PROPERTY_VISIBLE_IN_MENUS}
|
|
139
|
-
* </li>
|
|
140
|
-
* <li>
|
|
141
|
-
* {@link #PROPERTY_SHORTID} - If the short id is already used by an other Sitevision node an <code>IllegalArgumentException</code> is thrown
|
|
142
|
-
* </li>
|
|
143
|
-
* <li>
|
|
144
|
-
* {@link #PROPERTY_LOCALE}
|
|
145
|
-
* </li>
|
|
146
|
-
* <li>
|
|
147
|
-
* {@link #PROPERTY_ROBOTS_INDEX}
|
|
148
|
-
* </li>
|
|
149
|
-
* <li>
|
|
150
|
-
* {@link #PROPERTY_CREATION_DATE}
|
|
151
|
-
* </li>
|
|
152
|
-
* <li>
|
|
153
|
-
* {@link #PROPERTY_CREATED_BY}
|
|
154
|
-
* </li>
|
|
155
|
-
* <li>
|
|
156
|
-
* {@link #PROPERTY_LAST_MODIFIED_DATE}
|
|
157
|
-
* </li>
|
|
158
|
-
* <li>
|
|
159
|
-
* {@link #PROPERTY_LAST_MODIFIED_BY}
|
|
160
|
-
* </li>
|
|
161
|
-
* <li>
|
|
162
|
-
* {@link #PROPERTY_LAST_PUBLISH_DATE}
|
|
163
|
-
* </li>
|
|
164
|
-
* <li>
|
|
165
|
-
* {@link #PROPERTY_LAST_PUBLISHED_BY}
|
|
166
|
-
* </li>
|
|
167
|
-
* <li>
|
|
168
|
-
* {@link #PROPERTY_PUBLISH_DATE}
|
|
169
|
-
* </li>
|
|
170
|
-
* <li>
|
|
171
|
-
* {@link #PROPERTY_PUBLISHED_BY}
|
|
172
|
-
* </li>
|
|
173
|
-
* </ul>
|
|
174
|
-
* <p>
|
|
175
|
-
* If an invalid value is provided for a property, an <code>IllegalArgumentException</code> is thrown.
|
|
176
|
-
* </p>
|
|
177
|
-
*
|
|
178
|
-
* <p>The current user must be authorized to do write operations on the article or
|
|
179
|
-
* a <code>ConstraintViolationException</code> will be thrown.</p>
|
|
180
|
-
*
|
|
181
|
-
* <p>If no properties map is specified a <code>NullPointerException</code> is thrown.</p>
|
|
182
|
-
* @param anArticle the sv:article that will be altered. May not be <code>null</code>
|
|
183
|
-
* @param properties the article properties. May not be <code>null</code>
|
|
184
|
-
* @throws javax.jcr.nodetype.ConstraintViolationException if the current user is not authorized to alter the article
|
|
185
|
-
* @throws RepositoryException if something else goes wrong
|
|
186
|
-
*/
|
|
187
|
-
export function updateArticle(anArticle: Node, properties: unknown): void;
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* <p>Alters the name of an article. If no article is specified a <code>NullPointerException</code>
|
|
191
|
-
* is thrown. If the node is not an sv:article an <code>IllegalArgumentException</code> is thrown.</p>
|
|
192
|
-
*
|
|
193
|
-
* <p>Any name can be given an article, it should however not contain the character '/'. If null is
|
|
194
|
-
* provided a <code>NullPointerException</code> is thrown.</p>
|
|
195
|
-
*
|
|
196
|
-
* <p>The current user must be authorized to do write operations on the article or
|
|
197
|
-
* a <code>ConstraintViolationException</code> will be thrown.</p>
|
|
198
|
-
* @param anArticle the article that should be renamed. May not be <code>null</code>
|
|
199
|
-
* @param aName the new name of the article. May not be <code>null</code>
|
|
200
|
-
* @throws javax.jcr.nodetype.ConstraintViolationException if the current user is not authorized to alter the name of the article
|
|
201
|
-
* @throws RepositoryException if something else goes wrong
|
|
202
|
-
*/
|
|
203
|
-
export function renameArticle(anArticle: Node, aName: string): void;
|
|
3
|
+
import type ArticleUtilConstants from "../../types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants";
|
|
204
4
|
|
|
205
5
|
/**
|
|
206
6
|
* Article utility interface that handles nodes with primary node type <code>sv:article</code>.
|
|
@@ -225,35 +25,303 @@ export function renameArticle(anArticle: Node, aName: string): void;
|
|
|
225
25
|
* An instance of the Sitevision class implementing this interface can be obtained via
|
|
226
26
|
* {@link senselogic.sitevision.api.Utils#getArticleUtil()}.
|
|
227
27
|
* See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
|
|
228
|
-
* </p>
|
|
229
|
-
*
|
|
230
|
-
*
|
|
28
|
+
* </p>
|
|
29
|
+
* @author Mikael Wikblom
|
|
30
|
+
* @since Sitevision 2.6.2
|
|
31
|
+
*/
|
|
32
|
+
export interface ArticleUtil extends ArticleUtilConstants {
|
|
33
|
+
/**
|
|
34
|
+
* Name of the property specifying if an article is visible in menus. It corresponds to the sv:article property <code>visibleInMenus</code>.
|
|
35
|
+
* <p>The property value must be of type <code>Boolean</code>.</p>
|
|
36
|
+
|
|
37
|
+
*/
|
|
38
|
+
PROPERTY_VISIBLE_IN_MENUS: "visibleInMenus";
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Name of the property specifying the short id of an article. It corresponds to the sv:article property <code>shortId</code>.
|
|
42
|
+
* <p>The property value must be of type <code>String</code>.</p>
|
|
43
|
+
|
|
44
|
+
*/
|
|
45
|
+
PROPERTY_SHORTID: "shortId";
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Name of the property specifying the locale used by an article. It corresponds to the sv:article property <code>locale</code>.
|
|
231
49
|
* <p>
|
|
232
50
|
* The property value must be of type <code>Locale</code> or a <code>String</code> that can be resolved to a non-null Locale
|
|
233
51
|
* via {@link senselogic.sitevision.api.i18n.LocaleUtil#getLocaleByString(String)}.
|
|
234
|
-
* </p>
|
|
235
|
-
|
|
52
|
+
* </p>
|
|
53
|
+
|
|
54
|
+
*/
|
|
55
|
+
PROPERTY_LOCALE: "locale";
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Name of the property specifying if an article is indexable. It corresponds to the sv:article property <code>robotsIndex</code>.
|
|
59
|
+
* <p>The property value must be of type <code>Boolean</code>.</p>
|
|
60
|
+
|
|
61
|
+
*/
|
|
62
|
+
PROPERTY_ROBOTS_INDEX: "robotsIndex";
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Name of the property specifying the creation date of an article. It corresponds to the sv:article property <code>creationDate</code>.
|
|
236
66
|
* <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
|
|
237
|
-
* HH:mm:ss is optional (defaults to 00:00:00).</p>
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
*
|
|
244
|
-
* <p>The property value must be a {@link javax.jcr.Node} with primary node type sv:user or sv:systemUser.</p>
|
|
67
|
+
* HH:mm:ss is optional (defaults to 00:00:00).</p>
|
|
68
|
+
|
|
69
|
+
*/
|
|
70
|
+
PROPERTY_CREATION_DATE: "creationDate";
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Name of the property specifying the creator of an article. It corresponds to the sv:article property <code>createdBy</code>.
|
|
74
|
+
* <p>The property value must be a {@link javax.jcr.Node} with primary node type sv:user or sv:systemUser.</p>
|
|
75
|
+
|
|
76
|
+
*/
|
|
77
|
+
PROPERTY_CREATED_BY: "createdBy";
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Name of the property specifying the last modified date of an article. It corresponds to the sv:article property <code>lastModifiedDate</code>.
|
|
245
81
|
* <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
|
|
246
|
-
* HH:mm:ss is optional (defaults to 00:00:00).</p>
|
|
82
|
+
* HH:mm:ss is optional (defaults to 00:00:00).</p>
|
|
83
|
+
|
|
84
|
+
*/
|
|
85
|
+
PROPERTY_LAST_MODIFIED_DATE: "lastModifiedDate";
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Name of the property specifying the last modifier of an article. It corresponds to the sv:article property <code>lastModifiedBy</code>.
|
|
247
89
|
* <p>The property value must be a {@link javax.jcr.Node} with primary node type sv:user or sv:systemUser.</p>
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
90
|
+
|
|
91
|
+
*/
|
|
92
|
+
PROPERTY_LAST_MODIFIED_BY: "lastModifiedBy";
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Name of the property specifying the last published date of an article. It corresponds to the sv:article property <code>lastPublishDate</code>.
|
|
96
|
+
* <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
|
|
97
|
+
* HH:mm:ss is optional (defaults to 00:00:00).</p>
|
|
98
|
+
* @since Sitevision 3.5.3
|
|
99
|
+
*/
|
|
100
|
+
PROPERTY_LAST_PUBLISH_DATE: "lastPublishDate";
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Name of the property specifying the last publisher of an article. It corresponds to the sv:article property <code>lastPublishedBy</code>.
|
|
104
|
+
* <p>The property value must be a {@link javax.jcr.Node} with primary node type sv:user or sv:systemUser.</p>
|
|
105
|
+
* @since Sitevision 3.5.3
|
|
106
|
+
*/
|
|
107
|
+
PROPERTY_LAST_PUBLISHED_BY: "lastPublishedBy";
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Name of the property specifying the published date of an article. It corresponds to the sv:article property <code>publishDate</code>.
|
|
111
|
+
* <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
|
|
112
|
+
* HH:mm:ss is optional (defaults to 00:00:00).</p>
|
|
113
|
+
* @since Sitevision 3.5.3
|
|
114
|
+
*/
|
|
115
|
+
PROPERTY_PUBLISH_DATE: "publishDate";
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Name of the property specifying the publisher of an article. It corresponds to the sv:article property <code>publishedBy</code>.
|
|
119
|
+
* <p>The property value must be a {@link javax.jcr.Node} with primary node type sv:user or sv:systemUser.</p>
|
|
120
|
+
* @since Sitevision 3.5.3
|
|
121
|
+
*/
|
|
122
|
+
PROPERTY_PUBLISHED_BY: "publishedBy";
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* <p>Creates an article as sub node to a specified parent. The parent must be a node with primary
|
|
126
|
+
* node type sv:archive. If other parent is specified a <code>ConstraintViolationException</code> is thrown.</p>
|
|
127
|
+
*
|
|
128
|
+
* <p>Any name can be given a article, it should however not contain the character '/'.</p>
|
|
129
|
+
*
|
|
130
|
+
* <p>If no parent, no template or no name is specified a <code>NullPointerException</code> is thrown.</p>
|
|
131
|
+
*
|
|
132
|
+
* <p>The current user must be authorized to create pages, layouts and to do write operations on the parent node. A
|
|
133
|
+
* <code>ConstraintViolationException</code> will be thrown if not.</p>
|
|
134
|
+
*
|
|
135
|
+
* <p>Note that a new article inherits metadata and permissions from its parent.</p>
|
|
136
|
+
*
|
|
137
|
+
* <p>Use {@link senselogic.sitevision.api.webresource.webcontent.WebContentUtil#updateContent(javax.jcr.Node, java.util.Map)}
|
|
138
|
+
* to add content to the new article.</p>
|
|
139
|
+
* @param aParent the parent node of the article. May not be <code>null</code>
|
|
140
|
+
* @param aTemplate the template used for the article. May not be <code>null</code>
|
|
141
|
+
* @param aName the name of the sv:article. May not be <code>null</code>
|
|
142
|
+
* @return a sv:article node corresponding to the newly created article. Will never return <code>null</code>
|
|
143
|
+
* @throws javax.jcr.nodetype.ConstraintViolationException if an invalid parent is specified or if the current user is not authorized to create the article
|
|
144
|
+
* @throws RepositoryException if something else goes wrong
|
|
145
|
+
* @see #createArticle(javax.jcr.Node, javax.jcr.Node, String, java.util.Map, java.util.Map)
|
|
146
|
+
*/
|
|
147
|
+
createArticle(aParent: Node, aTemplate: Node, aName: string): Node;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* <p>Creates an article with properties and web content. The parent must be a node with primary node type sv:archive.
|
|
151
|
+
* If other parent is specified a <code>ConstraintViolationException</code> is thrown. It is possible to provide the web content for the article
|
|
152
|
+
* as well as article properties.</p>
|
|
153
|
+
*
|
|
154
|
+
* <p>Properties:</p>
|
|
155
|
+
* <ul>
|
|
156
|
+
* <li>
|
|
157
|
+
* {@link #PROPERTY_VISIBLE_IN_MENUS}
|
|
158
|
+
* </li>
|
|
159
|
+
* <li>
|
|
160
|
+
* {@link #PROPERTY_SHORTID} - If the short id is already used by an other Sitevision node an <code>IllegalArgumentException</code> is thrown
|
|
161
|
+
* </li>
|
|
162
|
+
* <li>
|
|
163
|
+
* {@link #PROPERTY_LOCALE}
|
|
164
|
+
* </li>
|
|
165
|
+
* <li>
|
|
166
|
+
* {@link #PROPERTY_ROBOTS_INDEX}
|
|
167
|
+
* </li>
|
|
168
|
+
* <li>
|
|
169
|
+
* {@link #PROPERTY_CREATION_DATE}
|
|
170
|
+
* </li>
|
|
171
|
+
* <li>
|
|
172
|
+
* {@link #PROPERTY_CREATED_BY}
|
|
173
|
+
* </li>
|
|
174
|
+
* <li>
|
|
175
|
+
* {@link #PROPERTY_LAST_MODIFIED_DATE}
|
|
176
|
+
* </li>
|
|
177
|
+
* <li>
|
|
178
|
+
* {@link #PROPERTY_LAST_MODIFIED_BY}
|
|
179
|
+
* </li>
|
|
180
|
+
* <li>
|
|
181
|
+
* {@link #PROPERTY_LAST_PUBLISH_DATE}
|
|
182
|
+
* </li>
|
|
183
|
+
* <li>
|
|
184
|
+
* {@link #PROPERTY_LAST_PUBLISHED_BY}
|
|
185
|
+
* </li>
|
|
186
|
+
* <li>
|
|
187
|
+
* {@link #PROPERTY_PUBLISH_DATE}
|
|
188
|
+
* </li>
|
|
189
|
+
* <li>
|
|
190
|
+
* {@link #PROPERTY_PUBLISHED_BY}
|
|
191
|
+
* </li>
|
|
192
|
+
* </ul>
|
|
193
|
+
* <p>
|
|
194
|
+
* If an invalid value is provided for a property, an <code>IllegalArgumentException</code> is thrown
|
|
195
|
+
* </p>
|
|
196
|
+
*
|
|
197
|
+
* <p>
|
|
198
|
+
* Default values:
|
|
199
|
+
* </p>
|
|
200
|
+
* <ul>
|
|
201
|
+
* <li>{@link #PROPERTY_VISIBLE_IN_MENUS} - true</li>
|
|
202
|
+
* <li>{@link #PROPERTY_SHORTID} - "" (a short id will be generated by Sitevision)</li>
|
|
203
|
+
* <li>{@link #PROPERTY_LOCALE} - parent locale</li>
|
|
204
|
+
* <li>{@link #PROPERTY_ROBOTS_INDEX} - true</li>
|
|
205
|
+
* <li>{@link #PROPERTY_CREATION_DATE} - current time stamp</li>
|
|
206
|
+
* <li>{@link #PROPERTY_CREATED_BY} - current user</li>
|
|
207
|
+
* <li>{@link #PROPERTY_LAST_MODIFIED_DATE} - current time stamp</li>
|
|
208
|
+
* <li>{@link #PROPERTY_LAST_MODIFIED_BY} - current user</li>
|
|
209
|
+
* <li>{@link #PROPERTY_LAST_PUBLISH_DATE} - null (will not have a value)</li>
|
|
210
|
+
* <li>{@link #PROPERTY_LAST_PUBLISHED_BY} - null (will not have a value)</li>
|
|
211
|
+
* <li>{@link #PROPERTY_PUBLISH_DATE} - null (will not have a value)</li>
|
|
212
|
+
* <li>{@link #PROPERTY_PUBLISHED_BY} - null (will not have a value)</li>
|
|
213
|
+
* </ul>
|
|
214
|
+
*
|
|
215
|
+
* <p>The article content is specified using the
|
|
216
|
+
* content map containing keys corresponding to layout names (e.g. "mittenspalt") on the articel and values containing the
|
|
217
|
+
* HTML used to generate a portlet structure in the layout. The provided content is converted to
|
|
218
|
+
* Sitevision text, table and image modules. It is also possible to specify that a horizontal or a vertical
|
|
219
|
+
* layout should be created. For more information about the HTML to portlet mapping can be found in the
|
|
220
|
+
* {@link senselogic.sitevision.api.webresource.webcontent.WebContentUtil} javadoc.
|
|
221
|
+
*
|
|
222
|
+
* <p>If no parent, no template or no name is specified a <code>NullPointerException</code> is thrown.</p>
|
|
223
|
+
*
|
|
224
|
+
* <p>The current user must be authorized to create pages, layouts and to do write operations on the parent node or
|
|
225
|
+
* a <code>ConstraintViolationException</code> will be thrown.</p>
|
|
226
|
+
*
|
|
227
|
+
* <p>Note that a new page inherits metadata and permissions from its parent.</p>
|
|
228
|
+
* @param aParent the parent node of the article. May not be <code>null</code>
|
|
229
|
+
* @param aTemplate the sv:template node to be used for the article. May not be <code>null</code>
|
|
230
|
+
* @param aName the name of the sv:article. May not be <code>null</code>
|
|
231
|
+
* @param properties the article properties. May be <code>null</code>
|
|
232
|
+
* @param content a map containing the HTML content. The keys must correspond to layout names on the node. May be <code>null</code>
|
|
233
|
+
* @return a sv:article node corresponding to the newly created article. Will never return <code>null</code>
|
|
234
|
+
* @throws javax.jcr.nodetype.ConstraintViolationException if an invalid parent is specified or if the current user is not authorized to create the article
|
|
235
|
+
* @throws RepositoryException if something else goes wrong
|
|
236
|
+
* @see #createArticle(javax.jcr.Node, javax.jcr.Node, String)
|
|
237
|
+
*/
|
|
238
|
+
createArticle(
|
|
239
|
+
aParent: Node,
|
|
240
|
+
aTemplate: Node,
|
|
241
|
+
aName: string,
|
|
242
|
+
properties: unknown,
|
|
243
|
+
content: unknown
|
|
244
|
+
): Node;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* <p>Updates the properties of an article. If no article is specified a <code>NullPointerException</code>
|
|
248
|
+
* is thrown. If the node is not a sv:article an <code>IllegalArgumentException</code> is thrown.</p>
|
|
249
|
+
*
|
|
250
|
+
* <p>
|
|
251
|
+
* Properties:
|
|
252
|
+
* </p>
|
|
253
|
+
* <ul>
|
|
254
|
+
* <li>
|
|
255
|
+
* {@link #PROPERTY_VISIBLE_IN_MENUS}
|
|
256
|
+
* </li>
|
|
257
|
+
* <li>
|
|
258
|
+
* {@link #PROPERTY_SHORTID} - If the short id is already used by an other Sitevision node an <code>IllegalArgumentException</code> is thrown
|
|
259
|
+
* </li>
|
|
260
|
+
* <li>
|
|
261
|
+
* {@link #PROPERTY_LOCALE}
|
|
262
|
+
* </li>
|
|
263
|
+
* <li>
|
|
264
|
+
* {@link #PROPERTY_ROBOTS_INDEX}
|
|
265
|
+
* </li>
|
|
266
|
+
* <li>
|
|
267
|
+
* {@link #PROPERTY_CREATION_DATE}
|
|
268
|
+
* </li>
|
|
269
|
+
* <li>
|
|
270
|
+
* {@link #PROPERTY_CREATED_BY}
|
|
271
|
+
* </li>
|
|
272
|
+
* <li>
|
|
273
|
+
* {@link #PROPERTY_LAST_MODIFIED_DATE}
|
|
274
|
+
* </li>
|
|
275
|
+
* <li>
|
|
276
|
+
* {@link #PROPERTY_LAST_MODIFIED_BY}
|
|
277
|
+
* </li>
|
|
278
|
+
* <li>
|
|
279
|
+
* {@link #PROPERTY_LAST_PUBLISH_DATE}
|
|
280
|
+
* </li>
|
|
281
|
+
* <li>
|
|
282
|
+
* {@link #PROPERTY_LAST_PUBLISHED_BY}
|
|
283
|
+
* </li>
|
|
284
|
+
* <li>
|
|
285
|
+
* {@link #PROPERTY_PUBLISH_DATE}
|
|
286
|
+
* </li>
|
|
287
|
+
* <li>
|
|
288
|
+
* {@link #PROPERTY_PUBLISHED_BY}
|
|
289
|
+
* </li>
|
|
290
|
+
* </ul>
|
|
291
|
+
* <p>
|
|
292
|
+
* If an invalid value is provided for a property, an <code>IllegalArgumentException</code> is thrown.
|
|
293
|
+
* </p>
|
|
294
|
+
*
|
|
295
|
+
* <p>The current user must be authorized to do write operations on the article or
|
|
296
|
+
* a <code>ConstraintViolationException</code> will be thrown.</p>
|
|
297
|
+
*
|
|
298
|
+
* <p>If no properties map is specified a <code>NullPointerException</code> is thrown.</p>
|
|
299
|
+
* @param anArticle the sv:article that will be altered. May not be <code>null</code>
|
|
300
|
+
* @param properties the article properties. May not be <code>null</code>
|
|
301
|
+
* @throws javax.jcr.nodetype.ConstraintViolationException if the current user is not authorized to alter the article
|
|
302
|
+
* @throws RepositoryException if something else goes wrong
|
|
303
|
+
*/
|
|
304
|
+
updateArticle(anArticle: Node, properties: unknown): void;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* <p>Alters the name of an article. If no article is specified a <code>NullPointerException</code>
|
|
308
|
+
* is thrown. If the node is not an sv:article an <code>IllegalArgumentException</code> is thrown.</p>
|
|
309
|
+
*
|
|
310
|
+
* <p>Any name can be given an article, it should however not contain the character '/'. If null is
|
|
311
|
+
* provided a <code>NullPointerException</code> is thrown.</p>
|
|
312
|
+
*
|
|
313
|
+
* <p>The current user must be authorized to do write operations on the article or
|
|
314
|
+
* a <code>ConstraintViolationException</code> will be thrown.</p>
|
|
315
|
+
* @param anArticle the article that should be renamed. May not be <code>null</code>
|
|
316
|
+
* @param aName the new name of the article. May not be <code>null</code>
|
|
317
|
+
* @throws javax.jcr.nodetype.ConstraintViolationException if the current user is not authorized to alter the name of the article
|
|
318
|
+
* @throws RepositoryException if something else goes wrong
|
|
319
|
+
*/
|
|
320
|
+
renameArticle(anArticle: Node, aName: string): void;
|
|
257
321
|
}
|
|
258
322
|
|
|
259
|
-
|
|
323
|
+
declare namespace ArticleUtil {}
|
|
324
|
+
|
|
325
|
+
declare var articleUtil: ArticleUtil;
|
|
326
|
+
|
|
327
|
+
export = articleUtil;
|