@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,156 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Adds a query field.
|
|
6
|
-
*
|
|
7
|
-
* <p>
|
|
8
|
-
* <em>Solr note: this is the 'qf' param.</em>
|
|
9
|
-
* </p>
|
|
10
|
-
* @param aQueryField the name of the query field, a <code>null</code> or whitespace-only value will be ignored
|
|
11
|
-
* @return this builder
|
|
12
|
-
*/
|
|
13
|
-
export function addQueryField(aQueryField: string): ExtendedDismaxParserBuilder;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Adds a query field with a specific boost.
|
|
17
|
-
*
|
|
18
|
-
* <p>
|
|
19
|
-
* <em>Solr note: this is the 'qf' param.</em>
|
|
20
|
-
* </p>
|
|
21
|
-
* @param aQueryField the name of the query field, a <code>null</code> or whitespace-only value will be ignored
|
|
22
|
-
* @param aBoostValue the boost value, a negative value will be ignored
|
|
23
|
-
* @return this builder
|
|
24
|
-
*/
|
|
25
|
-
export function addQueryField(
|
|
26
|
-
aQueryField: string,
|
|
27
|
-
aBoostValue: number
|
|
28
|
-
): ExtendedDismaxParserBuilder;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Removes all currently specified query fields.
|
|
32
|
-
* @return this builder
|
|
33
|
-
*/
|
|
34
|
-
export function clearQueryFields(): ExtendedDismaxParserBuilder;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Sets the tiebreaker.
|
|
38
|
-
*
|
|
39
|
-
* <p>
|
|
40
|
-
* <em>Solr note: this is the 'tie' param. The value should typically be something much less than 1.</em>
|
|
41
|
-
* </p>
|
|
42
|
-
* @param aTieBreaker the tiebreaker
|
|
43
|
-
* @return this builder
|
|
44
|
-
* @since Sitevision 4.0.2
|
|
45
|
-
*/
|
|
46
|
-
export function setTieBreaker(aTieBreaker: number): ExtendedDismaxParserBuilder;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Sets the user fields.
|
|
50
|
-
*
|
|
51
|
-
* <p>
|
|
52
|
-
* <em>Solr note: this is the 'uf' param.</em>
|
|
53
|
-
* </p>
|
|
54
|
-
* @param aUserFields the user fields
|
|
55
|
-
* @return this builder
|
|
56
|
-
* @since Sitevision 4.0.2
|
|
57
|
-
*/
|
|
58
|
-
export function setUserFields(aUserFields: string): ExtendedDismaxParserBuilder;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Sets the minimum should match.
|
|
62
|
-
*
|
|
63
|
-
* <p>
|
|
64
|
-
* <em>Solr note: this is the 'mm' param. A value of 100% corresponds to the AND operator and a value of 0% corresponds to th OR operator.</em>
|
|
65
|
-
* </p>
|
|
66
|
-
* @param aMinimumShouldMatch the minimum should match
|
|
67
|
-
* @return this builder
|
|
68
|
-
* @since Sitevision 4.0.2
|
|
69
|
-
*/
|
|
70
|
-
export function setMinimumShouldMatch(
|
|
71
|
-
aMinimumShouldMatch: string
|
|
72
|
-
): ExtendedDismaxParserBuilder;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Adds a phrase field.
|
|
76
|
-
*
|
|
77
|
-
* <p>
|
|
78
|
-
* <em>Solr note: this is the 'pf' param.</em>
|
|
79
|
-
* </p>
|
|
80
|
-
* @param aPhraseField a phrase field, a <code>null</code> or whitespace-only value will be ignored
|
|
81
|
-
* @return this builder
|
|
82
|
-
* @since Sitevision 4.0.2
|
|
83
|
-
*/
|
|
84
|
-
export function addPhraseField(
|
|
85
|
-
aPhraseField: string
|
|
86
|
-
): ExtendedDismaxParserBuilder;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Removes all currently specified phrase fields.
|
|
90
|
-
* @return this builder
|
|
91
|
-
* @since Sitevision 4.0.2
|
|
92
|
-
*/
|
|
93
|
-
export function clearPhraseFields(): ExtendedDismaxParserBuilder;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Sets a boost query.
|
|
97
|
-
*
|
|
98
|
-
* <p>
|
|
99
|
-
* <em>Solr note: this is the 'bq' param.</em>
|
|
100
|
-
* </p>
|
|
101
|
-
* @param aBoostQuery the boost query
|
|
102
|
-
* @return this builder
|
|
103
|
-
* @since Sitevision 4.0.2
|
|
104
|
-
*/
|
|
105
|
-
export function setBoostQuery(aBoostQuery: string): ExtendedDismaxParserBuilder;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Adds an additive boost function.
|
|
109
|
-
*
|
|
110
|
-
* <p>
|
|
111
|
-
* <em>Solr note: this is the 'bf' param.</em>
|
|
112
|
-
* </p>
|
|
113
|
-
* @param aAdditiveBoostFunction an additive boost function, a <code>null</code> or whitespace-only value will be ignored
|
|
114
|
-
* @return this builder
|
|
115
|
-
* @since Sitevision 4.0.2
|
|
116
|
-
*/
|
|
117
|
-
export function addAdditiveBoostFunction(
|
|
118
|
-
aAdditiveBoostFunction: string
|
|
119
|
-
): ExtendedDismaxParserBuilder;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Removes all currently specified additive boost functions.
|
|
123
|
-
* @return this builder
|
|
124
|
-
* @since Sitevision 4.0.2
|
|
125
|
-
*/
|
|
126
|
-
export function clearAdditiveBoostFunctions(): ExtendedDismaxParserBuilder;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Adds a a multiplicative boost function.
|
|
130
|
-
*
|
|
131
|
-
* <p>
|
|
132
|
-
* <em>Solr note: this is the 'boost' param.</em>
|
|
133
|
-
* </p>
|
|
134
|
-
* @param aMultiplicativeBoostFunction a multiplicative boost function, a <code>null</code> or whitespace-only value will be ignored
|
|
135
|
-
* @return this builder
|
|
136
|
-
* @since Sitevision 4.0.2
|
|
137
|
-
*/
|
|
138
|
-
export function addMultiplicativeBoostFunction(
|
|
139
|
-
aMultiplicativeBoostFunction: string
|
|
140
|
-
): ExtendedDismaxParserBuilder;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Removes all currently specified multiplicative boost functions.
|
|
144
|
-
* @return this builder
|
|
145
|
-
* @since Sitevision 4.0.2
|
|
146
|
-
*/
|
|
147
|
-
export function clearMultiplicativeBoostFunctions(): ExtendedDismaxParserBuilder;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Creates a Parser component instance using currently specified state/behaviour.
|
|
151
|
-
* @return a parser component
|
|
152
|
-
*/
|
|
153
|
-
export function build(): Parser;
|
|
1
|
+
import type Parser from "../../types/senselogic/sitevision/api/search/searcher/component/Parser";
|
|
2
|
+
import type Builder from "../../types/senselogic/sitevision/api/base/Builder";
|
|
154
3
|
|
|
155
4
|
/**
|
|
156
5
|
* <p>
|
|
@@ -255,22 +104,159 @@ export function build(): Parser;
|
|
|
255
104
|
* @author Magnus Lövgren
|
|
256
105
|
* @since Sitevision 3.6
|
|
257
106
|
*/
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
107
|
+
export interface ExtendedDismaxParserBuilder extends Builder {
|
|
108
|
+
/**
|
|
109
|
+
* Adds a query field.
|
|
110
|
+
*
|
|
111
|
+
* <p>
|
|
112
|
+
* <em>Solr note: this is the 'qf' param.</em>
|
|
113
|
+
* </p>
|
|
114
|
+
* @param aQueryField the name of the query field, a <code>null</code> or whitespace-only value will be ignored
|
|
115
|
+
* @return this builder
|
|
116
|
+
*/
|
|
117
|
+
addQueryField(aQueryField: string): ExtendedDismaxParserBuilder;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Adds a query field with a specific boost.
|
|
121
|
+
*
|
|
122
|
+
* <p>
|
|
123
|
+
* <em>Solr note: this is the 'qf' param.</em>
|
|
124
|
+
* </p>
|
|
125
|
+
* @param aQueryField the name of the query field, a <code>null</code> or whitespace-only value will be ignored
|
|
126
|
+
* @param aBoostValue the boost value, a negative value will be ignored
|
|
127
|
+
* @return this builder
|
|
128
|
+
*/
|
|
129
|
+
addQueryField(
|
|
130
|
+
aQueryField: string,
|
|
131
|
+
aBoostValue: number
|
|
132
|
+
): ExtendedDismaxParserBuilder;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Removes all currently specified query fields.
|
|
136
|
+
* @return this builder
|
|
137
|
+
*/
|
|
138
|
+
clearQueryFields(): ExtendedDismaxParserBuilder;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Sets the tiebreaker.
|
|
142
|
+
*
|
|
143
|
+
* <p>
|
|
144
|
+
* <em>Solr note: this is the 'tie' param. The value should typically be something much less than 1.</em>
|
|
145
|
+
* </p>
|
|
146
|
+
* @param aTieBreaker the tiebreaker
|
|
147
|
+
* @return this builder
|
|
148
|
+
* @since Sitevision 4.0.2
|
|
149
|
+
*/
|
|
150
|
+
setTieBreaker(aTieBreaker: number): ExtendedDismaxParserBuilder;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Sets the user fields.
|
|
154
|
+
*
|
|
155
|
+
* <p>
|
|
156
|
+
* <em>Solr note: this is the 'uf' param.</em>
|
|
157
|
+
* </p>
|
|
158
|
+
* @param aUserFields the user fields
|
|
159
|
+
* @return this builder
|
|
160
|
+
* @since Sitevision 4.0.2
|
|
161
|
+
*/
|
|
162
|
+
setUserFields(aUserFields: string): ExtendedDismaxParserBuilder;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Sets the minimum should match.
|
|
166
|
+
*
|
|
167
|
+
* <p>
|
|
168
|
+
* <em>Solr note: this is the 'mm' param. A value of 100% corresponds to the AND operator and a value of 0% corresponds to th OR operator.</em>
|
|
169
|
+
* </p>
|
|
170
|
+
* @param aMinimumShouldMatch the minimum should match
|
|
171
|
+
* @return this builder
|
|
172
|
+
* @since Sitevision 4.0.2
|
|
173
|
+
*/
|
|
174
|
+
setMinimumShouldMatch(
|
|
175
|
+
aMinimumShouldMatch: string
|
|
176
|
+
): ExtendedDismaxParserBuilder;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Adds a phrase field.
|
|
180
|
+
*
|
|
181
|
+
* <p>
|
|
182
|
+
* <em>Solr note: this is the 'pf' param.</em>
|
|
183
|
+
* </p>
|
|
184
|
+
* @param aPhraseField a phrase field, a <code>null</code> or whitespace-only value will be ignored
|
|
185
|
+
* @return this builder
|
|
186
|
+
* @since Sitevision 4.0.2
|
|
187
|
+
*/
|
|
188
|
+
addPhraseField(aPhraseField: string): ExtendedDismaxParserBuilder;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Removes all currently specified phrase fields.
|
|
192
|
+
* @return this builder
|
|
193
|
+
* @since Sitevision 4.0.2
|
|
194
|
+
*/
|
|
195
|
+
clearPhraseFields(): ExtendedDismaxParserBuilder;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Sets a boost query.
|
|
199
|
+
*
|
|
200
|
+
* <p>
|
|
201
|
+
* <em>Solr note: this is the 'bq' param.</em>
|
|
202
|
+
* </p>
|
|
203
|
+
* @param aBoostQuery the boost query
|
|
204
|
+
* @return this builder
|
|
205
|
+
* @since Sitevision 4.0.2
|
|
206
|
+
*/
|
|
207
|
+
setBoostQuery(aBoostQuery: string): ExtendedDismaxParserBuilder;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Adds an additive boost function.
|
|
211
|
+
*
|
|
212
|
+
* <p>
|
|
213
|
+
* <em>Solr note: this is the 'bf' param.</em>
|
|
214
|
+
* </p>
|
|
215
|
+
* @param aAdditiveBoostFunction an additive boost function, a <code>null</code> or whitespace-only value will be ignored
|
|
216
|
+
* @return this builder
|
|
217
|
+
* @since Sitevision 4.0.2
|
|
218
|
+
*/
|
|
219
|
+
addAdditiveBoostFunction(
|
|
220
|
+
aAdditiveBoostFunction: string
|
|
221
|
+
): ExtendedDismaxParserBuilder;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Removes all currently specified additive boost functions.
|
|
225
|
+
* @return this builder
|
|
226
|
+
* @since Sitevision 4.0.2
|
|
227
|
+
*/
|
|
228
|
+
clearAdditiveBoostFunctions(): ExtendedDismaxParserBuilder;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Adds a a multiplicative boost function.
|
|
232
|
+
*
|
|
233
|
+
* <p>
|
|
234
|
+
* <em>Solr note: this is the 'boost' param.</em>
|
|
235
|
+
* </p>
|
|
236
|
+
* @param aMultiplicativeBoostFunction a multiplicative boost function, a <code>null</code> or whitespace-only value will be ignored
|
|
237
|
+
* @return this builder
|
|
238
|
+
* @since Sitevision 4.0.2
|
|
239
|
+
*/
|
|
240
|
+
addMultiplicativeBoostFunction(
|
|
241
|
+
aMultiplicativeBoostFunction: string
|
|
242
|
+
): ExtendedDismaxParserBuilder;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Removes all currently specified multiplicative boost functions.
|
|
246
|
+
* @return this builder
|
|
247
|
+
* @since Sitevision 4.0.2
|
|
248
|
+
*/
|
|
249
|
+
clearMultiplicativeBoostFunctions(): ExtendedDismaxParserBuilder;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Creates a Parser component instance using currently specified state/behaviour.
|
|
253
|
+
* @return a parser component
|
|
254
|
+
*/
|
|
255
|
+
build(): Parser;
|
|
274
256
|
}
|
|
275
257
|
|
|
276
|
-
|
|
258
|
+
declare namespace ExtendedDismaxParserBuilder {}
|
|
259
|
+
|
|
260
|
+
declare var extendedDismaxParserBuilder: ExtendedDismaxParserBuilder;
|
|
261
|
+
|
|
262
|
+
export = extendedDismaxParserBuilder;
|
|
@@ -1,151 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The locale to use when extracting the decription of file icons.
|
|
3
|
-
* <p>Default is the locale of the currently executing portlet.</p>
|
|
4
|
-
* <p>
|
|
5
|
-
* <strong>Note!</strong> Icons (icon and default icon) that has been loaded with a different locale will be removed whenever an invocation
|
|
6
|
-
* of this method changes the locale.
|
|
7
|
-
* </p>
|
|
8
|
-
* @param aLocale the locale to use when extracting the icon description
|
|
9
|
-
*/
|
|
10
|
-
export function setLocale(aLocale: unknown): void;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Which type if file icons (small or large) that should be rendered.
|
|
14
|
-
* <p>Default is <code>true</code>.</p>
|
|
15
|
-
* <p>
|
|
16
|
-
* <strong>Note!</strong> Icons (icon and default icon) that has been loaded with a different useSmallIcons state will be removed whenever
|
|
17
|
-
* an invocation of this method changes the useSmallIcons state.
|
|
18
|
-
* </p>
|
|
19
|
-
* @param aUseSmallIcons whether or not to use small icons (<code>true</code> == "use small icons", <code>false</code> == "use large icons")
|
|
20
|
-
*/
|
|
21
|
-
export function setUseSmallIcons(aUseSmallIcons: boolean): void;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Utility method for executing <code>setUseSmallIcons(false)</code>, i.e. "use large icons when rendering".
|
|
25
|
-
* @see #setUseSmallIcons(boolean)
|
|
26
|
-
*/
|
|
27
|
-
export function clearUseSmallIcons(): void;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Utility method for executing <code>setUseSmallIcons(true)</code>, i.e. "use small icons when rendering".
|
|
31
|
-
* @see #setUseSmallIcons(boolean)
|
|
32
|
-
*/
|
|
33
|
-
export function forceUseSmallIcons(): void;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* If file icon descriptions should be used or not.
|
|
37
|
-
* <p>Default is <code>true</code>.</p>
|
|
38
|
-
* <p>Note that file icon descriptions may be locale-dependent, see {@link #setLocale(java.util.Locale)}.</p>
|
|
39
|
-
* @param aUseDescription whether or not a file icon description should be used when rendering
|
|
40
|
-
*/
|
|
41
|
-
export function setUseDescription(aUseDescription: boolean): void;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Utility method for executing <code>setUseDescription(false)</code>, i.e. "don't use description when rendering".
|
|
45
|
-
* @see #setUseDescription(boolean)
|
|
46
|
-
*/
|
|
47
|
-
export function clearUseDescription(): void;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Utility method for executing <code>setUseDescription(true)</code>, i.e. "use description when rendering".
|
|
51
|
-
* @see #setUseDescription(boolean)
|
|
52
|
-
*/
|
|
53
|
-
export function forceUseDescription(): void;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Uses a content type to load the fallback icon that should be used when rendering if no icon is loaded.
|
|
57
|
-
* @param aContentType the content type (mime type) that decides what file icon to load
|
|
58
|
-
* @return true if a default file icon was loaded, false if not
|
|
59
|
-
*/
|
|
60
|
-
export function loadDefaultIconByContentType(aContentType: string): boolean;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Uses a URI to load the fallback icon that should be used when rendering if no icon is loaded.
|
|
64
|
-
* <p>
|
|
65
|
-
* This method tries to extract a file extension from the URI and use that extension to load the default file icon.
|
|
66
|
-
* If the URI doesn't end with a file extension, default icon loading will fail.
|
|
67
|
-
* </p>
|
|
68
|
-
* @param aURI the uri that decides what file icon to load
|
|
69
|
-
* @return <code>true</code> if a default file icon was loaded, <code>false</code> if not
|
|
70
|
-
*/
|
|
71
|
-
export function loadDefaultIconByURI(aURI: string): boolean;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Uses a file extension to load the fallback icon that should be used when rendering if no icon is loaded.
|
|
75
|
-
* @param aFileExtension the file extension that decides what file icon to load
|
|
76
|
-
* @return <code>true</code> if a default file icon was loaded, <code>false</code> if not
|
|
77
|
-
*/
|
|
78
|
-
export function loadDefaultIconByFileExtension(aFileExtension: string): boolean;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Whether or not a default icon is loaded.
|
|
82
|
-
* @return <code>true</code> if a default icon is loaded, <code>false</code> if not.
|
|
83
|
-
*/
|
|
84
|
-
export function isDefaultIconLoaded(): boolean;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Removes loaded default icon (does nothing if no default icon is loaded)
|
|
88
|
-
|
|
89
|
-
*/
|
|
90
|
-
export function clearDefaultIcon(): void;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Uses a content type to load the icon that should be rendered.
|
|
94
|
-
* @param aContentType the content type (mime type) that decides what file icon to load
|
|
95
|
-
* @return <code>true</code> if a file icon was loaded, <code>false</code> if not
|
|
96
|
-
*/
|
|
97
|
-
export function loadIconByContentType(aContentType: string): boolean;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Uses a URI to load the icon that should be rendered.
|
|
101
|
-
* <p>
|
|
102
|
-
* This method tries to extract a file extension from the URI and use that extension to load the icon.
|
|
103
|
-
* If the URI doesn't end with a file extension, icon loading will fail.
|
|
104
|
-
* </p>
|
|
105
|
-
* @param aURI the URI that decides what file icon to load
|
|
106
|
-
* @return <code>true</code> if a file icon was loaded, <code>false</code> if not
|
|
107
|
-
*/
|
|
108
|
-
export function loadIconByURI(aURI: string): boolean;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Uses a URI to load the icon that should be rendered.
|
|
112
|
-
* @param aFileExtension the file extension that decides what file icon to load
|
|
113
|
-
* @return <code>true</code> if a file icon was loaded, <code>false</code> if not
|
|
114
|
-
*/
|
|
115
|
-
export function loadIconByFileExtension(aFileExtension: string): boolean;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Whether or not an icon is loaded.
|
|
119
|
-
* @return <code>true</code> if an icon is loaded, <code>false</code> if not.
|
|
120
|
-
*/
|
|
121
|
-
export function isIconLoaded(): boolean;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Removes loaded icon (does nothing if no icon is loaded)
|
|
125
|
-
|
|
126
|
-
*/
|
|
127
|
-
export function clearIcon(): void;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Sets the CSS class name(-s) to use when rendering.
|
|
131
|
-
* @param aFontClass the CSS class name(-s) expression. An empty string is equivalent to <code>null</code> - no class attribute will be rendered
|
|
132
|
-
* @since Sitevision 3.0
|
|
133
|
-
*/
|
|
134
|
-
export function setFontClass(aFontClass: string): void;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Removes the CSS class name(-s).
|
|
138
|
-
* No class attribute will be rendered until a fontClass is set again.
|
|
139
|
-
* @since Sitevision 3.0
|
|
140
|
-
*/
|
|
141
|
-
export function clearFontClass(): void;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Builds a html img element based on current state.
|
|
145
|
-
* @return a html img element based on current state, or empty string if no icon and no default icon was loaded
|
|
146
|
-
*/
|
|
147
|
-
export function render(): string;
|
|
148
|
-
|
|
149
1
|
/**
|
|
150
2
|
* FileIconRenderer is a stateful utility interface that can be used to render valid xhtml img elements based on the file icons of the website.
|
|
151
3
|
*
|
|
@@ -297,29 +149,158 @@ export function render(): string;
|
|
|
297
149
|
* @author Magnus Lövgren
|
|
298
150
|
* @since Sitevision 2.6.1_08
|
|
299
151
|
*/
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
152
|
+
export interface FileIconRenderer {
|
|
153
|
+
/**
|
|
154
|
+
* The locale to use when extracting the decription of file icons.
|
|
155
|
+
* <p>Default is the locale of the currently executing portlet.</p>
|
|
156
|
+
* <p>
|
|
157
|
+
* <strong>Note!</strong> Icons (icon and default icon) that has been loaded with a different locale will be removed whenever an invocation
|
|
158
|
+
* of this method changes the locale.
|
|
159
|
+
* </p>
|
|
160
|
+
* @param aLocale the locale to use when extracting the icon description
|
|
161
|
+
*/
|
|
162
|
+
setLocale(aLocale: unknown): void;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Which type if file icons (small or large) that should be rendered.
|
|
166
|
+
* <p>Default is <code>true</code>.</p>
|
|
167
|
+
* <p>
|
|
168
|
+
* <strong>Note!</strong> Icons (icon and default icon) that has been loaded with a different useSmallIcons state will be removed whenever
|
|
169
|
+
* an invocation of this method changes the useSmallIcons state.
|
|
170
|
+
* </p>
|
|
171
|
+
* @param aUseSmallIcons whether or not to use small icons (<code>true</code> == "use small icons", <code>false</code> == "use large icons")
|
|
172
|
+
*/
|
|
173
|
+
setUseSmallIcons(aUseSmallIcons: boolean): void;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Utility method for executing <code>setUseSmallIcons(false)</code>, i.e. "use large icons when rendering".
|
|
177
|
+
* @see #setUseSmallIcons(boolean)
|
|
178
|
+
*/
|
|
179
|
+
clearUseSmallIcons(): void;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Utility method for executing <code>setUseSmallIcons(true)</code>, i.e. "use small icons when rendering".
|
|
183
|
+
* @see #setUseSmallIcons(boolean)
|
|
184
|
+
*/
|
|
185
|
+
forceUseSmallIcons(): void;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* If file icon descriptions should be used or not.
|
|
189
|
+
* <p>Default is <code>true</code>.</p>
|
|
190
|
+
* <p>Note that file icon descriptions may be locale-dependent, see {@link #setLocale(java.util.Locale)}.</p>
|
|
191
|
+
* @param aUseDescription whether or not a file icon description should be used when rendering
|
|
192
|
+
*/
|
|
193
|
+
setUseDescription(aUseDescription: boolean): void;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Utility method for executing <code>setUseDescription(false)</code>, i.e. "don't use description when rendering".
|
|
197
|
+
* @see #setUseDescription(boolean)
|
|
198
|
+
*/
|
|
199
|
+
clearUseDescription(): void;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Utility method for executing <code>setUseDescription(true)</code>, i.e. "use description when rendering".
|
|
203
|
+
* @see #setUseDescription(boolean)
|
|
204
|
+
*/
|
|
205
|
+
forceUseDescription(): void;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Uses a content type to load the fallback icon that should be used when rendering if no icon is loaded.
|
|
209
|
+
* @param aContentType the content type (mime type) that decides what file icon to load
|
|
210
|
+
* @return true if a default file icon was loaded, false if not
|
|
211
|
+
*/
|
|
212
|
+
loadDefaultIconByContentType(aContentType: string): boolean;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Uses a URI to load the fallback icon that should be used when rendering if no icon is loaded.
|
|
216
|
+
* <p>
|
|
217
|
+
* This method tries to extract a file extension from the URI and use that extension to load the default file icon.
|
|
218
|
+
* If the URI doesn't end with a file extension, default icon loading will fail.
|
|
219
|
+
* </p>
|
|
220
|
+
* @param aURI the uri that decides what file icon to load
|
|
221
|
+
* @return <code>true</code> if a default file icon was loaded, <code>false</code> if not
|
|
222
|
+
*/
|
|
223
|
+
loadDefaultIconByURI(aURI: string): boolean;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Uses a file extension to load the fallback icon that should be used when rendering if no icon is loaded.
|
|
227
|
+
* @param aFileExtension the file extension that decides what file icon to load
|
|
228
|
+
* @return <code>true</code> if a default file icon was loaded, <code>false</code> if not
|
|
229
|
+
*/
|
|
230
|
+
loadDefaultIconByFileExtension(aFileExtension: string): boolean;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Whether or not a default icon is loaded.
|
|
234
|
+
* @return <code>true</code> if a default icon is loaded, <code>false</code> if not.
|
|
235
|
+
*/
|
|
236
|
+
isDefaultIconLoaded(): boolean;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Removes loaded default icon (does nothing if no default icon is loaded)
|
|
240
|
+
|
|
241
|
+
*/
|
|
242
|
+
clearDefaultIcon(): void;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Uses a content type to load the icon that should be rendered.
|
|
246
|
+
* @param aContentType the content type (mime type) that decides what file icon to load
|
|
247
|
+
* @return <code>true</code> if a file icon was loaded, <code>false</code> if not
|
|
248
|
+
*/
|
|
249
|
+
loadIconByContentType(aContentType: string): boolean;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Uses a URI to load the icon that should be rendered.
|
|
253
|
+
* <p>
|
|
254
|
+
* This method tries to extract a file extension from the URI and use that extension to load the icon.
|
|
255
|
+
* If the URI doesn't end with a file extension, icon loading will fail.
|
|
256
|
+
* </p>
|
|
257
|
+
* @param aURI the URI that decides what file icon to load
|
|
258
|
+
* @return <code>true</code> if a file icon was loaded, <code>false</code> if not
|
|
259
|
+
*/
|
|
260
|
+
loadIconByURI(aURI: string): boolean;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Uses a URI to load the icon that should be rendered.
|
|
264
|
+
* @param aFileExtension the file extension that decides what file icon to load
|
|
265
|
+
* @return <code>true</code> if a file icon was loaded, <code>false</code> if not
|
|
266
|
+
*/
|
|
267
|
+
loadIconByFileExtension(aFileExtension: string): boolean;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Whether or not an icon is loaded.
|
|
271
|
+
* @return <code>true</code> if an icon is loaded, <code>false</code> if not.
|
|
272
|
+
*/
|
|
273
|
+
isIconLoaded(): boolean;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Removes loaded icon (does nothing if no icon is loaded)
|
|
277
|
+
|
|
278
|
+
*/
|
|
279
|
+
clearIcon(): void;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Sets the CSS class name(-s) to use when rendering.
|
|
283
|
+
* @param aFontClass the CSS class name(-s) expression. An empty string is equivalent to <code>null</code> - no class attribute will be rendered
|
|
284
|
+
* @since Sitevision 3.0
|
|
285
|
+
*/
|
|
286
|
+
setFontClass(aFontClass: string): void;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Removes the CSS class name(-s).
|
|
290
|
+
* No class attribute will be rendered until a fontClass is set again.
|
|
291
|
+
* @since Sitevision 3.0
|
|
292
|
+
*/
|
|
293
|
+
clearFontClass(): void;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Builds a html img element based on current state.
|
|
297
|
+
* @return a html img element based on current state, or empty string if no icon and no default icon was loaded
|
|
298
|
+
*/
|
|
299
|
+
render(): string;
|
|
323
300
|
}
|
|
324
301
|
|
|
325
|
-
|
|
302
|
+
declare namespace FileIconRenderer {}
|
|
303
|
+
|
|
304
|
+
declare var fileIconRenderer: FileIconRenderer;
|
|
305
|
+
|
|
306
|
+
export = fileIconRenderer;
|