@sitevision/api 1.0.19 → 1.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/router/index.d.ts +1 -1
- package/hidden/javax/jcr/Binary/index.d.ts +86 -0
- package/hidden/javax/jcr/Credentials/index.d.ts +11 -0
- package/hidden/javax/jcr/ImportUUIDBehavior/index.d.ts +11 -0
- package/hidden/javax/jcr/Item/index.d.ts +353 -0
- package/hidden/javax/jcr/ItemVisitor/index.d.ts +41 -0
- package/hidden/javax/jcr/NamespaceRegistry/index.d.ts +100 -0
- package/hidden/javax/jcr/Node/index.d.ts +2808 -0
- package/hidden/javax/jcr/NodeIterator/index.d.ts +18 -0
- package/hidden/javax/jcr/Property/index.d.ts +801 -0
- package/hidden/javax/jcr/PropertyIterator/index.d.ts +17 -0
- package/hidden/javax/jcr/RangeIterator/index.d.ts +75 -0
- package/hidden/javax/jcr/Repository/index.d.ts +318 -0
- package/hidden/javax/jcr/RepositoryFactory/index.d.ts +90 -0
- package/hidden/javax/jcr/Value/index.d.ts +190 -0
- package/hidden/javax/jcr/ValueFactory/index.d.ts +179 -0
- package/hidden/javax/jcr/Workspace/index.d.ts +1061 -0
- package/hidden/javax/jcr/lock/Lock/index.d.ts +142 -0
- package/hidden/javax/jcr/lock/LockManager/index.d.ts +217 -0
- package/hidden/javax/jcr/nodetype/ItemDefinition/index.d.ts +219 -0
- package/hidden/javax/jcr/nodetype/NodeDefinition/index.d.ts +158 -0
- package/hidden/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +74 -0
- package/hidden/javax/jcr/nodetype/NodeType/index.d.ts +349 -0
- package/hidden/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +248 -0
- package/hidden/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +16 -0
- package/hidden/javax/jcr/nodetype/NodeTypeManager/index.d.ts +218 -0
- package/hidden/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +98 -0
- package/hidden/javax/jcr/nodetype/PropertyDefinition/index.d.ts +536 -0
- package/hidden/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +97 -0
- package/hidden/javax/jcr/observation/Event/index.d.ts +133 -0
- package/hidden/javax/jcr/observation/EventIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/observation/EventJournal/index.d.ts +22 -0
- package/hidden/javax/jcr/observation/EventListener/index.d.ts +23 -0
- package/hidden/javax/jcr/observation/EventListenerIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/observation/ObservationManager/index.d.ts +227 -0
- package/hidden/javax/jcr/query/Query/index.d.ts +201 -0
- package/hidden/javax/jcr/query/QueryManager/index.d.ts +73 -0
- package/hidden/javax/jcr/query/QueryResult/index.d.ts +51 -0
- package/hidden/javax/jcr/query/Row/index.d.ts +159 -0
- package/hidden/javax/jcr/query/RowIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/query/qom/And/index.d.ts +26 -0
- package/hidden/javax/jcr/query/qom/BindVariableValue/index.d.ts +15 -0
- package/hidden/javax/jcr/query/qom/ChildNode/index.d.ts +27 -0
- package/hidden/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +27 -0
- package/hidden/javax/jcr/query/qom/Column/index.d.ts +39 -0
- package/hidden/javax/jcr/query/qom/Comparison/index.d.ts +82 -0
- package/hidden/javax/jcr/query/qom/Constraint/index.d.ts +13 -0
- package/hidden/javax/jcr/query/qom/DescendantNode/index.d.ts +31 -0
- package/hidden/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +29 -0
- package/hidden/javax/jcr/query/qom/DynamicOperand/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +41 -0
- package/hidden/javax/jcr/query/qom/FullTextSearch/index.d.ts +89 -0
- package/hidden/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +24 -0
- package/hidden/javax/jcr/query/qom/Join/index.d.ts +36 -0
- package/hidden/javax/jcr/query/qom/JoinCondition/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/Length/index.d.ts +24 -0
- package/hidden/javax/jcr/query/qom/Literal/index.d.ts +18 -0
- package/hidden/javax/jcr/query/qom/LowerCase/index.d.ts +26 -0
- package/hidden/javax/jcr/query/qom/NodeLocalName/index.d.ts +16 -0
- package/hidden/javax/jcr/query/qom/NodeName/index.d.ts +16 -0
- package/hidden/javax/jcr/query/qom/Not/index.d.ts +20 -0
- package/hidden/javax/jcr/query/qom/Operand/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/Or/index.d.ts +30 -0
- package/hidden/javax/jcr/query/qom/Ordering/index.d.ts +53 -0
- package/hidden/javax/jcr/query/qom/PropertyExistence/index.d.ts +24 -0
- package/hidden/javax/jcr/query/qom/PropertyValue/index.d.ts +25 -0
- package/hidden/javax/jcr/query/qom/QueryObjectModel/index.d.ts +64 -0
- package/hidden/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +638 -0
- package/hidden/javax/jcr/query/qom/SameNode/index.d.ts +27 -0
- package/hidden/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +36 -0
- package/hidden/javax/jcr/query/qom/Selector/index.d.ts +35 -0
- package/hidden/javax/jcr/query/qom/Source/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/StaticOperand/index.d.ts +10 -0
- package/hidden/javax/jcr/query/qom/UpperCase/index.d.ts +26 -0
- package/hidden/javax/jcr/retention/Hold/index.d.ts +34 -0
- package/hidden/javax/jcr/retention/RetentionManager/index.d.ts +189 -0
- package/hidden/javax/jcr/retention/RetentionPolicy/index.d.ts +21 -0
- package/hidden/javax/jcr/security/AccessControlEntry/index.d.ts +24 -0
- package/hidden/javax/jcr/security/AccessControlList/index.d.ts +91 -0
- package/hidden/javax/jcr/security/AccessControlManager/index.d.ts +297 -0
- package/hidden/javax/jcr/security/AccessControlPolicy/index.d.ts +11 -0
- package/hidden/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +22 -0
- package/hidden/javax/jcr/security/Privilege/index.d.ts +117 -0
- package/hidden/javax/jcr/version/Version/index.d.ts +121 -0
- package/hidden/javax/jcr/version/VersionHistory/index.d.ts +307 -0
- package/hidden/javax/jcr/version/VersionIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/version/VersionManager/index.d.ts +1082 -0
- package/hidden/senselogic/sitevision/api/base/Builder/index.d.ts +102 -0
- package/hidden/senselogic/sitevision/api/base/Filter/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/base/FilterSplit/index.d.ts +50 -0
- package/hidden/senselogic/sitevision/api/base/Loadable/index.d.ts +15 -0
- package/hidden/senselogic/sitevision/api/base/Resolver/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/base/Wrapper/index.d.ts +24 -0
- package/hidden/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +417 -0
- package/hidden/senselogic/sitevision/api/format/NumericFormatter/index.d.ts +80 -0
- package/hidden/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +100 -0
- package/hidden/senselogic/sitevision/api/i18n/Currency/index.d.ts +120 -0
- package/hidden/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +45 -0
- package/hidden/senselogic/sitevision/api/link/CustomLinkRenderData/index.d.ts +65 -0
- package/hidden/senselogic/sitevision/api/mail/Mail/index.d.ts +32 -0
- package/hidden/senselogic/sitevision/api/message/MessageTextLinker/index.d.ts +15 -0
- package/hidden/senselogic/sitevision/api/metadata/value/LinkValue/index.d.ts +23 -0
- package/hidden/senselogic/sitevision/api/metadata/value/RelatedValue/index.d.ts +23 -0
- package/hidden/senselogic/sitevision/api/property/VersionedPropertyUtil/index.d.ts +642 -0
- package/hidden/senselogic/sitevision/api/render/BuddyIconRenderer/BuddyIconInfo/index.d.ts +51 -0
- package/hidden/senselogic/sitevision/api/render/ImageScaler/index.d.ts +58 -0
- package/hidden/senselogic/sitevision/api/render/TextModuleRenderer/index.d.ts +301 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ArticleUtilConstants/index.d.ts +85 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ExceptionSuppressingProxyConstants/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/IndexingUtilConstants/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/LinkPageUtilConstants/index.d.ts +67 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MathInstanceConstants/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MimeTypeUtilConstants/index.d.ts +19 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/NodeTypeUtilConstants/index.d.ts +1243 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/OutputUtilConstants/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PageUtilConstants/index.d.ts +91 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletContextUtilConstants/index.d.ts +27 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletUtilConstants/index.d.ts +19 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/QueryStringUtilConstants/index.d.ts +19 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchHitConstants/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchResultConstants/index.d.ts +37 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/VersionUtilConstants/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/index.d.ts +8 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityContext/index.d.ts +50 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityEvaluator/index.d.ts +89 -0
- package/hidden/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +119 -0
- package/hidden/senselogic/sitevision/api/script/app/RestAppInvoker/index.d.ts +272 -0
- package/hidden/senselogic/sitevision/api/script/factory/TypedArgument/index.d.ts +43 -0
- package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingCollection/index.d.ts +94 -0
- package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingIterator/index.d.ts +117 -0
- package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +90 -0
- package/hidden/senselogic/sitevision/api/search/SearchFieldUtil/index.d.ts +89 -0
- package/hidden/senselogic/sitevision/api/search/SearchHighlighter/index.d.ts +45 -0
- package/hidden/senselogic/sitevision/api/search/SearchHit/index.d.ts +1176 -0
- package/hidden/senselogic/sitevision/api/search/SearchResult/index.d.ts +414 -0
- package/hidden/senselogic/sitevision/api/search/facet/SearchFacetField/index.d.ts +27 -0
- package/hidden/senselogic/sitevision/api/search/facet/SearchFacetValue/index.d.ts +61 -0
- package/hidden/senselogic/sitevision/api/search/searcher/Searcher/index.d.ts +277 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Filter/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Highlight/index.d.ts +29 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Monitor/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Parser/index.d.ts +35 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Sort/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/SpellCheck/index.d.ts +29 -0
- package/hidden/senselogic/sitevision/api/search/sort/CustomSort/index.d.ts +82 -0
- package/hidden/senselogic/sitevision/api/search/suggestion/SearchSuggestion/index.d.ts +21 -0
- package/hidden/senselogic/sitevision/api/security/DirectoryAttributes/index.d.ts +70 -0
- package/hidden/senselogic/sitevision/api/security/MessageDigester/index.d.ts +50 -0
- package/hidden/senselogic/sitevision/api/security/RoleAssignment/index.d.ts +72 -0
- package/hidden/senselogic/sitevision/api/security/RoleMatcher/index.d.ts +29 -0
- package/hidden/senselogic/sitevision/api/security/SecretStore/index.d.ts +55 -0
- package/hidden/senselogic/sitevision/api/security/UserUtil/index.d.ts +80 -0
- package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +36 -0
- package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilterChain/index.d.ts +32 -0
- package/hidden/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +599 -0
- package/hidden/senselogic/sitevision/api/webresource/LinkTarget/index.d.ts +20 -0
- package/hidden/senselogic/sitevision/api/xml/XmlElement/index.d.ts +55 -0
- package/hidden/senselogic/sitevision/api/xml/XmlElementHandler/index.d.ts +17 -0
- package/package.json +2 -4
- package/server/AliasUtil/index.d.ts +25 -0
- package/server/AliasUtil/index.js +10 -0
- package/server/ArchiveUtil/index.d.ts +65 -11
- package/server/ArraysInstance/index.d.ts +1846 -0
- package/server/ArticleUtil/index.d.ts +381 -69
- package/server/AuthenticationUtil/index.d.ts +106 -0
- package/server/BookmarkUtil/index.d.ts +36 -28
- package/server/BuddyIconRenderer/index.d.ts +240 -0
- package/server/ClientUtil/index.d.ts +18 -4
- package/server/CollaborationFactory/index.d.ts +42 -25
- package/server/CollaborationGroupFolderUtil/index.d.ts +40 -29
- package/server/CollaborationGroupTemplateUtil/index.d.ts +71 -39
- package/server/CollaborationGroupUtil/index.d.ts +128 -55
- package/server/CollectionsInstance/index.d.ts +738 -0
- package/server/ColorUtil/index.d.ts +22 -17
- package/server/CompoundAndFilterBuilder/index.d.ts +60 -0
- package/server/CompoundComparatorBuilder/index.d.ts +63 -0
- package/server/CompoundOrFilterBuilder/index.d.ts +59 -0
- package/server/ContentNodeUtil/index.d.ts +76 -0
- package/server/CurrencyFactory/index.d.ts +135 -0
- package/server/DateUtil/index.d.ts +154 -77
- package/server/DecorationUtil/index.d.ts +23 -0
- package/server/DeviceUtil/index.d.ts +36 -0
- package/server/DirectoryUtil/index.d.ts +107 -47
- package/server/DocTypeUtil/index.d.ts +149 -0
- package/server/EndecUtil/index.d.ts +537 -91
- package/server/ExtendedDismaxParserBuilder/index.d.ts +311 -0
- package/server/FileIconRenderer/index.d.ts +346 -0
- package/server/FileUtil/index.d.ts +462 -0
- package/server/FilterBuilder/index.d.ts +120 -0
- package/server/FolderUtil/index.d.ts +161 -0
- package/server/FontUtil/index.d.ts +49 -0
- package/server/FormatterBuilderFactory/index.d.ts +129 -0
- package/server/HighlightBuilder/index.d.ts +194 -0
- package/server/IconUtil/index.d.ts +37 -0
- package/server/ImageLinkRenderer/index.d.ts +134 -0
- package/server/ImageRenderer/index.d.ts +613 -231
- package/server/ImageUtil/index.d.ts +430 -0
- package/server/IndexUtil/index.d.ts +71 -0
- package/server/IndexingUtil/index.d.ts +92 -0
- package/server/InstanceCreatorUtil/index.d.ts +661 -0
- package/server/InstanceTypeUtil/index.d.ts +202 -0
- package/server/JwtUtil/index.d.ts +217 -0
- package/server/LandingPageUtil/index.d.ts +67 -50
- package/server/LinkPageUtil/index.d.ts +468 -0
- package/server/LinkRenderer/index.d.ts +1157 -0
- package/server/LinkTargetBuilder/index.d.ts +146 -0
- package/server/LinkValueBuilder/index.d.ts +129 -52
- package/server/ListWrapper/index.d.ts +172 -0
- package/server/LocaleUtil/index.d.ts +695 -61
- package/server/LogUtil/index.d.ts +118 -77
- package/server/MailBuilder/index.d.ts +238 -0
- package/server/MailUtil/index.d.ts +98 -0
- package/server/MathInstance/index.d.ts +681 -0
- package/server/MessageDigesterFactory/index.d.ts +49 -0
- package/server/MetadataDefinitionUtil/index.d.ts +118 -0
- package/server/MetadataUtil/index.d.ts +524 -79
- package/server/MimeTypeUtil/index.d.ts +316 -0
- package/server/MonitorBuilder/index.d.ts +51 -0
- package/server/NodeComparatorUtil/index.d.ts +397 -0
- package/server/NodeFactoryUtil/index.d.ts +32 -0
- package/server/NodeFilterUtil/index.d.ts +924 -0
- package/server/NodeIteratorUtil/index.d.ts +322 -72
- package/server/NodeResolverUtil/index.d.ts +767 -0
- package/server/NodeTreeUtil/index.d.ts +339 -63
- package/server/NodeTypeUtil/index.d.ts +391 -197
- package/server/OfflineVersionPropertyUtil/index.d.ts +30 -0
- package/server/OnlineVersionPropertyUtil/index.d.ts +30 -0
- package/server/OutputUtil/index.d.ts +641 -0
- package/server/PageUtil/index.d.ts +330 -0
- package/server/PermissionUtil/index.d.ts +650 -0
- package/server/PortletContextUtil/index.d.ts +118 -37
- package/server/PortletContextUtil/index.js +1 -0
- package/server/PortletUtil/index.d.ts +40 -0
- package/server/PrincipalUtil/index.d.ts +51 -0
- package/server/Properties/index.d.ts +185 -38
- package/server/PropertyUtil/index.d.ts +2330 -406
- package/server/PublishingUtil/index.d.ts +385 -49
- package/server/QueryStringUtil/index.d.ts +737 -0
- package/server/RedirectUtil/index.d.ts +98 -0
- package/server/RelatedValueBuilder/index.d.ts +81 -39
- package/server/Requester/index.d.ts +441 -65
- package/server/ResourceLocatorUtil/index.d.ts +483 -227
- package/server/RestApi/index.d.ts +208 -23
- package/server/RestAppInvokerFactory/index.d.ts +73 -0
- package/server/RoleAssignmentBuilder/index.d.ts +60 -0
- package/server/RoleMatcherBuilder/index.d.ts +59 -0
- package/server/RoleUtil/index.d.ts +57 -0
- package/server/ScriptUtil/index.d.ts +625 -143
- package/server/SearchFactory/index.d.ts +133 -0
- package/server/SearchUtil/index.d.ts +164 -0
- package/server/SearcherBuilder/index.d.ts +260 -0
- package/server/Session/index.d.ts +1758 -0
- package/server/SimpleUserUtil/index.d.ts +39 -30
- package/server/SiteCookieUtil/index.d.ts +78 -53
- package/server/SortBuilder/index.d.ts +111 -0
- package/server/SpellCheckBuilder/index.d.ts +68 -0
- package/server/StandardParserBuilder/index.d.ts +112 -0
- package/server/StructureUtil/index.d.ts +167 -0
- package/server/SubscriberUtil/index.d.ts +122 -0
- package/server/SubscriptionUtil/index.d.ts +197 -0
- package/server/SystemUserUtil/index.d.ts +201 -98
- package/server/TagUtil/index.d.ts +193 -0
- package/server/TemplateUtil/index.d.ts +217 -0
- package/server/TemporaryFileNodeBuilder/index.d.ts +63 -0
- package/server/TemporaryNodeBuilder/index.d.ts +241 -0
- package/server/TextModuleRendererBuilder/index.d.ts +68 -0
- package/server/TimestampUtil/index.d.ts +98 -82
- package/server/TranslationUtil/index.d.ts +175 -0
- package/server/TrashcanUtil/index.d.ts +193 -24
- package/server/UserDataUtil/index.d.ts +167 -85
- package/server/UserFactory/index.d.ts +45 -30
- package/server/UserFieldRenderer/index.d.ts +258 -0
- package/server/UserIdentityUtil/index.d.ts +61 -29
- package/server/UserUtil/index.d.ts +69 -28
- package/server/Utils/index.d.ts +870 -12
- package/server/VelocityRenderer/index.d.ts +248 -0
- package/server/VersionUtil/index.d.ts +15 -12
- package/server/WebContentUtil/index.d.ts +644 -0
- package/server/WebResourceFactory/index.d.ts +66 -0
- package/server/XSLTUtil/index.d.ts +49 -10
- package/server/XmlParserUtil/index.d.ts +82 -81
- package/builtins/Binary/index.d.ts +0 -3
- package/builtins/Calendar/index.d.ts +0 -3
- package/builtins/Collection/index.d.ts +0 -3
- package/builtins/Date/index.d.ts +0 -3
- package/builtins/InputStream/index.d.ts +0 -3
- package/builtins/Instant/index.d.ts +0 -3
- package/builtins/List/index.d.ts +0 -3
- package/builtins/LocalDateTime/index.d.ts +0 -3
- package/builtins/Locale/index.d.ts +0 -3
- package/builtins/Node/index.d.ts +0 -3
- package/builtins/NodeIterator/index.d.ts +0 -27
- package/builtins/Property/index.d.ts +0 -3
- package/builtins/Serializable/index.d.ts +0 -3
- package/builtins/Set/index.d.ts +0 -3
- package/builtins/Throwable/index.d.ts +0 -3
- package/builtins/byte/index.d.ts +0 -3
|
@@ -1,107 +1,184 @@
|
|
|
1
|
-
import Calendar from '../../builtins/Calendar';
|
|
2
|
-
import Date from '../../builtins/Date';
|
|
3
|
-
import Locale from '../../builtins/Locale';
|
|
4
|
-
|
|
5
1
|
/**
|
|
6
|
-
* Formats a
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
* Formats a date according to the ISO8601 specification.
|
|
3
|
+
*
|
|
4
|
+
* <p>
|
|
5
|
+
* <em>An example:</em> A date representing february 3, 2001 at 04:45 in an +1h UTC timezone offset would be
|
|
6
|
+
* ISO8601 formatted as <code>2001-02-03T04:05+01:00</code>.
|
|
7
|
+
* </p>
|
|
8
|
+
* @param aDate a <code>Date</code> that needs to be formatted
|
|
9
|
+
* @return the date formatted as a ISO8601 string, or <code>null</code> if <code>aDate</code> is <code>null</code>
|
|
10
|
+
*/
|
|
11
|
+
export function getDateAsISO8601String(aDate: unknown): string;
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
|
-
* Formats
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
* Formats a calendar according to the ISO8601 specification.
|
|
15
|
+
*
|
|
16
|
+
* <p>
|
|
17
|
+
* <em>An example:</em> A calendar representing february 3, 2001 at 04:45 in an +1h UTC timezone offset would be
|
|
18
|
+
* ISO8601 formatted as <code>2001-02-03T04:05+01:00</code>.
|
|
19
|
+
* </p>
|
|
20
|
+
* @param aCalendar a <code>Calendar</code> that needs to be formatted
|
|
21
|
+
* @return aString the calendar date formatted as a ISO8601 string, or <code>null</code> if <code>aCalendar</code> is <code>null</code>
|
|
22
|
+
*/
|
|
23
|
+
export function getCalendarAsISO8601String(aCalendar: unknown): string;
|
|
19
24
|
|
|
20
25
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @
|
|
23
|
-
* @
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
*/
|
|
27
|
-
export function getCalendarAsString(aFormatPattern: string, aCalendar: Calendar, aLocale: Locale): string;
|
|
26
|
+
* Gets the date format pattern used in the Sitevision editor for a specific Locale.
|
|
27
|
+
* @param aLocale the <code>Locale</code> that specifies the date format pattern
|
|
28
|
+
* @return the date format pattern used in the Sitevision editor that corresponds to <code>aLocale</code>. If <code>aLocale</code> is <code>null</code> then the current locale (as of {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()}) is used to locate the format pattern. If no pattern exist for <code>aLocale</code> then the pattern that corresponds to <code>Locale.ENGLISH</code> will be returned.
|
|
29
|
+
*/
|
|
30
|
+
export function getEditorFormatPattern(aLocale: unknown): string;
|
|
28
31
|
|
|
29
32
|
/**
|
|
30
|
-
* Formats a
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
* Formats a Date according to a <code>SimpleDateFormat</code> pattern.
|
|
34
|
+
*
|
|
35
|
+
* <p>
|
|
36
|
+
* <em>Note!</em> The current locale as of {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()} will be used.
|
|
37
|
+
* If current locale is unavailable, <code>Locale.getDefault()</code> will be used.
|
|
38
|
+
* </p>
|
|
39
|
+
* @param aFormatPattern date to string pattern according to SimpleDateFormat. Default pattern will be used if aFormatPattern is null or blank
|
|
40
|
+
* @param aDate the Date
|
|
41
|
+
* @return returns a String representation of aDate according to aFormatPattern (and resolved Locale). Returns null if formatting fails or aDate is null
|
|
42
|
+
* @see #getDateAsString(String, Date, Locale)
|
|
43
|
+
*/
|
|
44
|
+
export function getDateAsString(aFormatPattern: string, aDate: unknown): string;
|
|
35
45
|
|
|
36
46
|
/**
|
|
37
|
-
* Formats a Date according to a SimpleDateFormat pattern.
|
|
38
|
-
* @
|
|
39
|
-
* @param
|
|
40
|
-
* @param
|
|
41
|
-
|
|
42
|
-
|
|
47
|
+
* Formats a Date according to a <code>SimpleDateFormat</code> pattern using a given Locale.
|
|
48
|
+
* @param aFormatPattern date to string pattern according to SimpleDateFormat. Default pattern will be used if aFormatPattern is null or blank
|
|
49
|
+
* @param aDate the Date
|
|
50
|
+
* @param aLocale the Locale
|
|
51
|
+
* @return returns a String representation of aDate according to aFormatPattern (and resolved Locale). Returns null if formatting fails or aDate or aLocale is null
|
|
52
|
+
* @since Sitevision 8.2
|
|
53
|
+
*/
|
|
54
|
+
export function getDateAsString(
|
|
55
|
+
aFormatPattern: string,
|
|
56
|
+
aDate: unknown,
|
|
57
|
+
aLocale: unknown
|
|
58
|
+
): string;
|
|
43
59
|
|
|
44
60
|
/**
|
|
45
|
-
* Formats a
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* @
|
|
49
|
-
*
|
|
50
|
-
|
|
51
|
-
|
|
61
|
+
* Formats the date of a Calendar according to a <code>SimpleDateFormat</code> pattern.
|
|
62
|
+
*
|
|
63
|
+
* <p>
|
|
64
|
+
* <em>Note!</em> The current locale as of {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()} will be used.
|
|
65
|
+
* If current locale is unavailable, <code>Locale.getDefault()</code> will be used.
|
|
66
|
+
* </p>
|
|
67
|
+
* @param aFormatPattern date to string pattern according to SimpleDateFormat. Default pattern will be used if aFormatPattern is null or blank
|
|
68
|
+
* @param aCalendar the Calendar
|
|
69
|
+
* @return returns a String representation of aCalendar according to aFormatPattern (and resolved Locale). Returns null if formatting fails or aCalendar is null
|
|
70
|
+
* @see #getCalendarAsString(String, Calendar, Locale)
|
|
71
|
+
*/
|
|
72
|
+
export function getCalendarAsString(
|
|
73
|
+
aFormatPattern: string,
|
|
74
|
+
aCalendar: unknown
|
|
75
|
+
): string;
|
|
52
76
|
|
|
53
77
|
/**
|
|
54
|
-
*
|
|
55
|
-
* @
|
|
56
|
-
* @param
|
|
57
|
-
|
|
58
|
-
|
|
78
|
+
* Formats the date of a Calendar according to a <code>SimpleDateFormat</code> pattern and a given Locale.
|
|
79
|
+
* @param aFormatPattern date to string pattern according to SimpleDateFormat. Default pattern will be used if aFormatPattern is null or blank
|
|
80
|
+
* @param aCalendar the Calendar
|
|
81
|
+
* @param aLocale the Locale
|
|
82
|
+
* @return returns a String representation of aCalendar according to aFormatPattern (and resolved Locale). Returns null if formatting fails or aCalendar or aLocale is null
|
|
83
|
+
* @since Sitevision 8.2
|
|
84
|
+
*/
|
|
85
|
+
export function getCalendarAsString(
|
|
86
|
+
aFormatPattern: string,
|
|
87
|
+
aCalendar: unknown,
|
|
88
|
+
aLocale: unknown
|
|
89
|
+
): string;
|
|
59
90
|
|
|
60
91
|
/**
|
|
61
|
-
* Converts a
|
|
62
|
-
* @
|
|
63
|
-
* @
|
|
64
|
-
* @
|
|
65
|
-
*/
|
|
66
|
-
export function
|
|
92
|
+
* Converts a Date to a Calendar.
|
|
93
|
+
* @param aDate a Date
|
|
94
|
+
* @return a Calendar representing aDate, or null if aDate is null
|
|
95
|
+
* @since Sitevision 4.5.5
|
|
96
|
+
*/
|
|
97
|
+
export function toCalendar(aDate: unknown): unknown;
|
|
67
98
|
|
|
68
99
|
/**
|
|
69
|
-
* Converts a
|
|
70
|
-
* @
|
|
71
|
-
* @
|
|
72
|
-
* @
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
export function parseDate(aDateStr: string, aFormatPattern: string, aLocale: Locale): Date;
|
|
100
|
+
* Converts a Calendar to a Date.
|
|
101
|
+
* @param aCalendar a Calendar
|
|
102
|
+
* @return a Date representing aCalendar, or null if aCalendar is null
|
|
103
|
+
* @since Sitevision 4.5.5
|
|
104
|
+
*/
|
|
105
|
+
export function toDate(aCalendar: unknown): unknown;
|
|
76
106
|
|
|
77
107
|
/**
|
|
78
|
-
* Converts a
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
|
|
82
|
-
|
|
108
|
+
* Converts a date string to a Date using a <code>SimpleDateFormat</code> pattern.
|
|
109
|
+
*
|
|
110
|
+
* <p>
|
|
111
|
+
* <em>Note!</em> The current locale as of {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()} will be used.
|
|
112
|
+
* If current locale is unavailable, <code>Locale.getDefault()</code> will be used.
|
|
113
|
+
* </p>
|
|
114
|
+
* @param aDateStr the string representation of a Date
|
|
115
|
+
* @param aFormatPattern string to date pattern according to SimpleDateFormat
|
|
116
|
+
* @return a Date representation of aDateStr, or null if parsing fails or any method argument (aDateStr, aFormatPattern) is null or blank
|
|
117
|
+
* @since Sitevision 5.1
|
|
118
|
+
* @see #parseDate(String, String, Locale)
|
|
119
|
+
*/
|
|
120
|
+
export function parseDate(aDateStr: string, aFormatPattern: string): unknown;
|
|
83
121
|
|
|
84
122
|
/**
|
|
85
|
-
* Converts a
|
|
86
|
-
* @
|
|
87
|
-
* @param
|
|
88
|
-
|
|
89
|
-
|
|
123
|
+
* Converts a date string to a Date using a <code>SimpleDateFormat</code> pattern and a given Locale.
|
|
124
|
+
* @param aDateStr the string representation of a Date
|
|
125
|
+
* @param aFormatPattern string to date pattern according to SimpleDateFormat
|
|
126
|
+
* @param aLocale the Locale
|
|
127
|
+
* @return a Date representation of aDateStr, or null if parsing fails or any method argument (aDateStr, aFormatPattern, aLocale) is null or blank
|
|
128
|
+
* @since Sitevision 8.2
|
|
129
|
+
*/
|
|
130
|
+
export function parseDate(
|
|
131
|
+
aDateStr: string,
|
|
132
|
+
aFormatPattern: string,
|
|
133
|
+
aLocale: unknown
|
|
134
|
+
): unknown;
|
|
90
135
|
|
|
91
|
-
|
|
136
|
+
/**
|
|
137
|
+
* Date utility interface.
|
|
138
|
+
*
|
|
139
|
+
* <p>
|
|
140
|
+
* An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getDateUtil()}.
|
|
141
|
+
* See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
|
|
142
|
+
* </p>Formats a date according to the ISO8601 specification.
|
|
143
|
+
*
|
|
144
|
+
* <p>
|
|
145
|
+
* <em>An example:</em> A date representing february 3, 2001 at 04:45 in an +1h UTC timezone offset would be
|
|
146
|
+
* ISO8601 formatted as <code>2001-02-03T04:05+01:00</code>.
|
|
147
|
+
* </p>Formats a calendar according to the ISO8601 specification.
|
|
148
|
+
*
|
|
149
|
+
* <p>
|
|
150
|
+
* <em>An example:</em> A calendar representing february 3, 2001 at 04:45 in an +1h UTC timezone offset would be
|
|
151
|
+
* ISO8601 formatted as <code>2001-02-03T04:05+01:00</code>.
|
|
152
|
+
* </p>Gets the date format pattern used in the Sitevision editor for a specific Locale.Formats a Date according to a <code>SimpleDateFormat</code> pattern.
|
|
153
|
+
*
|
|
154
|
+
* <p>
|
|
155
|
+
* <em>Note!</em> The current locale as of {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()} will be used.
|
|
156
|
+
* If current locale is unavailable, <code>Locale.getDefault()</code> will be used.
|
|
157
|
+
* </p>Formats a Date according to a <code>SimpleDateFormat</code> pattern using a given Locale.Formats the date of a Calendar according to a <code>SimpleDateFormat</code> pattern.
|
|
158
|
+
*
|
|
159
|
+
* <p>
|
|
160
|
+
* <em>Note!</em> The current locale as of {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()} will be used.
|
|
161
|
+
* If current locale is unavailable, <code>Locale.getDefault()</code> will be used.
|
|
162
|
+
* </p>Formats the date of a Calendar according to a <code>SimpleDateFormat</code> pattern and a given Locale.Converts a Date to a Calendar.Converts a Calendar to a Date.Converts a date string to a Date using a <code>SimpleDateFormat</code> pattern.
|
|
163
|
+
*
|
|
164
|
+
* <p>
|
|
165
|
+
* <em>Note!</em> The current locale as of {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()} will be used.
|
|
166
|
+
* If current locale is unavailable, <code>Locale.getDefault()</code> will be used.
|
|
167
|
+
* </p>Converts a date string to a Date using a <code>SimpleDateFormat</code> pattern and a given Locale.
|
|
168
|
+
* @author Albin Öhrn
|
|
169
|
+
* @since Sitevision 3.5
|
|
170
|
+
*/
|
|
171
|
+
declare namespace DateUtil {
|
|
92
172
|
export {
|
|
93
|
-
getCalendarAsISO8601String,
|
|
94
|
-
getCalendarAsString,
|
|
95
|
-
getCalendarAsString,
|
|
96
173
|
getDateAsISO8601String,
|
|
97
|
-
|
|
98
|
-
getDateAsString,
|
|
174
|
+
getCalendarAsISO8601String,
|
|
99
175
|
getEditorFormatPattern,
|
|
100
|
-
|
|
101
|
-
|
|
176
|
+
getDateAsString,
|
|
177
|
+
getCalendarAsString,
|
|
102
178
|
toCalendar,
|
|
103
179
|
toDate,
|
|
180
|
+
parseDate,
|
|
104
181
|
};
|
|
105
182
|
}
|
|
106
183
|
|
|
107
|
-
export default
|
|
184
|
+
export default DateUtil;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import Node from "../../hidden/javax/jcr/Node";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Gets the decoration with a given name
|
|
5
|
+
* @param aDecorationName the name of the decoration
|
|
6
|
+
* @return the first decoration with name aDecorationName, or <code>null</code> if no decoration matches
|
|
7
|
+
*/
|
|
8
|
+
export function getDecorationByName(aDecorationName: string): Node;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Utility interface for Decorations.
|
|
12
|
+
*
|
|
13
|
+
* <p>
|
|
14
|
+
* An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getDecorationUtil()}.
|
|
15
|
+
* See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
|
|
16
|
+
* </p>Gets the decoration with a given name
|
|
17
|
+
* @author Magnus Lövgren
|
|
18
|
+
*/
|
|
19
|
+
declare namespace DecorationUtil {
|
|
20
|
+
export { getDecorationByName };
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default DecorationUtil;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import Node from "../../hidden/javax/jcr/Node";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Checks if current execution/rendering is in a mobile view.
|
|
5
|
+
* @return <code>true</code> if current execution is rendering in a mobile view, <code>false</code> if not
|
|
6
|
+
* @deprecated As of Sitevision 10 this method always returns <code>false</code>
|
|
7
|
+
*/
|
|
8
|
+
export function isRenderingMobileView(): boolean;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Checks if currently executing client is a mobile device.
|
|
12
|
+
* @param aPageNode a page node, typically the currently executing page (see {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentPage()}). Null is allowed but device checking will be more extensive with a proper value since it will also match against all configured devices for the site of the <code>aPageNode</code>.
|
|
13
|
+
* @return <code>true</code> if currently executing client is a mobile device, <code>false</code> if not
|
|
14
|
+
* @deprecated As of Sitevision 10 the parameter aPageNode is no longer used
|
|
15
|
+
*/
|
|
16
|
+
export function isMobileDevice(aPageNode: Node): boolean;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Device utility interface.
|
|
20
|
+
*
|
|
21
|
+
* <p>
|
|
22
|
+
* Contains methods for retrieving device-related information.
|
|
23
|
+
* </p>
|
|
24
|
+
*
|
|
25
|
+
* <p>
|
|
26
|
+
* An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getDeviceUtil()}.
|
|
27
|
+
* See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
|
|
28
|
+
* </p>Checks if current execution/rendering is in a mobile view.Checks if currently executing client is a mobile device.
|
|
29
|
+
* @author Magnus Lövgren
|
|
30
|
+
* @since Sitevision 3.0
|
|
31
|
+
*/
|
|
32
|
+
declare namespace DeviceUtil {
|
|
33
|
+
export { isRenderingMobileView, isMobileDevice };
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export default DeviceUtil;
|
|
@@ -1,61 +1,121 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Node from "../../hidden/javax/jcr/Node";
|
|
2
|
+
import Property from "../../hidden/javax/jcr/Property";
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
* Searches for objects in all LDAP directories that are accessible in current context (i.e. current page).
|
|
6
|
+
* <p>
|
|
7
|
+
* Some examples of <a href="http://www.ietf.org/rfc/rfc2254.txt">RFC 2254</a> valid values for <code>aSearchFilter</code>:
|
|
8
|
+
* <ul>
|
|
9
|
+
* <li><code>"magnus"</code> - find all <em>magnus</em>, using the search base specified by the directories (usually common name) </li>
|
|
10
|
+
* <li><code>"(cn=magnus)"</code> - find all with common name (cn) <em>magnus</em></li>
|
|
11
|
+
* <li><code>"(cn=magnus*)"</code> - find all that has a common name (cn) that starts with <em>magnus</em></li>
|
|
12
|
+
* <li><code>"(&(cn=magnus)(mail=*))"</code> - find all that has a mail address and <em>magnus</em> as common name (cn)</li>
|
|
13
|
+
* <li><code>"(|(cn=magnus)((sn=L*)))"</code> - find all with common name (cn) <em>magnus</em> or a surname (sn) that starts with <em>L</em></li>
|
|
14
|
+
* </ul>
|
|
15
|
+
* @param aSearchFilter LDAP search filter (as specified by <a href="http://www.ietf.org/rfc/rfc2254.txt">RFC 2254</a>)
|
|
16
|
+
* @return the search result as a <code>List</code>. If there are no hits, an empty <code>List</code> is returned.
|
|
17
|
+
* @see #search(String,Node)
|
|
18
|
+
*/
|
|
19
|
+
export function search(aSearchFilter: string): unknown[];
|
|
10
20
|
|
|
11
21
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
|
|
16
|
-
|
|
22
|
+
* Searches for objects in a specified LDAP directory.
|
|
23
|
+
* <p>
|
|
24
|
+
* <em>Tip!</em> The repository for all LDAP directory nodes can be located via the
|
|
25
|
+
* {@link senselogic.sitevision.api.resource.ResourceLocatorUtil#getDirectoryRepository() getDirectoryRepository()}
|
|
26
|
+
* method in {@link senselogic.sitevision.api.resource.ResourceLocatorUtil}
|
|
27
|
+
* </p>
|
|
28
|
+
* @param aSearchFilter LDAP search filter (as specified by <a href="http://www.ietf.org/rfc/rfc2254.txt">RFC 2254</a>)
|
|
29
|
+
* @param aDirectoryNode a LDAP directory <code>Node</code>
|
|
30
|
+
* @return the search result as a <code>List</code>. If there are no hits, an empty <code>List</code> is returned.
|
|
31
|
+
* @see #search(String)
|
|
32
|
+
*/
|
|
33
|
+
export function search(aSearchFilter: string, aDirectoryNode: Node): unknown[];
|
|
17
34
|
|
|
18
35
|
/**
|
|
19
|
-
* Searches for objects in
|
|
20
|
-
* @param
|
|
21
|
-
* @
|
|
22
|
-
|
|
23
|
-
|
|
36
|
+
* Searches for objects in a specified search base in a specified LDAP directory.
|
|
37
|
+
* @param aSearchFilter LDAP search filter (as specified by <a href="http://www.ietf.org/rfc/rfc2254.txt">RFC 2254</a>)
|
|
38
|
+
* @param aDirectoryNode a LDAP directory <code>Node</code>
|
|
39
|
+
* @param aSearchBase a search base that exist in <code>aDirectoryNode</code>
|
|
40
|
+
* @return the search result as a <code>List</code>. If there are no hits, an empty <code>List</code> is returned.
|
|
41
|
+
* @see #search(String,Node)
|
|
42
|
+
*/
|
|
43
|
+
export function search(
|
|
44
|
+
aSearchFilter: string,
|
|
45
|
+
aDirectoryNode: Node,
|
|
46
|
+
aSearchBase: string
|
|
47
|
+
): unknown[];
|
|
24
48
|
|
|
25
49
|
/**
|
|
26
|
-
*
|
|
27
|
-
* @param
|
|
28
|
-
* @
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export function search(aSearchFilter: string, aDirectoryNode: Node): List<Node>;
|
|
50
|
+
* Gets a directory node object with a specific distinguished name, dn.
|
|
51
|
+
* @param aDirectoryObjectDN the directory dn for a directory object
|
|
52
|
+
* @return the directory object <code>Node</code>, or null if indeterminate
|
|
53
|
+
*/
|
|
54
|
+
export function getNodeByDN(aDirectoryObjectDN: string): Node;
|
|
32
55
|
|
|
33
56
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
|
|
40
|
-
|
|
57
|
+
* Gets a directory attribute value for a directory node object as <code>Property</code>.
|
|
58
|
+
* <p>
|
|
59
|
+
* The default properties for a directory node object adheres/corresponds to the attributes defined in the directory scheme.
|
|
60
|
+
* All attributes that are defined in the scheme are exposed as properties in the Sitevision JCR model. This method tries to
|
|
61
|
+
* find the attribute via the Sitevision JCR model but if no property can be found it executes LDAP queries
|
|
62
|
+
* to find the attribute. This makes it possible to find scheme-defined attributes, but also custom-defined ones.
|
|
63
|
+
* </p>
|
|
64
|
+
* @param aDirectoryObjectNode a directory object node that has an attribute
|
|
65
|
+
* @param anAttributeName the attribute name
|
|
66
|
+
* @return the attribute value as <code>Property</code>, or <code>null</code> if indeterminate (e.g. <code>aDirectoryObjectNode</code> is not a directory object node or <code>aDirectoryObjectNode</code> has no attribute named <code>anAttributeName</code>)
|
|
67
|
+
*/
|
|
68
|
+
export function getAttributeAsProperty(
|
|
69
|
+
aDirectoryObjectNode: Node,
|
|
70
|
+
anAttributeName: string
|
|
71
|
+
): Property;
|
|
41
72
|
|
|
42
73
|
/**
|
|
43
|
-
* Searches for ids in a specified search base in all directories.
|
|
44
|
-
* @param
|
|
45
|
-
* @param
|
|
46
|
-
* @param
|
|
47
|
-
* @
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
search,
|
|
56
|
-
simpleSearch,
|
|
57
|
-
};
|
|
58
|
-
}
|
|
74
|
+
* Searches for ids in a specified search base in all directories.
|
|
75
|
+
* @param aSearchFilter LDAP search filter (as specified by <a href="http://www.ietf.org/rfc/rfc2254.txt">RFC 2254</a>)
|
|
76
|
+
* @param searchBase search base for the search, if <code>null</code> all directories for current node will be searched
|
|
77
|
+
* @param attributes a <code>List</code> of return attributes
|
|
78
|
+
* @return the search result as a <code>Map</code>. If there are no hits, an empty <code>Map</code> is returned. The <code>Map</code> contains ids as keys and a <code>Map</code> as values containing the returned attributes.
|
|
79
|
+
* @since Sitevision 2.6.1_02
|
|
80
|
+
*/
|
|
81
|
+
export function simpleSearch(
|
|
82
|
+
aSearchFilter: string,
|
|
83
|
+
searchBase: string,
|
|
84
|
+
attributes: unknown[]
|
|
85
|
+
): Record<unknown, unknown>;
|
|
59
86
|
|
|
60
|
-
|
|
87
|
+
/**
|
|
88
|
+
* LDAP directory utility interface.
|
|
89
|
+
*
|
|
90
|
+
* <p>
|
|
91
|
+
* An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getDirectoryUtil()}.
|
|
92
|
+
* See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
|
|
93
|
+
* </p>Searches for objects in all LDAP directories that are accessible in current context (i.e. current page).
|
|
94
|
+
* <p>
|
|
95
|
+
* Some examples of <a href="http://www.ietf.org/rfc/rfc2254.txt">RFC 2254</a> valid values for <code>aSearchFilter</code>:
|
|
96
|
+
* <ul>
|
|
97
|
+
* <li><code>"magnus"</code> - find all <em>magnus</em>, using the search base specified by the directories (usually common name) </li>
|
|
98
|
+
* <li><code>"(cn=magnus)"</code> - find all with common name (cn) <em>magnus</em></li>
|
|
99
|
+
* <li><code>"(cn=magnus*)"</code> - find all that has a common name (cn) that starts with <em>magnus</em></li>
|
|
100
|
+
* <li><code>"(&(cn=magnus)(mail=*))"</code> - find all that has a mail address and <em>magnus</em> as common name (cn)</li>
|
|
101
|
+
* <li><code>"(|(cn=magnus)((sn=L*)))"</code> - find all with common name (cn) <em>magnus</em> or a surname (sn) that starts with <em>L</em></li>
|
|
102
|
+
* </ul>Searches for objects in a specified LDAP directory.
|
|
103
|
+
* <p>
|
|
104
|
+
* <em>Tip!</em> The repository for all LDAP directory nodes can be located via the
|
|
105
|
+
* {@link senselogic.sitevision.api.resource.ResourceLocatorUtil#getDirectoryRepository() getDirectoryRepository()}
|
|
106
|
+
* method in {@link senselogic.sitevision.api.resource.ResourceLocatorUtil}
|
|
107
|
+
* </p>Searches for objects in a specified search base in a specified LDAP directory.Gets a directory node object with a specific distinguished name, dn.Gets a directory attribute value for a directory node object as <code>Property</code>.
|
|
108
|
+
* <p>
|
|
109
|
+
* The default properties for a directory node object adheres/corresponds to the attributes defined in the directory scheme.
|
|
110
|
+
* All attributes that are defined in the scheme are exposed as properties in the Sitevision JCR model. This method tries to
|
|
111
|
+
* find the attribute via the Sitevision JCR model but if no property can be found it executes LDAP queries
|
|
112
|
+
* to find the attribute. This makes it possible to find scheme-defined attributes, but also custom-defined ones.
|
|
113
|
+
* </p>Searches for ids in a specified search base in all directories.
|
|
114
|
+
* @author Magnus Lövgren
|
|
115
|
+
* @since Sitevision 2.6
|
|
116
|
+
*/
|
|
117
|
+
declare namespace DirectoryUtil {
|
|
118
|
+
export { search, getNodeByDN, getAttributeAsProperty, simpleSearch };
|
|
119
|
+
}
|
|
61
120
|
|
|
121
|
+
export default DirectoryUtil;
|