@sitevision/api 1.0.19 → 1.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/router/index.d.ts +1 -1
- package/hidden/javax/jcr/Binary/index.d.ts +86 -0
- package/hidden/javax/jcr/Credentials/index.d.ts +11 -0
- package/hidden/javax/jcr/ImportUUIDBehavior/index.d.ts +11 -0
- package/hidden/javax/jcr/Item/index.d.ts +353 -0
- package/hidden/javax/jcr/ItemVisitor/index.d.ts +41 -0
- package/hidden/javax/jcr/NamespaceRegistry/index.d.ts +100 -0
- package/hidden/javax/jcr/Node/index.d.ts +2808 -0
- package/hidden/javax/jcr/NodeIterator/index.d.ts +18 -0
- package/hidden/javax/jcr/Property/index.d.ts +801 -0
- package/hidden/javax/jcr/PropertyIterator/index.d.ts +17 -0
- package/hidden/javax/jcr/RangeIterator/index.d.ts +75 -0
- package/hidden/javax/jcr/Repository/index.d.ts +318 -0
- package/hidden/javax/jcr/RepositoryFactory/index.d.ts +90 -0
- package/hidden/javax/jcr/Value/index.d.ts +190 -0
- package/hidden/javax/jcr/ValueFactory/index.d.ts +179 -0
- package/hidden/javax/jcr/Workspace/index.d.ts +1061 -0
- package/hidden/javax/jcr/lock/Lock/index.d.ts +142 -0
- package/hidden/javax/jcr/lock/LockManager/index.d.ts +217 -0
- package/hidden/javax/jcr/nodetype/ItemDefinition/index.d.ts +219 -0
- package/hidden/javax/jcr/nodetype/NodeDefinition/index.d.ts +158 -0
- package/hidden/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +74 -0
- package/hidden/javax/jcr/nodetype/NodeType/index.d.ts +349 -0
- package/hidden/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +248 -0
- package/hidden/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +16 -0
- package/hidden/javax/jcr/nodetype/NodeTypeManager/index.d.ts +218 -0
- package/hidden/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +98 -0
- package/hidden/javax/jcr/nodetype/PropertyDefinition/index.d.ts +536 -0
- package/hidden/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +97 -0
- package/hidden/javax/jcr/observation/Event/index.d.ts +133 -0
- package/hidden/javax/jcr/observation/EventIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/observation/EventJournal/index.d.ts +22 -0
- package/hidden/javax/jcr/observation/EventListener/index.d.ts +23 -0
- package/hidden/javax/jcr/observation/EventListenerIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/observation/ObservationManager/index.d.ts +227 -0
- package/hidden/javax/jcr/query/Query/index.d.ts +201 -0
- package/hidden/javax/jcr/query/QueryManager/index.d.ts +73 -0
- package/hidden/javax/jcr/query/QueryResult/index.d.ts +51 -0
- package/hidden/javax/jcr/query/Row/index.d.ts +159 -0
- package/hidden/javax/jcr/query/RowIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/query/qom/And/index.d.ts +26 -0
- package/hidden/javax/jcr/query/qom/BindVariableValue/index.d.ts +15 -0
- package/hidden/javax/jcr/query/qom/ChildNode/index.d.ts +27 -0
- package/hidden/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +27 -0
- package/hidden/javax/jcr/query/qom/Column/index.d.ts +39 -0
- package/hidden/javax/jcr/query/qom/Comparison/index.d.ts +82 -0
- package/hidden/javax/jcr/query/qom/Constraint/index.d.ts +13 -0
- package/hidden/javax/jcr/query/qom/DescendantNode/index.d.ts +31 -0
- package/hidden/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +29 -0
- package/hidden/javax/jcr/query/qom/DynamicOperand/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +41 -0
- package/hidden/javax/jcr/query/qom/FullTextSearch/index.d.ts +89 -0
- package/hidden/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +24 -0
- package/hidden/javax/jcr/query/qom/Join/index.d.ts +36 -0
- package/hidden/javax/jcr/query/qom/JoinCondition/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/Length/index.d.ts +24 -0
- package/hidden/javax/jcr/query/qom/Literal/index.d.ts +18 -0
- package/hidden/javax/jcr/query/qom/LowerCase/index.d.ts +26 -0
- package/hidden/javax/jcr/query/qom/NodeLocalName/index.d.ts +16 -0
- package/hidden/javax/jcr/query/qom/NodeName/index.d.ts +16 -0
- package/hidden/javax/jcr/query/qom/Not/index.d.ts +20 -0
- package/hidden/javax/jcr/query/qom/Operand/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/Or/index.d.ts +30 -0
- package/hidden/javax/jcr/query/qom/Ordering/index.d.ts +53 -0
- package/hidden/javax/jcr/query/qom/PropertyExistence/index.d.ts +24 -0
- package/hidden/javax/jcr/query/qom/PropertyValue/index.d.ts +25 -0
- package/hidden/javax/jcr/query/qom/QueryObjectModel/index.d.ts +64 -0
- package/hidden/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +638 -0
- package/hidden/javax/jcr/query/qom/SameNode/index.d.ts +27 -0
- package/hidden/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +36 -0
- package/hidden/javax/jcr/query/qom/Selector/index.d.ts +35 -0
- package/hidden/javax/jcr/query/qom/Source/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/StaticOperand/index.d.ts +10 -0
- package/hidden/javax/jcr/query/qom/UpperCase/index.d.ts +26 -0
- package/hidden/javax/jcr/retention/Hold/index.d.ts +34 -0
- package/hidden/javax/jcr/retention/RetentionManager/index.d.ts +189 -0
- package/hidden/javax/jcr/retention/RetentionPolicy/index.d.ts +21 -0
- package/hidden/javax/jcr/security/AccessControlEntry/index.d.ts +24 -0
- package/hidden/javax/jcr/security/AccessControlList/index.d.ts +91 -0
- package/hidden/javax/jcr/security/AccessControlManager/index.d.ts +297 -0
- package/hidden/javax/jcr/security/AccessControlPolicy/index.d.ts +11 -0
- package/hidden/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +22 -0
- package/hidden/javax/jcr/security/Privilege/index.d.ts +117 -0
- package/hidden/javax/jcr/version/Version/index.d.ts +121 -0
- package/hidden/javax/jcr/version/VersionHistory/index.d.ts +307 -0
- package/hidden/javax/jcr/version/VersionIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/version/VersionManager/index.d.ts +1082 -0
- package/hidden/senselogic/sitevision/api/base/Builder/index.d.ts +102 -0
- package/hidden/senselogic/sitevision/api/base/Filter/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/base/FilterSplit/index.d.ts +50 -0
- package/hidden/senselogic/sitevision/api/base/Loadable/index.d.ts +15 -0
- package/hidden/senselogic/sitevision/api/base/Resolver/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/base/Wrapper/index.d.ts +24 -0
- package/hidden/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +417 -0
- package/hidden/senselogic/sitevision/api/format/NumericFormatter/index.d.ts +80 -0
- package/hidden/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +100 -0
- package/hidden/senselogic/sitevision/api/i18n/Currency/index.d.ts +120 -0
- package/hidden/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +45 -0
- package/hidden/senselogic/sitevision/api/link/CustomLinkRenderData/index.d.ts +65 -0
- package/hidden/senselogic/sitevision/api/mail/Mail/index.d.ts +32 -0
- package/hidden/senselogic/sitevision/api/message/MessageTextLinker/index.d.ts +15 -0
- package/hidden/senselogic/sitevision/api/metadata/value/LinkValue/index.d.ts +23 -0
- package/hidden/senselogic/sitevision/api/metadata/value/RelatedValue/index.d.ts +23 -0
- package/hidden/senselogic/sitevision/api/property/VersionedPropertyUtil/index.d.ts +642 -0
- package/hidden/senselogic/sitevision/api/render/BuddyIconRenderer/BuddyIconInfo/index.d.ts +51 -0
- package/hidden/senselogic/sitevision/api/render/ImageScaler/index.d.ts +58 -0
- package/hidden/senselogic/sitevision/api/render/TextModuleRenderer/index.d.ts +301 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ArticleUtilConstants/index.d.ts +85 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ExceptionSuppressingProxyConstants/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/IndexingUtilConstants/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/LinkPageUtilConstants/index.d.ts +67 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MathInstanceConstants/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MimeTypeUtilConstants/index.d.ts +19 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/NodeTypeUtilConstants/index.d.ts +1243 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/OutputUtilConstants/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PageUtilConstants/index.d.ts +91 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletContextUtilConstants/index.d.ts +27 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletUtilConstants/index.d.ts +19 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/QueryStringUtilConstants/index.d.ts +19 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchHitConstants/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchResultConstants/index.d.ts +37 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/VersionUtilConstants/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/index.d.ts +8 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityContext/index.d.ts +50 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityEvaluator/index.d.ts +89 -0
- package/hidden/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +119 -0
- package/hidden/senselogic/sitevision/api/script/app/RestAppInvoker/index.d.ts +272 -0
- package/hidden/senselogic/sitevision/api/script/factory/TypedArgument/index.d.ts +43 -0
- package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingCollection/index.d.ts +94 -0
- package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingIterator/index.d.ts +117 -0
- package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +90 -0
- package/hidden/senselogic/sitevision/api/search/SearchFieldUtil/index.d.ts +89 -0
- package/hidden/senselogic/sitevision/api/search/SearchHighlighter/index.d.ts +45 -0
- package/hidden/senselogic/sitevision/api/search/SearchHit/index.d.ts +1176 -0
- package/hidden/senselogic/sitevision/api/search/SearchResult/index.d.ts +414 -0
- package/hidden/senselogic/sitevision/api/search/facet/SearchFacetField/index.d.ts +27 -0
- package/hidden/senselogic/sitevision/api/search/facet/SearchFacetValue/index.d.ts +61 -0
- package/hidden/senselogic/sitevision/api/search/searcher/Searcher/index.d.ts +277 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Filter/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Highlight/index.d.ts +29 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Monitor/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Parser/index.d.ts +35 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Sort/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/SpellCheck/index.d.ts +29 -0
- package/hidden/senselogic/sitevision/api/search/sort/CustomSort/index.d.ts +82 -0
- package/hidden/senselogic/sitevision/api/search/suggestion/SearchSuggestion/index.d.ts +21 -0
- package/hidden/senselogic/sitevision/api/security/DirectoryAttributes/index.d.ts +70 -0
- package/hidden/senselogic/sitevision/api/security/MessageDigester/index.d.ts +50 -0
- package/hidden/senselogic/sitevision/api/security/RoleAssignment/index.d.ts +72 -0
- package/hidden/senselogic/sitevision/api/security/RoleMatcher/index.d.ts +29 -0
- package/hidden/senselogic/sitevision/api/security/SecretStore/index.d.ts +55 -0
- package/hidden/senselogic/sitevision/api/security/UserUtil/index.d.ts +80 -0
- package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +36 -0
- package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilterChain/index.d.ts +32 -0
- package/hidden/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +599 -0
- package/hidden/senselogic/sitevision/api/webresource/LinkTarget/index.d.ts +20 -0
- package/hidden/senselogic/sitevision/api/xml/XmlElement/index.d.ts +55 -0
- package/hidden/senselogic/sitevision/api/xml/XmlElementHandler/index.d.ts +17 -0
- package/package.json +2 -4
- package/server/AliasUtil/index.d.ts +25 -0
- package/server/AliasUtil/index.js +10 -0
- package/server/ArchiveUtil/index.d.ts +65 -11
- package/server/ArraysInstance/index.d.ts +1846 -0
- package/server/ArticleUtil/index.d.ts +381 -69
- package/server/AuthenticationUtil/index.d.ts +106 -0
- package/server/BookmarkUtil/index.d.ts +36 -28
- package/server/BuddyIconRenderer/index.d.ts +240 -0
- package/server/ClientUtil/index.d.ts +18 -4
- package/server/CollaborationFactory/index.d.ts +42 -25
- package/server/CollaborationGroupFolderUtil/index.d.ts +40 -29
- package/server/CollaborationGroupTemplateUtil/index.d.ts +71 -39
- package/server/CollaborationGroupUtil/index.d.ts +128 -55
- package/server/CollectionsInstance/index.d.ts +738 -0
- package/server/ColorUtil/index.d.ts +22 -17
- package/server/CompoundAndFilterBuilder/index.d.ts +60 -0
- package/server/CompoundComparatorBuilder/index.d.ts +63 -0
- package/server/CompoundOrFilterBuilder/index.d.ts +59 -0
- package/server/ContentNodeUtil/index.d.ts +76 -0
- package/server/CurrencyFactory/index.d.ts +135 -0
- package/server/DateUtil/index.d.ts +154 -77
- package/server/DecorationUtil/index.d.ts +23 -0
- package/server/DeviceUtil/index.d.ts +36 -0
- package/server/DirectoryUtil/index.d.ts +107 -47
- package/server/DocTypeUtil/index.d.ts +149 -0
- package/server/EndecUtil/index.d.ts +537 -91
- package/server/ExtendedDismaxParserBuilder/index.d.ts +311 -0
- package/server/FileIconRenderer/index.d.ts +346 -0
- package/server/FileUtil/index.d.ts +462 -0
- package/server/FilterBuilder/index.d.ts +120 -0
- package/server/FolderUtil/index.d.ts +161 -0
- package/server/FontUtil/index.d.ts +49 -0
- package/server/FormatterBuilderFactory/index.d.ts +129 -0
- package/server/HighlightBuilder/index.d.ts +194 -0
- package/server/IconUtil/index.d.ts +37 -0
- package/server/ImageLinkRenderer/index.d.ts +134 -0
- package/server/ImageRenderer/index.d.ts +613 -231
- package/server/ImageUtil/index.d.ts +430 -0
- package/server/IndexUtil/index.d.ts +71 -0
- package/server/IndexingUtil/index.d.ts +92 -0
- package/server/InstanceCreatorUtil/index.d.ts +661 -0
- package/server/InstanceTypeUtil/index.d.ts +202 -0
- package/server/JwtUtil/index.d.ts +217 -0
- package/server/LandingPageUtil/index.d.ts +67 -50
- package/server/LinkPageUtil/index.d.ts +468 -0
- package/server/LinkRenderer/index.d.ts +1157 -0
- package/server/LinkTargetBuilder/index.d.ts +146 -0
- package/server/LinkValueBuilder/index.d.ts +129 -52
- package/server/ListWrapper/index.d.ts +172 -0
- package/server/LocaleUtil/index.d.ts +695 -61
- package/server/LogUtil/index.d.ts +118 -77
- package/server/MailBuilder/index.d.ts +238 -0
- package/server/MailUtil/index.d.ts +98 -0
- package/server/MathInstance/index.d.ts +681 -0
- package/server/MessageDigesterFactory/index.d.ts +49 -0
- package/server/MetadataDefinitionUtil/index.d.ts +118 -0
- package/server/MetadataUtil/index.d.ts +524 -79
- package/server/MimeTypeUtil/index.d.ts +316 -0
- package/server/MonitorBuilder/index.d.ts +51 -0
- package/server/NodeComparatorUtil/index.d.ts +397 -0
- package/server/NodeFactoryUtil/index.d.ts +32 -0
- package/server/NodeFilterUtil/index.d.ts +924 -0
- package/server/NodeIteratorUtil/index.d.ts +322 -72
- package/server/NodeResolverUtil/index.d.ts +767 -0
- package/server/NodeTreeUtil/index.d.ts +339 -63
- package/server/NodeTypeUtil/index.d.ts +391 -197
- package/server/OfflineVersionPropertyUtil/index.d.ts +30 -0
- package/server/OnlineVersionPropertyUtil/index.d.ts +30 -0
- package/server/OutputUtil/index.d.ts +641 -0
- package/server/PageUtil/index.d.ts +330 -0
- package/server/PermissionUtil/index.d.ts +650 -0
- package/server/PortletContextUtil/index.d.ts +118 -37
- package/server/PortletContextUtil/index.js +1 -0
- package/server/PortletUtil/index.d.ts +40 -0
- package/server/PrincipalUtil/index.d.ts +51 -0
- package/server/Properties/index.d.ts +185 -38
- package/server/PropertyUtil/index.d.ts +2330 -406
- package/server/PublishingUtil/index.d.ts +385 -49
- package/server/QueryStringUtil/index.d.ts +737 -0
- package/server/RedirectUtil/index.d.ts +98 -0
- package/server/RelatedValueBuilder/index.d.ts +81 -39
- package/server/Requester/index.d.ts +441 -65
- package/server/ResourceLocatorUtil/index.d.ts +483 -227
- package/server/RestApi/index.d.ts +208 -23
- package/server/RestAppInvokerFactory/index.d.ts +73 -0
- package/server/RoleAssignmentBuilder/index.d.ts +60 -0
- package/server/RoleMatcherBuilder/index.d.ts +59 -0
- package/server/RoleUtil/index.d.ts +57 -0
- package/server/ScriptUtil/index.d.ts +625 -143
- package/server/SearchFactory/index.d.ts +133 -0
- package/server/SearchUtil/index.d.ts +164 -0
- package/server/SearcherBuilder/index.d.ts +260 -0
- package/server/Session/index.d.ts +1758 -0
- package/server/SimpleUserUtil/index.d.ts +39 -30
- package/server/SiteCookieUtil/index.d.ts +78 -53
- package/server/SortBuilder/index.d.ts +111 -0
- package/server/SpellCheckBuilder/index.d.ts +68 -0
- package/server/StandardParserBuilder/index.d.ts +112 -0
- package/server/StructureUtil/index.d.ts +167 -0
- package/server/SubscriberUtil/index.d.ts +122 -0
- package/server/SubscriptionUtil/index.d.ts +197 -0
- package/server/SystemUserUtil/index.d.ts +201 -98
- package/server/TagUtil/index.d.ts +193 -0
- package/server/TemplateUtil/index.d.ts +217 -0
- package/server/TemporaryFileNodeBuilder/index.d.ts +63 -0
- package/server/TemporaryNodeBuilder/index.d.ts +241 -0
- package/server/TextModuleRendererBuilder/index.d.ts +68 -0
- package/server/TimestampUtil/index.d.ts +98 -82
- package/server/TranslationUtil/index.d.ts +175 -0
- package/server/TrashcanUtil/index.d.ts +193 -24
- package/server/UserDataUtil/index.d.ts +167 -85
- package/server/UserFactory/index.d.ts +45 -30
- package/server/UserFieldRenderer/index.d.ts +258 -0
- package/server/UserIdentityUtil/index.d.ts +61 -29
- package/server/UserUtil/index.d.ts +69 -28
- package/server/Utils/index.d.ts +870 -12
- package/server/VelocityRenderer/index.d.ts +248 -0
- package/server/VersionUtil/index.d.ts +15 -12
- package/server/WebContentUtil/index.d.ts +644 -0
- package/server/WebResourceFactory/index.d.ts +66 -0
- package/server/XSLTUtil/index.d.ts +49 -10
- package/server/XmlParserUtil/index.d.ts +82 -81
- package/builtins/Binary/index.d.ts +0 -3
- package/builtins/Calendar/index.d.ts +0 -3
- package/builtins/Collection/index.d.ts +0 -3
- package/builtins/Date/index.d.ts +0 -3
- package/builtins/InputStream/index.d.ts +0 -3
- package/builtins/Instant/index.d.ts +0 -3
- package/builtins/List/index.d.ts +0 -3
- package/builtins/LocalDateTime/index.d.ts +0 -3
- package/builtins/Locale/index.d.ts +0 -3
- package/builtins/Node/index.d.ts +0 -3
- package/builtins/NodeIterator/index.d.ts +0 -27
- package/builtins/Property/index.d.ts +0 -3
- package/builtins/Serializable/index.d.ts +0 -3
- package/builtins/Set/index.d.ts +0 -3
- package/builtins/Throwable/index.d.ts +0 -3
- package/builtins/byte/index.d.ts +0 -3
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
import Node from "../../hidden/javax/jcr/Node";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* <p>
|
|
5
|
+
* Adds several images to a <code>sv:localImageRepository</code>, <code>sv:imageRepository</code>, <code>sv:personalImageRepository</code>
|
|
6
|
+
* or a <code>sv:folder</code> residing as sub node to an image repository.
|
|
7
|
+
* If an other parent node is specified a <code>ConstraintViolationException</code> is thrown.
|
|
8
|
+
* The images map keys correspond to the file names (will correspond to the property fileName of the sv:image nodes)
|
|
9
|
+
* and the values to URIs pointing to the file resources.
|
|
10
|
+
* </p>
|
|
11
|
+
*
|
|
12
|
+
* <p>
|
|
13
|
+
* Note that the images must have an image mime-type to be created.
|
|
14
|
+
* </p>
|
|
15
|
+
*
|
|
16
|
+
* <p>
|
|
17
|
+
* <strong>URI note!</strong> The resource must be accessible from the Sitevision server! Sitevision opens
|
|
18
|
+
* a stream to an URL with the <code>aUri</code> value when creating the binary content of the image.
|
|
19
|
+
* If a firewall or such blocks outgoing communication from the server - image creation will fail.
|
|
20
|
+
* </p>
|
|
21
|
+
*
|
|
22
|
+
* <p>
|
|
23
|
+
* <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
|
|
24
|
+
* on the parent node (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE})
|
|
25
|
+
* or a <code>ConstraintViolationException</code> is thrown.
|
|
26
|
+
* <em>Creating an image for a <code>sv:userIdentity</code> requires
|
|
27
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_USER_IDENTITIES} on current page.</em>
|
|
28
|
+
* </p>
|
|
29
|
+
* @param aParent the parent node for the images. May not be <code>null</code>
|
|
30
|
+
* @param aImages a map of file name to URI pairs May not be <code>null</code>
|
|
31
|
+
* @throws ConstraintViolationException if the user is not authorized to alter the parent node, if an invalid parent node is specified or if image exceeds file size limit
|
|
32
|
+
* @throws RepositoryException if something else goes wrong
|
|
33
|
+
*/
|
|
34
|
+
export function createImages(
|
|
35
|
+
aParent: Node,
|
|
36
|
+
aImages: Record<unknown, unknown>
|
|
37
|
+
): void;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Creates an image using a uri string.
|
|
41
|
+
*
|
|
42
|
+
* <p>
|
|
43
|
+
* Note that the <code>aParent</code> of the file must be a <code>sv:localImageRepository</code>, <code>sv:imageRepository</code>,
|
|
44
|
+
* <code>sv:personalImageRepository</code> or a <code>sv:folder</code> residing as sub node to an image repository.
|
|
45
|
+
* </p>
|
|
46
|
+
* <p>
|
|
47
|
+
* The file must have an image mime-type or an <code>IllegalArgumentException</code> is thrown.
|
|
48
|
+
* </p>
|
|
49
|
+
*
|
|
50
|
+
* <p>
|
|
51
|
+
* <strong>URI note!</strong> The resource must be accessible from the Sitevision server! Sitevision opens
|
|
52
|
+
* a stream to an URL with the <code>aUri</code> value when creating the binary content of the image.
|
|
53
|
+
* If a firewall or such blocks outgoing communication from the server - image creation will fail.
|
|
54
|
+
* </p>
|
|
55
|
+
*
|
|
56
|
+
* <p>
|
|
57
|
+
* <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
|
|
58
|
+
* on the parent node (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE})
|
|
59
|
+
* or a <code>ConstraintViolationException</code> is thrown.
|
|
60
|
+
* <em>Creating an image for a <code>sv:userIdentity</code> requires
|
|
61
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_USER_IDENTITIES} on current page.</em>
|
|
62
|
+
* </p>
|
|
63
|
+
* @param aParent the parent node of the image. May not be <code>null</code>
|
|
64
|
+
* @param aFileName the fileName property of the sv:image. May not be <code>null</code>
|
|
65
|
+
* @param aUri the URI pointing to the file resource. May not be <code>null</code>
|
|
66
|
+
* @return a sv:image node corresponding to the newly created image. Will never return <code>null</code>
|
|
67
|
+
* @throws ConstraintViolationException if the user is not authorized to alter the parent node, if an invalid parent node is specified or if image exceeds file size limit
|
|
68
|
+
* @throws RepositoryException if something else goes wrong
|
|
69
|
+
*/
|
|
70
|
+
export function createImage(
|
|
71
|
+
aParent: Node,
|
|
72
|
+
aFileName: string,
|
|
73
|
+
aUri: string
|
|
74
|
+
): Node;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Creates an image using a base64 string.
|
|
78
|
+
*
|
|
79
|
+
* <p>
|
|
80
|
+
* The base64 decoder uses "The Base64 Alphabet" as specified in Table 1 of RFC 4648 and RFC 2045 for decoding operation.
|
|
81
|
+
* The decoder rejects data that contains characters outside the base64 alphabet.
|
|
82
|
+
* </p>
|
|
83
|
+
* <p>
|
|
84
|
+
* Note that the <code>aParent</code> of the file must be a <code>sv:localImageRepository</code>, <code>sv:imageRepository</code>,
|
|
85
|
+
* <code>sv:personalImageRepository</code> or a <code>sv:folder</code> residing as sub node to an image repository.
|
|
86
|
+
* </p>
|
|
87
|
+
* <p>
|
|
88
|
+
* The file name must correspond to an image mime-type or an <code>IllegalArgumentException</code> is thrown.
|
|
89
|
+
* </p>
|
|
90
|
+
*
|
|
91
|
+
* <p>
|
|
92
|
+
* <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
|
|
93
|
+
* on the parent node (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE})
|
|
94
|
+
* or a <code>ConstraintViolationException</code> is thrown.
|
|
95
|
+
* <em>Creating an image for a <code>sv:userIdentity</code> requires
|
|
96
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_USER_IDENTITIES} on current page.</em>
|
|
97
|
+
* </p>
|
|
98
|
+
* @param aParent the parent node of the image. May not be <code>null</code>
|
|
99
|
+
* @param aFileName the fileName property of the sv:image. May not be <code>null</code>
|
|
100
|
+
* @param aBase64EncodedString a base64 encoded string. May not be <code>null</code>
|
|
101
|
+
* @return a sv:image node corresponding to the newly created image. Will never return <code>null</code>
|
|
102
|
+
* @throws ConstraintViolationException if the user is not authorized to alter the parent node, if an invalid parent node is specified, if <code>aBase64EncodedString</code> is not base64 encoded or if image exceeds file size limit
|
|
103
|
+
* @throws RepositoryException if something else goes wrong
|
|
104
|
+
* @since Sitevision 4.5.4
|
|
105
|
+
*/
|
|
106
|
+
export function createImageFromBase64(
|
|
107
|
+
aParent: Node,
|
|
108
|
+
aFileName: string,
|
|
109
|
+
aBase64EncodedString: string
|
|
110
|
+
): Node;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Creates an image using a sv:temporaryFile.
|
|
114
|
+
*
|
|
115
|
+
* <p>
|
|
116
|
+
* Note that the <code>aParent</code> of the file must be a <code>sv:localImageRepository</code>, <code>sv:imageRepository</code>,
|
|
117
|
+
* <code>sv:personalImageRepository</code> or a <code>sv:folder</code> residing as sub node to an image repository.
|
|
118
|
+
* </p>
|
|
119
|
+
* <p>
|
|
120
|
+
* The file name must correspond to an image mime-type or an <code>IllegalArgumentException</code> is thrown.
|
|
121
|
+
* </p>
|
|
122
|
+
*
|
|
123
|
+
* <p>
|
|
124
|
+
* <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
|
|
125
|
+
* on the parent node (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE})
|
|
126
|
+
* or a <code>ConstraintViolationException</code> is thrown.
|
|
127
|
+
* <em>Creating an image for a <code>sv:userIdentity</code> requires
|
|
128
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_USER_IDENTITIES} on current page.</em>
|
|
129
|
+
* </p>
|
|
130
|
+
* @param aParent the parent node of the image
|
|
131
|
+
* @param aTemporaryFile a sv:temporaryFile (typically created via {@link senselogic.sitevision.api.node.builder.TemporaryFileNodeBuilder})
|
|
132
|
+
* @return a sv:image node corresponding to the newly created image. Will never return <code>null</code>
|
|
133
|
+
* @throws ConstraintViolationException if the user is not authorized to alter the parent node, if an invalid parent node is specified, if an invalid temporary node is specified or if image exceeds file size limit
|
|
134
|
+
* @throws RepositoryException if something else goes wrong
|
|
135
|
+
* @since Sitevision 4.5.4
|
|
136
|
+
*/
|
|
137
|
+
export function createImageFromTemporary(
|
|
138
|
+
aParent: Node,
|
|
139
|
+
aTemporaryFile: Node
|
|
140
|
+
): Node;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Updates the binary content of an existing image using a uri string.
|
|
144
|
+
*
|
|
145
|
+
* <p>
|
|
146
|
+
* Properties related to the binary content will also be updated (e.g. <code>length</code>, <code>width</code> and <code>height</code>).
|
|
147
|
+
* </p>
|
|
148
|
+
*
|
|
149
|
+
* <p>
|
|
150
|
+
* <strong>URI note!</strong> The URI must be accessible from the Sitevision server and the ending part
|
|
151
|
+
* of the URI must match the file extension of the existing image that should be updated!
|
|
152
|
+
* </p>
|
|
153
|
+
* <p>
|
|
154
|
+
* <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
|
|
155
|
+
* on the image node that should be updated (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
|
|
156
|
+
* <em>Updating an image for a <code>sv:userIdentity</code> requires
|
|
157
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_USER_IDENTITIES} on current page.</em>
|
|
158
|
+
* </p>
|
|
159
|
+
* @param aImage the image. May not be <code>null</code>
|
|
160
|
+
* @param aUri the URI pointing to the file resource to fetch new binary content from. May not be <code>null</code>
|
|
161
|
+
* @throws ConstraintViolationException if the user is not authorized to alter the image node, if an invalid node is specified, if the end part of <code>aUri</code> doesn't match the file extension of <code>aImage</code> or if image exceeds file size limit
|
|
162
|
+
* @throws RepositoryException if something else goes wrong
|
|
163
|
+
* @since Sitevision 3.6.3
|
|
164
|
+
*/
|
|
165
|
+
export function updateBinaryContent(aImage: Node, aUri: string): void;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Updates the binary content of an existing image using a base64 string.
|
|
169
|
+
*
|
|
170
|
+
* <p>
|
|
171
|
+
* The base64 decoder uses "The Base64 Alphabet" as specified in Table 1 of RFC 4648 and RFC 2045 for decoding operation.
|
|
172
|
+
* The decoder rejects data that contains characters outside the base64 alphabet.
|
|
173
|
+
* </p>
|
|
174
|
+
* <p>
|
|
175
|
+
* Properties related to the binary content will also be updated (e.g. <code>length</code>, <code>width</code> and <code>height</code>).
|
|
176
|
+
* </p>
|
|
177
|
+
*
|
|
178
|
+
* <p>
|
|
179
|
+
* <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
|
|
180
|
+
* on the image node that should be updated (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
|
|
181
|
+
* <em>Updating an image for a <code>sv:userIdentity</code> requires
|
|
182
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_USER_IDENTITIES} on current page.</em>
|
|
183
|
+
* </p>
|
|
184
|
+
* @param aImage the image. May not be <code>null</code>
|
|
185
|
+
* @param aBase64EncodedString a base64 encoded string. May not be <code>null</code>
|
|
186
|
+
* @throws ConstraintViolationException if the user is not authorized to alter the image node, if an invalid node is specified, if <code>aBase64EncodedString</code> is not base64 encoded or if image exceeds file size limit
|
|
187
|
+
* @throws RepositoryException if something else goes wrong
|
|
188
|
+
* @since Sitevision 4.5.4
|
|
189
|
+
*/
|
|
190
|
+
export function updateBinaryContentFromBase64(
|
|
191
|
+
aImage: Node,
|
|
192
|
+
aBase64EncodedString: string
|
|
193
|
+
): void;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Updates the binary content of an existing image using a sv:temporaryFile.
|
|
197
|
+
*
|
|
198
|
+
* <p>
|
|
199
|
+
* Properties related to the binary content will also be updated (e.g. <code>length</code>, <code>width</code> and <code>height</code>).
|
|
200
|
+
* </p>
|
|
201
|
+
*
|
|
202
|
+
* <p>
|
|
203
|
+
* <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
|
|
204
|
+
* on the image node that should be updated (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
|
|
205
|
+
* <em>Updating an image for a <code>sv:userIdentity</code> requires
|
|
206
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_USER_IDENTITIES} on current page.</em>
|
|
207
|
+
* </p>
|
|
208
|
+
* @param aImage the image. May not be <code>null</code>
|
|
209
|
+
* @param aTemporaryFile the sv:temporaryFile (typically created via {@link senselogic.sitevision.api.node.builder.TemporaryFileNodeBuilder})
|
|
210
|
+
* @throws ConstraintViolationException if the user is not authorized to alter the image node, if an invalid node is specified, if the end part of the file represented by <code>aTemporaryFile</code> doesn't match the file extension of <code>aImage</code> or if image exceeds file size limit
|
|
211
|
+
* @throws RepositoryException if something else goes wrong
|
|
212
|
+
* @since Sitevision 4.5.4
|
|
213
|
+
*/
|
|
214
|
+
export function updateBinaryContentFromTemporary(
|
|
215
|
+
aImage: Node,
|
|
216
|
+
aTemporaryFile: Node
|
|
217
|
+
): void;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Alters the name of an image.
|
|
221
|
+
*
|
|
222
|
+
* <p>
|
|
223
|
+
* If no image is specified a <code>NullPointerException</code> is thrown.
|
|
224
|
+
* If the node is not a sv:image an <code>IllegalArgumentException</code> is thrown.
|
|
225
|
+
* If no name is provided a <code>NullPointerException</code> is thrown.
|
|
226
|
+
* </p>
|
|
227
|
+
*
|
|
228
|
+
* <p>
|
|
229
|
+
* <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
|
|
230
|
+
* on the image node that should be updated (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
|
|
231
|
+
* <em>Updating an image for a <code>sv:userIdentity</code> requires
|
|
232
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_USER_IDENTITIES} on current page.</em>
|
|
233
|
+
* </p>
|
|
234
|
+
* @param aImage the sv:image that should be renamed. May not be <code>null</code>
|
|
235
|
+
* @param aName the new name of the image. May not be <code>null</code>
|
|
236
|
+
* @throws ConstraintViolationException if the current user is not authorized to alter the name of the image or if the image extension doesn't match
|
|
237
|
+
* @throws RepositoryException if something else goes wrong
|
|
238
|
+
* @since Sitevision 4.5.2
|
|
239
|
+
*/
|
|
240
|
+
export function renameImage(aImage: Node, aName: string): void;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* The Base64 String representation of an image Node.
|
|
244
|
+
*
|
|
245
|
+
* <p>
|
|
246
|
+
* Reads the binary content of an image and encodes the bytes using
|
|
247
|
+
* {@link senselogic.sitevision.api.text.EndecUtil#base64encodeToString(byte[])}.
|
|
248
|
+
* </p>
|
|
249
|
+
* @param aImage the image Node (sv:image or sv:temporaryFile), may not be null
|
|
250
|
+
* @return aImage as base64-encoded String
|
|
251
|
+
* @throws ConstraintViolationException if aImage is not a sv:image or sv:temporaryFile
|
|
252
|
+
* @throws RepositoryException if something else goes wrong
|
|
253
|
+
* @since Sitevision 4.5.5.2
|
|
254
|
+
*/
|
|
255
|
+
export function toBase64(aImage: Node): string;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Image utility interface that handles nodes with primary node type <code>sv:image</code>.
|
|
259
|
+
*
|
|
260
|
+
* <p>
|
|
261
|
+
* <em>Note!</em> This interface is used to <em>create</em> images. You would typically use
|
|
262
|
+
* {@link senselogic.sitevision.api.webresource.structure.StructureUtil} to <em>move</em> an image
|
|
263
|
+
* and {@link senselogic.sitevision.api.webresource.structure.TrashcanUtil} to <em>delete</em> an image.
|
|
264
|
+
* To <em>render</em> images, you would typically use {@link senselogic.sitevision.api.render.ImageRenderer}
|
|
265
|
+
* or {@link senselogic.sitevision.api.render.ImageLinkRenderer}.
|
|
266
|
+
* </p>
|
|
267
|
+
*
|
|
268
|
+
* <p>
|
|
269
|
+
* An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getImageUtil()}.
|
|
270
|
+
* See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
|
|
271
|
+
* </p><p>
|
|
272
|
+
* Adds several images to a <code>sv:localImageRepository</code>, <code>sv:imageRepository</code>, <code>sv:personalImageRepository</code>
|
|
273
|
+
* or a <code>sv:folder</code> residing as sub node to an image repository.
|
|
274
|
+
* If an other parent node is specified a <code>ConstraintViolationException</code> is thrown.
|
|
275
|
+
* The images map keys correspond to the file names (will correspond to the property fileName of the sv:image nodes)
|
|
276
|
+
* and the values to URIs pointing to the file resources.
|
|
277
|
+
* </p>
|
|
278
|
+
*
|
|
279
|
+
* <p>
|
|
280
|
+
* Note that the images must have an image mime-type to be created.
|
|
281
|
+
* </p>
|
|
282
|
+
*
|
|
283
|
+
* <p>
|
|
284
|
+
* <strong>URI note!</strong> The resource must be accessible from the Sitevision server! Sitevision opens
|
|
285
|
+
* a stream to an URL with the <code>aUri</code> value when creating the binary content of the image.
|
|
286
|
+
* If a firewall or such blocks outgoing communication from the server - image creation will fail.
|
|
287
|
+
* </p>
|
|
288
|
+
*
|
|
289
|
+
* <p>
|
|
290
|
+
* <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
|
|
291
|
+
* on the parent node (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE})
|
|
292
|
+
* or a <code>ConstraintViolationException</code> is thrown.
|
|
293
|
+
* <em>Creating an image for a <code>sv:userIdentity</code> requires
|
|
294
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_USER_IDENTITIES} on current page.</em>
|
|
295
|
+
* </p>Creates an image using a uri string.
|
|
296
|
+
*
|
|
297
|
+
* <p>
|
|
298
|
+
* Note that the <code>aParent</code> of the file must be a <code>sv:localImageRepository</code>, <code>sv:imageRepository</code>,
|
|
299
|
+
* <code>sv:personalImageRepository</code> or a <code>sv:folder</code> residing as sub node to an image repository.
|
|
300
|
+
* </p>
|
|
301
|
+
* <p>
|
|
302
|
+
* The file must have an image mime-type or an <code>IllegalArgumentException</code> is thrown.
|
|
303
|
+
* </p>
|
|
304
|
+
*
|
|
305
|
+
* <p>
|
|
306
|
+
* <strong>URI note!</strong> The resource must be accessible from the Sitevision server! Sitevision opens
|
|
307
|
+
* a stream to an URL with the <code>aUri</code> value when creating the binary content of the image.
|
|
308
|
+
* If a firewall or such blocks outgoing communication from the server - image creation will fail.
|
|
309
|
+
* </p>
|
|
310
|
+
*
|
|
311
|
+
* <p>
|
|
312
|
+
* <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
|
|
313
|
+
* on the parent node (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE})
|
|
314
|
+
* or a <code>ConstraintViolationException</code> is thrown.
|
|
315
|
+
* <em>Creating an image for a <code>sv:userIdentity</code> requires
|
|
316
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_USER_IDENTITIES} on current page.</em>
|
|
317
|
+
* </p>Creates an image using a base64 string.
|
|
318
|
+
*
|
|
319
|
+
* <p>
|
|
320
|
+
* The base64 decoder uses "The Base64 Alphabet" as specified in Table 1 of RFC 4648 and RFC 2045 for decoding operation.
|
|
321
|
+
* The decoder rejects data that contains characters outside the base64 alphabet.
|
|
322
|
+
* </p>
|
|
323
|
+
* <p>
|
|
324
|
+
* Note that the <code>aParent</code> of the file must be a <code>sv:localImageRepository</code>, <code>sv:imageRepository</code>,
|
|
325
|
+
* <code>sv:personalImageRepository</code> or a <code>sv:folder</code> residing as sub node to an image repository.
|
|
326
|
+
* </p>
|
|
327
|
+
* <p>
|
|
328
|
+
* The file name must correspond to an image mime-type or an <code>IllegalArgumentException</code> is thrown.
|
|
329
|
+
* </p>
|
|
330
|
+
*
|
|
331
|
+
* <p>
|
|
332
|
+
* <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
|
|
333
|
+
* on the parent node (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE})
|
|
334
|
+
* or a <code>ConstraintViolationException</code> is thrown.
|
|
335
|
+
* <em>Creating an image for a <code>sv:userIdentity</code> requires
|
|
336
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_USER_IDENTITIES} on current page.</em>
|
|
337
|
+
* </p>Creates an image using a sv:temporaryFile.
|
|
338
|
+
*
|
|
339
|
+
* <p>
|
|
340
|
+
* Note that the <code>aParent</code> of the file must be a <code>sv:localImageRepository</code>, <code>sv:imageRepository</code>,
|
|
341
|
+
* <code>sv:personalImageRepository</code> or a <code>sv:folder</code> residing as sub node to an image repository.
|
|
342
|
+
* </p>
|
|
343
|
+
* <p>
|
|
344
|
+
* The file name must correspond to an image mime-type or an <code>IllegalArgumentException</code> is thrown.
|
|
345
|
+
* </p>
|
|
346
|
+
*
|
|
347
|
+
* <p>
|
|
348
|
+
* <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
|
|
349
|
+
* on the parent node (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE})
|
|
350
|
+
* or a <code>ConstraintViolationException</code> is thrown.
|
|
351
|
+
* <em>Creating an image for a <code>sv:userIdentity</code> requires
|
|
352
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_USER_IDENTITIES} on current page.</em>
|
|
353
|
+
* </p>Updates the binary content of an existing image using a uri string.
|
|
354
|
+
*
|
|
355
|
+
* <p>
|
|
356
|
+
* Properties related to the binary content will also be updated (e.g. <code>length</code>, <code>width</code> and <code>height</code>).
|
|
357
|
+
* </p>
|
|
358
|
+
*
|
|
359
|
+
* <p>
|
|
360
|
+
* <strong>URI note!</strong> The URI must be accessible from the Sitevision server and the ending part
|
|
361
|
+
* of the URI must match the file extension of the existing image that should be updated!
|
|
362
|
+
* </p>
|
|
363
|
+
* <p>
|
|
364
|
+
* <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
|
|
365
|
+
* on the image node that should be updated (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
|
|
366
|
+
* <em>Updating an image for a <code>sv:userIdentity</code> requires
|
|
367
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_USER_IDENTITIES} on current page.</em>
|
|
368
|
+
* </p>Updates the binary content of an existing image using a base64 string.
|
|
369
|
+
*
|
|
370
|
+
* <p>
|
|
371
|
+
* The base64 decoder uses "The Base64 Alphabet" as specified in Table 1 of RFC 4648 and RFC 2045 for decoding operation.
|
|
372
|
+
* The decoder rejects data that contains characters outside the base64 alphabet.
|
|
373
|
+
* </p>
|
|
374
|
+
* <p>
|
|
375
|
+
* Properties related to the binary content will also be updated (e.g. <code>length</code>, <code>width</code> and <code>height</code>).
|
|
376
|
+
* </p>
|
|
377
|
+
*
|
|
378
|
+
* <p>
|
|
379
|
+
* <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
|
|
380
|
+
* on the image node that should be updated (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
|
|
381
|
+
* <em>Updating an image for a <code>sv:userIdentity</code> requires
|
|
382
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_USER_IDENTITIES} on current page.</em>
|
|
383
|
+
* </p>Updates the binary content of an existing image using a sv:temporaryFile.
|
|
384
|
+
*
|
|
385
|
+
* <p>
|
|
386
|
+
* Properties related to the binary content will also be updated (e.g. <code>length</code>, <code>width</code> and <code>height</code>).
|
|
387
|
+
* </p>
|
|
388
|
+
*
|
|
389
|
+
* <p>
|
|
390
|
+
* <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
|
|
391
|
+
* on the image node that should be updated (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
|
|
392
|
+
* <em>Updating an image for a <code>sv:userIdentity</code> requires
|
|
393
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_USER_IDENTITIES} on current page.</em>
|
|
394
|
+
* </p>Alters the name of an image.
|
|
395
|
+
*
|
|
396
|
+
* <p>
|
|
397
|
+
* If no image is specified a <code>NullPointerException</code> is thrown.
|
|
398
|
+
* If the node is not a sv:image an <code>IllegalArgumentException</code> is thrown.
|
|
399
|
+
* If no name is provided a <code>NullPointerException</code> is thrown.
|
|
400
|
+
* </p>
|
|
401
|
+
*
|
|
402
|
+
* <p>
|
|
403
|
+
* <strong>Permission note!</strong> Current user (the invoker of this method) must have WRITE permission
|
|
404
|
+
* on the image node that should be updated (see {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}).
|
|
405
|
+
* <em>Updating an image for a <code>sv:userIdentity</code> requires
|
|
406
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_USER_IDENTITIES} on current page.</em>
|
|
407
|
+
* </p>The Base64 String representation of an image Node.
|
|
408
|
+
*
|
|
409
|
+
* <p>
|
|
410
|
+
* Reads the binary content of an image and encodes the bytes using
|
|
411
|
+
* {@link senselogic.sitevision.api.text.EndecUtil#base64encodeToString(byte[])}.
|
|
412
|
+
* </p>
|
|
413
|
+
* @author Mikael Wikblom
|
|
414
|
+
* @since Sitevision 2.6.2
|
|
415
|
+
*/
|
|
416
|
+
declare namespace ImageUtil {
|
|
417
|
+
export {
|
|
418
|
+
createImages,
|
|
419
|
+
createImage,
|
|
420
|
+
createImageFromBase64,
|
|
421
|
+
createImageFromTemporary,
|
|
422
|
+
updateBinaryContent,
|
|
423
|
+
updateBinaryContentFromBase64,
|
|
424
|
+
updateBinaryContentFromTemporary,
|
|
425
|
+
renameImage,
|
|
426
|
+
toBase64,
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export default ImageUtil;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import IndexUtil_IndexType from "../IndexUtil_IndexType";
|
|
2
|
+
import Node from "../../hidden/javax/jcr/Node";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Gets the default index for a specified index type.
|
|
6
|
+
*
|
|
7
|
+
* <p>
|
|
8
|
+
* <strong>Note!</strong>The default user identity index is only handled if a <em>Social Collaboration</em> license is in use.
|
|
9
|
+
* The default user-generated content (UGC) index is only handled if a <em>Social Collaboration</em> license is in use.
|
|
10
|
+
* </p>
|
|
11
|
+
* @param aIndexType type of index
|
|
12
|
+
* @return the default index for <code>aIndexType</code>, or <code>null</code> if not available
|
|
13
|
+
*/
|
|
14
|
+
export function getDefaultIndex(aIndexType: IndexType): Node;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Gets an index by name.
|
|
18
|
+
*
|
|
19
|
+
* <p>
|
|
20
|
+
* Lookup order:
|
|
21
|
+
* </p>
|
|
22
|
+
* <ol>
|
|
23
|
+
* <li>Custom <em>site</em> index</li>
|
|
24
|
+
* <li>Custom <em>server</em> index</li>
|
|
25
|
+
* <li><em>Default</em> index(-es), types specified by {@link senselogic.sitevision.api.search.index.IndexUtil.IndexType}</li>
|
|
26
|
+
* </ol>
|
|
27
|
+
* <p>
|
|
28
|
+
* <strong>Note!</strong> Custom index is only handled if a <em>Search Package 2</em> license is in use.
|
|
29
|
+
* The default user identity index is only handled if a <em>Social Collaboration</em> license is in use.
|
|
30
|
+
* The default user-generated content (UGC) index is only handled if a <em>Social Collaboration</em> license is in use.
|
|
31
|
+
* </p>
|
|
32
|
+
* @param aIndexName the name of the index
|
|
33
|
+
* @return the index or <code>null</code> if no index matches <code>aIndexName</code>
|
|
34
|
+
*/
|
|
35
|
+
export function getIndexByName(aIndexName: string): Node;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Index utility interface.
|
|
39
|
+
*
|
|
40
|
+
* <p>
|
|
41
|
+
* An instance of the Sitevision class implementing this interface can be obtained via
|
|
42
|
+
* {@link senselogic.sitevision.api.search.SearchFactory#getIndexUtil()}.
|
|
43
|
+
* See {@link senselogic.sitevision.api.search.SearchFactory} for how to obtain an instance of the <code>SearchFactory</code> interface.
|
|
44
|
+
* </p>Gets the default index for a specified index type.
|
|
45
|
+
*
|
|
46
|
+
* <p>
|
|
47
|
+
* <strong>Note!</strong>The default user identity index is only handled if a <em>Social Collaboration</em> license is in use.
|
|
48
|
+
* The default user-generated content (UGC) index is only handled if a <em>Social Collaboration</em> license is in use.
|
|
49
|
+
* </p>Gets an index by name.
|
|
50
|
+
*
|
|
51
|
+
* <p>
|
|
52
|
+
* Lookup order:
|
|
53
|
+
* </p>
|
|
54
|
+
* <ol>
|
|
55
|
+
* <li>Custom <em>site</em> index</li>
|
|
56
|
+
* <li>Custom <em>server</em> index</li>
|
|
57
|
+
* <li><em>Default</em> index(-es), types specified by {@link senselogic.sitevision.api.search.index.IndexUtil.IndexType}</li>
|
|
58
|
+
* </ol>
|
|
59
|
+
* <p>
|
|
60
|
+
* <strong>Note!</strong> Custom index is only handled if a <em>Search Package 2</em> license is in use.
|
|
61
|
+
* The default user identity index is only handled if a <em>Social Collaboration</em> license is in use.
|
|
62
|
+
* The default user-generated content (UGC) index is only handled if a <em>Social Collaboration</em> license is in use.
|
|
63
|
+
* </p>
|
|
64
|
+
* @author Magnus Lövgren
|
|
65
|
+
* @since Sitevision 3.6
|
|
66
|
+
*/
|
|
67
|
+
declare namespace IndexUtil {
|
|
68
|
+
export { getDefaultIndex, getIndexByName };
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export default IndexUtil;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import Node from "../../hidden/javax/jcr/Node";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Sets the resource priority for an indexable node.
|
|
5
|
+
*
|
|
6
|
+
* <p>
|
|
7
|
+
* The <em>resource priority</em> of a node will influence its <em>document boost</em> when indexed.
|
|
8
|
+
* </p>
|
|
9
|
+
*
|
|
10
|
+
* <p>
|
|
11
|
+
* <strong>Note!</strong> Method invocations that doesn't fulfill these 3 criteria will always fail (i.e. return <code>false</code>):
|
|
12
|
+
* </p>
|
|
13
|
+
* <ul>
|
|
14
|
+
* <li>
|
|
15
|
+
* The <code>aNode</code> must be an indexable node, typically a <code>sv:page</code>, <code>sv:article</code>,
|
|
16
|
+
* <code>sv:file</code> or <code>sv:image</code>.
|
|
17
|
+
* </li>
|
|
18
|
+
* <li>
|
|
19
|
+
* The <code>aPriority</code> must be in interval: [ {@link #MIN_RESOURCE_PRIORITY} .. {@link #MAX_RESOURCE_PRIORITY} ].
|
|
20
|
+
* </li>
|
|
21
|
+
* <li>
|
|
22
|
+
* Current user must have {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE} and
|
|
23
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MODIFY_SEARCH_PRIORITY}
|
|
24
|
+
* on <code>aNode</code>.
|
|
25
|
+
* </li>
|
|
26
|
+
* </ul>
|
|
27
|
+
* <p>
|
|
28
|
+
* This method tries to acquire a <em>lock</em> on <code>aNode</code> in order to mutate its resource priority.
|
|
29
|
+
* Mutation will fail (i.e. this method will return <code>false</code>) if <code>aNode</code> is already locked.
|
|
30
|
+
* </p>
|
|
31
|
+
*
|
|
32
|
+
* <p>
|
|
33
|
+
* <em>Indexing note!</em> Changing the value of the resource priority of a node will automatically trigger a re-index of the node.
|
|
34
|
+
* </p>
|
|
35
|
+
* @param aNode the indexable node
|
|
36
|
+
* @param aPriority the priority, i.e. in interval: [ {@link #MIN_RESOURCE_PRIORITY} .. {@link #MAX_RESOURCE_PRIORITY} ]
|
|
37
|
+
* @return <code>true</code> if the operation succeeded, <code>false</code> otherwise
|
|
38
|
+
*/
|
|
39
|
+
export function setResourcePriority(aNode: Node, aPriority: number): boolean;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Indexing utility interface.
|
|
43
|
+
*
|
|
44
|
+
* <p>
|
|
45
|
+
* An instance of the Sitevision class implementing this interface can be obtained via
|
|
46
|
+
* {@link senselogic.sitevision.api.search.SearchFactory#getIndexingUtil()}.
|
|
47
|
+
* See {@link senselogic.sitevision.api.search.SearchFactory} for how to obtain an instance of the <code>SearchFactory</code> interface.
|
|
48
|
+
* </p>Sets the resource priority for an indexable node.
|
|
49
|
+
*
|
|
50
|
+
* <p>
|
|
51
|
+
* The <em>resource priority</em> of a node will influence its <em>document boost</em> when indexed.
|
|
52
|
+
* </p>
|
|
53
|
+
*
|
|
54
|
+
* <p>
|
|
55
|
+
* <strong>Note!</strong> Method invocations that doesn't fulfill these 3 criteria will always fail (i.e. return <code>false</code>):
|
|
56
|
+
* </p>
|
|
57
|
+
* <ul>
|
|
58
|
+
* <li>
|
|
59
|
+
* The <code>aNode</code> must be an indexable node, typically a <code>sv:page</code>, <code>sv:article</code>,
|
|
60
|
+
* <code>sv:file</code> or <code>sv:image</code>.
|
|
61
|
+
* </li>
|
|
62
|
+
* <li>
|
|
63
|
+
* The <code>aPriority</code> must be in interval: [ {@link #MIN_RESOURCE_PRIORITY} .. {@link #MAX_RESOURCE_PRIORITY} ].
|
|
64
|
+
* </li>
|
|
65
|
+
* <li>
|
|
66
|
+
* Current user must have {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE} and
|
|
67
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MODIFY_SEARCH_PRIORITY}
|
|
68
|
+
* on <code>aNode</code>.
|
|
69
|
+
* </li>
|
|
70
|
+
* </ul>
|
|
71
|
+
* <p>
|
|
72
|
+
* This method tries to acquire a <em>lock</em> on <code>aNode</code> in order to mutate its resource priority.
|
|
73
|
+
* Mutation will fail (i.e. this method will return <code>false</code>) if <code>aNode</code> is already locked.
|
|
74
|
+
* </p>
|
|
75
|
+
*
|
|
76
|
+
* <p>
|
|
77
|
+
* <em>Indexing note!</em> Changing the value of the resource priority of a node will automatically trigger a re-index of the node.
|
|
78
|
+
* </p>The minimum resource priority.
|
|
79
|
+
*
|
|
80
|
+
* A resource indexed with this priority value will get a document boost of <code>0.1F</code>.The default resource priority.
|
|
81
|
+
*
|
|
82
|
+
* A resource indexed with this priority value will get the default document boost of <code>1.0F</code>.The maximum resource priority.
|
|
83
|
+
*
|
|
84
|
+
* A resource indexed with this priority value will get a document boost of <code>2.0F</code>.
|
|
85
|
+
* @author Magnus Lövgren
|
|
86
|
+
* @since Sitevision 3.6.4
|
|
87
|
+
*/
|
|
88
|
+
declare namespace IndexingUtil {
|
|
89
|
+
export { setResourcePriority };
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export default IndexingUtil;
|