@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,117 +1,133 @@
|
|
|
1
|
-
import Calendar from '../../builtins/Calendar';
|
|
2
|
-
import Date from '../../builtins/Date';
|
|
3
|
-
import Instant from '../../builtins/Instant';
|
|
4
|
-
import LocalDateTime from '../../builtins/LocalDateTime';
|
|
5
|
-
import Locale from '../../builtins/Locale';
|
|
6
|
-
|
|
7
1
|
/**
|
|
8
|
-
*
|
|
9
|
-
* @
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
export function format(aTimestamp: number, aFormatPattern: string): string;
|
|
2
|
+
* Returns current timestamp.
|
|
3
|
+
* @return a long representing the current time.
|
|
4
|
+
*/
|
|
5
|
+
export function getTimestamp(): number;
|
|
14
6
|
|
|
15
7
|
/**
|
|
16
|
-
* Formats
|
|
17
|
-
* @
|
|
18
|
-
* @
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
*/
|
|
22
|
-
export function format(aTimestamp: number, aFormatPattern: string, aLocale: Locale): string;
|
|
8
|
+
* Formats current timestamp.
|
|
9
|
+
* @param aFormatPattern a date to string pattern according to SimpleDateFormat.
|
|
10
|
+
* @return a formatted String representing current timestamp using Locale according to {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()}. If aLocale can not be resolved Locale.ENGLISH is used. If aFormatPattern is not valid current timestamp is returned as String.
|
|
11
|
+
*/
|
|
12
|
+
export function formatCurrent(aFormatPattern: string): string;
|
|
23
13
|
|
|
24
14
|
/**
|
|
25
|
-
* Formats current timestamp.
|
|
26
|
-
* @
|
|
27
|
-
* @param {
|
|
28
|
-
|
|
29
|
-
|
|
15
|
+
* Formats current timestamp using a specified Locale.
|
|
16
|
+
* @param aFormatPattern a date to string pattern according to SimpleDateFormat.
|
|
17
|
+
* @param aLocale a locale. If aLocale is null the current locale (as of {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()}) will be used. If aLocale can not be resolved Locale.ENGLISH will be used.
|
|
18
|
+
* @return a formatted String representing current timestamp. If aFormatPattern is not valid current timestamp is returned as String.
|
|
19
|
+
*/
|
|
20
|
+
export function formatCurrent(aFormatPattern: string, aLocale: unknown): string;
|
|
30
21
|
|
|
31
22
|
/**
|
|
32
|
-
* Formats
|
|
33
|
-
* @
|
|
34
|
-
* @param
|
|
35
|
-
* @
|
|
36
|
-
*/
|
|
37
|
-
export function
|
|
23
|
+
* Formats a given timestamp.
|
|
24
|
+
* @param aTimestamp a timestamp.
|
|
25
|
+
* @param aFormatPattern a date to string pattern according to SimpleDateFormat.
|
|
26
|
+
* @return a formatted String representing aTimestamp using Locale according to {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()}. If aLocale can not be resolved Locale.ENGLISH is used. If aTimestamp is negative or aFormatPattern is not valid the given timestamp is returned as String.
|
|
27
|
+
*/
|
|
28
|
+
export function format(aTimestamp: number, aFormatPattern: string): string;
|
|
38
29
|
|
|
39
30
|
/**
|
|
40
|
-
*
|
|
41
|
-
* @
|
|
42
|
-
* @param
|
|
43
|
-
|
|
44
|
-
|
|
31
|
+
* Formats a given timestamp using a specified Locale.
|
|
32
|
+
* @param aTimestamp a timestamp.
|
|
33
|
+
* @param aFormatPattern a date to string pattern according to SimpleDateFormat.
|
|
34
|
+
* @param aLocale a locale. If aLocale is null the current locale (as of {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()}) will be used. If aLocale can not be resolved Locale.ENGLISH will be used.
|
|
35
|
+
* @return a formatted String representing the aTimestamp. If aTimestamp is negative or aFormatPattern is not valid the given timestamp is returned as String.
|
|
36
|
+
*/
|
|
37
|
+
export function format(
|
|
38
|
+
aTimestamp: number,
|
|
39
|
+
aFormatPattern: string,
|
|
40
|
+
aLocale: unknown
|
|
41
|
+
): string;
|
|
45
42
|
|
|
46
43
|
/**
|
|
47
|
-
* Converts a
|
|
48
|
-
* @
|
|
49
|
-
* @
|
|
50
|
-
|
|
51
|
-
|
|
44
|
+
* Converts a timestamp to a Date.
|
|
45
|
+
* @param aTimestamp a timestamp.
|
|
46
|
+
* @return the Date representing aTimestamp, or null if aTimestamp is negative.
|
|
47
|
+
* @since Sitevision 4.5.5
|
|
48
|
+
*/
|
|
49
|
+
export function toDate(aTimestamp: number): unknown;
|
|
52
50
|
|
|
53
51
|
/**
|
|
54
|
-
* Converts a
|
|
55
|
-
* @
|
|
56
|
-
* @
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
* Converts a Date to a timestamp.
|
|
53
|
+
* @param aDate a Date.
|
|
54
|
+
* @return the timestamp representing aDate, or -1 if aDate is null.
|
|
55
|
+
* @since Sitevision 4.5.5
|
|
56
|
+
*/
|
|
57
|
+
export function fromDate(aDate: unknown): number;
|
|
59
58
|
|
|
60
59
|
/**
|
|
61
|
-
* Converts a
|
|
62
|
-
* @
|
|
63
|
-
* @
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
* Converts a timestamp to a Calendar.
|
|
61
|
+
* @param aTimestamp a timestamp.
|
|
62
|
+
* @return the Calendar representing aTimestamp, or null if aTimestamp is negative.
|
|
63
|
+
* @since Sitevision 4.5.5
|
|
64
|
+
*/
|
|
65
|
+
export function toCalendar(aTimestamp: number): unknown;
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
69
|
-
* @
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
* Converts a Calendar to a timestamp.
|
|
69
|
+
* @param aCalendar a Calendar.
|
|
70
|
+
* @return the timestamp representing aCalendar, or -1 if aCalendar is null.
|
|
71
|
+
* @since Sitevision 4.5.5
|
|
72
|
+
*/
|
|
73
|
+
export function fromCalendar(aCalendar: unknown): number;
|
|
72
74
|
|
|
73
75
|
/**
|
|
74
|
-
* Converts a timestamp to a
|
|
75
|
-
* @
|
|
76
|
-
* @
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
* Converts a timestamp to a Instant.
|
|
77
|
+
* @param aTimestamp a timestamp.
|
|
78
|
+
* @return the Instant representing aTimestamp, or null if aTimestamp is negative.
|
|
79
|
+
* @since Sitevision 4.5.5
|
|
80
|
+
*/
|
|
81
|
+
export function toInstant(aTimestamp: number): unknown;
|
|
79
82
|
|
|
80
83
|
/**
|
|
81
|
-
* Converts a
|
|
82
|
-
* @
|
|
83
|
-
* @
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
* Converts a Instant to a timestamp.
|
|
85
|
+
* @param aInstant a Instant.
|
|
86
|
+
* @return aInstant timestamp representing aInstant, or -1 if aInstant is null.
|
|
87
|
+
* @since Sitevision 4.5.5
|
|
88
|
+
*/
|
|
89
|
+
export function fromInstant(aInstant: unknown): number;
|
|
86
90
|
|
|
87
91
|
/**
|
|
88
|
-
* Converts a timestamp to a
|
|
89
|
-
* @
|
|
90
|
-
* @
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
* Converts a timestamp to a LocalDateTime (using the system default ZoneId).
|
|
93
|
+
* @param aTimestamp a timestamp.
|
|
94
|
+
* @return the LocalDateTime representing aTimestamp, or null if aTimestamp is negative.
|
|
95
|
+
* @since Sitevision 4.5.5
|
|
96
|
+
*/
|
|
97
|
+
export function toLocalDateTime(aTimestamp: number): unknown;
|
|
93
98
|
|
|
94
99
|
/**
|
|
95
|
-
* Converts a
|
|
96
|
-
* @
|
|
97
|
-
* @
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
* Converts a LocalDateTime to a timestamp (using the system default ZoneId).
|
|
101
|
+
* @param aLocalDateTime a Instant.
|
|
102
|
+
* @return aInstant timestamp representing aLocalDateTime, or -1 if aLocalDateTime is null.
|
|
103
|
+
* @since Sitevision 4.5.5
|
|
104
|
+
*/
|
|
105
|
+
export function fromLocalDateTime(aLocalDateTime: unknown): number;
|
|
100
106
|
|
|
101
|
-
|
|
107
|
+
/**
|
|
108
|
+
* Timestamp utility interface.
|
|
109
|
+
*
|
|
110
|
+
* <p>
|
|
111
|
+
* An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getTimestampUtil()}.
|
|
112
|
+
* See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
|
|
113
|
+
* </p>Returns current timestamp.Formats current timestamp.Formats current timestamp using a specified Locale.Formats a given timestamp.Formats a given timestamp using a specified Locale.Converts a timestamp to a Date.Converts a Date to a timestamp.Converts a timestamp to a Calendar.Converts a Calendar to a timestamp.Converts a timestamp to a Instant.Converts a Instant to a timestamp.Converts a timestamp to a LocalDateTime (using the system default ZoneId).Converts a LocalDateTime to a timestamp (using the system default ZoneId).
|
|
114
|
+
* @author Jimmy Roselin
|
|
115
|
+
* @since Sitevision 4.5.4.1
|
|
116
|
+
*/
|
|
117
|
+
declare namespace TimestampUtil {
|
|
102
118
|
export {
|
|
103
|
-
|
|
119
|
+
getTimestamp,
|
|
104
120
|
formatCurrent,
|
|
105
|
-
|
|
121
|
+
format,
|
|
122
|
+
toDate,
|
|
106
123
|
fromDate,
|
|
107
|
-
fromInstant,
|
|
108
|
-
fromLocalDateTime,
|
|
109
|
-
getTimestamp,
|
|
110
124
|
toCalendar,
|
|
111
|
-
|
|
125
|
+
fromCalendar,
|
|
112
126
|
toInstant,
|
|
127
|
+
fromInstant,
|
|
113
128
|
toLocalDateTime,
|
|
129
|
+
fromLocalDateTime,
|
|
114
130
|
};
|
|
115
131
|
}
|
|
116
132
|
|
|
117
|
-
export default
|
|
133
|
+
export default TimestampUtil;
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import Node from "../../hidden/javax/jcr/Node";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Gets a list of all Locales that are set up for translations on the current site.
|
|
5
|
+
*
|
|
6
|
+
* <p>
|
|
7
|
+
* <em>Note! The returned List is immutable/unmodifiable,
|
|
8
|
+
* i.e. you must create a copy if you want to modify it (e.g. sort).</em>
|
|
9
|
+
* </p>
|
|
10
|
+
* @return a list of all Locales that are set up for translations on the current site
|
|
11
|
+
*/
|
|
12
|
+
export function getSiteTranslationLocales(): unknown[];
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Gets the translation mappings for a given page node.
|
|
16
|
+
*
|
|
17
|
+
* <p>
|
|
18
|
+
* Each entry in the returned map depicts a <em>"translation"</em>, i.e. a localized version of the given <code>aPageNode</code>.
|
|
19
|
+
* </p>
|
|
20
|
+
* <p>
|
|
21
|
+
* <strong>Important note! The returned map is never null, but entry <em>values</em> in the map might be!</strong>
|
|
22
|
+
* </p>
|
|
23
|
+
* <ul>
|
|
24
|
+
* <li>
|
|
25
|
+
* The entry <em>key</em> (i.e. the Locale) will never be null.
|
|
26
|
+
* </li>
|
|
27
|
+
* <li>
|
|
28
|
+
* The entry <em>value</em> (i.e. the Node) will be null if current user doesn't have
|
|
29
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#READ} permissions on the node.
|
|
30
|
+
* </li>
|
|
31
|
+
* </ul>
|
|
32
|
+
*
|
|
33
|
+
* <p>
|
|
34
|
+
* <em>Tip!</em> If you are only interested in non-null Nodes/values in the returned map, you can use
|
|
35
|
+
* {@link senselogic.sitevision.api.node.NodeFilterUtil} to filter them out!<br>
|
|
36
|
+
* Below is a conceptual example of how it could be done in server-side JavaScript (e.g. WebApp, RESTApp, Script module).
|
|
37
|
+
* </p><pre><code> var thePotentiallyTranslatedPageNode = ...,
|
|
38
|
+
* translationUtil = require('TranslationUtil'),
|
|
39
|
+
* nodeFilterUtil = require('NodeFilterUtil'),
|
|
40
|
+
* translationMappings,
|
|
41
|
+
* skipNullValuesFilter,
|
|
42
|
+
* filteredTranslationMappings;
|
|
43
|
+
*
|
|
44
|
+
* translationMappings = translationUtil.getTranslations(thePotentiallyTranslatedPageNode, false);
|
|
45
|
+
*
|
|
46
|
+
* skipNullValuesFilter = nodeFilterUtil.getNonNullFilter();
|
|
47
|
+
* filteredTranslationMappings = nodeFilterUtil.getFilteredValueMap(translationMappings, skipNullValuesFilter);</code></pre>
|
|
48
|
+
*
|
|
49
|
+
* <p>
|
|
50
|
+
* Please note that determining the "<em>is this page node translated at all?</em>" state from the returned result
|
|
51
|
+
* depends on the <code>aIncludePageNode</code> value:
|
|
52
|
+
* </p>
|
|
53
|
+
* <ul>
|
|
54
|
+
* <li>
|
|
55
|
+
* If it is <code>false</code>, an empty map will be returned.
|
|
56
|
+
* </li>
|
|
57
|
+
* <li>
|
|
58
|
+
* If it is <code>true</code>, a map with one entry <em>(i.e. the <code>aPageNode</code> itself)</em> will be returned.
|
|
59
|
+
* </li>
|
|
60
|
+
* </ul>
|
|
61
|
+
* @param aPageNode a page node that can be translated
|
|
62
|
+
* @param aIncludePageNode whether or not to include aPageNode in the result
|
|
63
|
+
* @return a Map of translation mappings
|
|
64
|
+
* @since Sitevision 4.3.1
|
|
65
|
+
*/
|
|
66
|
+
export function getTranslations(
|
|
67
|
+
aPageNode: Node,
|
|
68
|
+
aIncludePageNode: boolean
|
|
69
|
+
): Record<unknown, unknown>;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Gets the page node a given node is potentially translated from (the translation source).
|
|
73
|
+
* @param aPageNode the page node that is translated
|
|
74
|
+
* @return the page node aPageNode was translated from, or null if the page node isn't translated from another page or if current user doesn't have {@link senselogic.sitevision.api.security.PermissionUtil.Permission#READ} permissions on the from node.
|
|
75
|
+
* @since Sitevision 4.3.1
|
|
76
|
+
*/
|
|
77
|
+
export function getTranslatedFrom(aPageNode: Node): Node;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Sets the translated from node to the page node provided as translation node.
|
|
81
|
+
*
|
|
82
|
+
* <p>
|
|
83
|
+
* <strong>Permission note!</strong> Current user must match have
|
|
84
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_TRANSLATIONS} and
|
|
85
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}
|
|
86
|
+
* on @aTranslationPageNode.
|
|
87
|
+
* </p>
|
|
88
|
+
* @param aOriginalPageNode the original page node to be configured as translated from on aTranslationPageNode. It will be configured as original in aTranslationPageNode as well if aOriginalPageNode doesn't have any original configured.
|
|
89
|
+
* @param aTranslationPageNode the translation page node to be configured as translation of aOriginalPageNode
|
|
90
|
+
* @return true if aTranslationPageNode could be configured as translation of aOriginalPageNode, false otherwise.
|
|
91
|
+
* @since Sitevision 4.3.2
|
|
92
|
+
*/
|
|
93
|
+
export function setTranslatedFrom(
|
|
94
|
+
aOriginalPageNode: Node,
|
|
95
|
+
aTranslationPageNode: Node
|
|
96
|
+
): boolean;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Translation utility interface.
|
|
100
|
+
*
|
|
101
|
+
* <p>
|
|
102
|
+
* An instance of the Sitevision class implementing this interface can be obtained via
|
|
103
|
+
* {@link senselogic.sitevision.api.Utils#getTranslationUtil()}.
|
|
104
|
+
* See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
|
|
105
|
+
* </p>Gets a list of all Locales that are set up for translations on the current site.
|
|
106
|
+
*
|
|
107
|
+
* <p>
|
|
108
|
+
* <em>Note! The returned List is immutable/unmodifiable,
|
|
109
|
+
* i.e. you must create a copy if you want to modify it (e.g. sort).</em>
|
|
110
|
+
* </p>Gets the translation mappings for a given page node.
|
|
111
|
+
*
|
|
112
|
+
* <p>
|
|
113
|
+
* Each entry in the returned map depicts a <em>"translation"</em>, i.e. a localized version of the given <code>aPageNode</code>.
|
|
114
|
+
* </p>
|
|
115
|
+
* <p>
|
|
116
|
+
* <strong>Important note! The returned map is never null, but entry <em>values</em> in the map might be!</strong>
|
|
117
|
+
* </p>
|
|
118
|
+
* <ul>
|
|
119
|
+
* <li>
|
|
120
|
+
* The entry <em>key</em> (i.e. the Locale) will never be null.
|
|
121
|
+
* </li>
|
|
122
|
+
* <li>
|
|
123
|
+
* The entry <em>value</em> (i.e. the Node) will be null if current user doesn't have
|
|
124
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#READ} permissions on the node.
|
|
125
|
+
* </li>
|
|
126
|
+
* </ul>
|
|
127
|
+
*
|
|
128
|
+
* <p>
|
|
129
|
+
* <em>Tip!</em> If you are only interested in non-null Nodes/values in the returned map, you can use
|
|
130
|
+
* {@link senselogic.sitevision.api.node.NodeFilterUtil} to filter them out!<br>
|
|
131
|
+
* Below is a conceptual example of how it could be done in server-side JavaScript (e.g. WebApp, RESTApp, Script module).
|
|
132
|
+
* </p><pre><code> var thePotentiallyTranslatedPageNode = ...,
|
|
133
|
+
* translationUtil = require('TranslationUtil'),
|
|
134
|
+
* nodeFilterUtil = require('NodeFilterUtil'),
|
|
135
|
+
* translationMappings,
|
|
136
|
+
* skipNullValuesFilter,
|
|
137
|
+
* filteredTranslationMappings;
|
|
138
|
+
*
|
|
139
|
+
* translationMappings = translationUtil.getTranslations(thePotentiallyTranslatedPageNode, false);
|
|
140
|
+
*
|
|
141
|
+
* skipNullValuesFilter = nodeFilterUtil.getNonNullFilter();
|
|
142
|
+
* filteredTranslationMappings = nodeFilterUtil.getFilteredValueMap(translationMappings, skipNullValuesFilter);</code></pre>
|
|
143
|
+
*
|
|
144
|
+
* <p>
|
|
145
|
+
* Please note that determining the "<em>is this page node translated at all?</em>" state from the returned result
|
|
146
|
+
* depends on the <code>aIncludePageNode</code> value:
|
|
147
|
+
* </p>
|
|
148
|
+
* <ul>
|
|
149
|
+
* <li>
|
|
150
|
+
* If it is <code>false</code>, an empty map will be returned.
|
|
151
|
+
* </li>
|
|
152
|
+
* <li>
|
|
153
|
+
* If it is <code>true</code>, a map with one entry <em>(i.e. the <code>aPageNode</code> itself)</em> will be returned.
|
|
154
|
+
* </li>
|
|
155
|
+
* </ul>Gets the page node a given node is potentially translated from (the translation source).Sets the translated from node to the page node provided as translation node.
|
|
156
|
+
*
|
|
157
|
+
* <p>
|
|
158
|
+
* <strong>Permission note!</strong> Current user must match have
|
|
159
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_TRANSLATIONS} and
|
|
160
|
+
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#WRITE}
|
|
161
|
+
* on @aTranslationPageNode.
|
|
162
|
+
* </p>
|
|
163
|
+
* @author Magnus Lövgren
|
|
164
|
+
* @since Sitevision 4.2.1
|
|
165
|
+
*/
|
|
166
|
+
declare namespace TranslationUtil {
|
|
167
|
+
export {
|
|
168
|
+
getSiteTranslationLocales,
|
|
169
|
+
getTranslations,
|
|
170
|
+
getTranslatedFrom,
|
|
171
|
+
setTranslatedFrom,
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export default TranslationUtil;
|
|
@@ -1,37 +1,206 @@
|
|
|
1
|
-
import Node from
|
|
1
|
+
import Node from "../../hidden/javax/jcr/Node";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
* <p>
|
|
5
|
+
* Puts a node in the site trashcan.
|
|
6
|
+
* </p>
|
|
7
|
+
* <p>
|
|
8
|
+
* A node that has been deleted (i.e. put in the site trashcan) can later be restored using the method
|
|
9
|
+
* {@link #restoreNode(javax.jcr.Node)} or be permanently removed with the method
|
|
10
|
+
* {@link #deleteNodeFromTrashcan(javax.jcr.Node)}.
|
|
11
|
+
* </p>
|
|
12
|
+
* <p>
|
|
13
|
+
* Valid node types are:
|
|
14
|
+
* </p>
|
|
15
|
+
* <ul>
|
|
16
|
+
* <li><code>sv:archive</code></li>
|
|
17
|
+
* <li><code>sv:article</code></li>
|
|
18
|
+
* <li><code>sv:file</code></li>
|
|
19
|
+
* <li><code>sv:folder</code></li>
|
|
20
|
+
* <li><code>sv:image</code></li>
|
|
21
|
+
* <li><code>sv:link</code></li>
|
|
22
|
+
* <li><code>sv:page</code></li>
|
|
23
|
+
* <li><code>sv:template</code></li>
|
|
24
|
+
* </ul>
|
|
25
|
+
* <p>
|
|
26
|
+
* If any other node is specified a <code>ConstraintViolationException</code> is thrown.
|
|
27
|
+
* </p>
|
|
28
|
+
*
|
|
29
|
+
* <p>
|
|
30
|
+
* The current user must be authorized to delete objects, to alter the node and its current parent or
|
|
31
|
+
* a <code>ConstraintViolationException</code> is thrown
|
|
32
|
+
* (see {@link senselogic.sitevision.api.security.PermissionUtil#hasEffectiveDeletePermission(Node, Node)}).
|
|
33
|
+
* </p>
|
|
34
|
+
*
|
|
35
|
+
* <p>
|
|
36
|
+
* If no node is specified a <code>NullPointerException</code> is thrown.
|
|
37
|
+
* </p>
|
|
38
|
+
* @param aNode the node that will be moved to the site trashcan. May not be <code>null</code>
|
|
39
|
+
* @throws ConstraintViolationException if an invalid node is specified or if the current user is not authorized to perform the delete operation
|
|
40
|
+
* @throws RepositoryException if something else goes wrong
|
|
41
|
+
* @see senselogic.sitevision.api.security.PermissionUtil#hasEffectiveDeletePermission(Node, Node)
|
|
42
|
+
*/
|
|
43
|
+
export function moveNodeToTrashcan(aNode: Node): void;
|
|
8
44
|
|
|
9
45
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
|
|
14
|
-
|
|
46
|
+
* <p>
|
|
47
|
+
* Restores a node from the site trashcan.
|
|
48
|
+
* </p>
|
|
49
|
+
* <p>
|
|
50
|
+
* If the node is not in the site trashcan or if an invalid node type is specified
|
|
51
|
+
* (i.e. a node that never could be in the site trashcan like the sv:site node)
|
|
52
|
+
* a <code>IllegalArgumentException</code> is thrown.
|
|
53
|
+
* </p>
|
|
54
|
+
*
|
|
55
|
+
* <p>
|
|
56
|
+
* The current user must be authorized to alter the node and the parent node after the
|
|
57
|
+
* restore operation or a <code>ConstraintViolationException</code> is thrown.
|
|
58
|
+
* </p>
|
|
59
|
+
*
|
|
60
|
+
* <p>
|
|
61
|
+
* If no node is specified a <code>NullPointerException</code> is thrown.
|
|
62
|
+
* </p>
|
|
63
|
+
* @param aNode the node that should be restored. This node must be located in the site trashcan. May not be null
|
|
64
|
+
* @throws ConstraintViolationException is thrown if the current user is not authorized to perform the restore operation
|
|
65
|
+
* @throws RepositoryException is thrown if something else goes wrong
|
|
66
|
+
*/
|
|
67
|
+
export function restoreNode(aNode: Node): void;
|
|
15
68
|
|
|
16
69
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
|
|
20
|
-
|
|
70
|
+
* <p>
|
|
71
|
+
* Deletes a node from the site trashcan.
|
|
72
|
+
* </p>
|
|
73
|
+
* <p>
|
|
74
|
+
* If the node is not in the site trashcan or if an invalid node type is specified
|
|
75
|
+
* (i.e. a node that never could be in the site trashcan like the sv:site node)
|
|
76
|
+
* a <code>IllegalArgumentException</code> is thrown.
|
|
77
|
+
* </p>
|
|
78
|
+
*
|
|
79
|
+
* <p>
|
|
80
|
+
* The current user must be authorized to delete objects or a <code>ConstraintViolationException</code> is thrown.
|
|
81
|
+
* </p>
|
|
82
|
+
*
|
|
83
|
+
* <p>
|
|
84
|
+
* If no node is specified a <code>NullPointerException</code> is thrown.
|
|
85
|
+
* </p>
|
|
86
|
+
* @param aNode the node that should be removed from the site trashcan. This node must be located in the site trashcan. May not be <code>null</code>
|
|
87
|
+
* @throws ConstraintViolationException if the current user is not authorized to perform the delete operation
|
|
88
|
+
* @throws RepositoryException if something else goes wrong
|
|
89
|
+
*/
|
|
90
|
+
export function deleteNodeFromTrashcan(aNode: Node): void;
|
|
21
91
|
|
|
22
92
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
|
|
26
|
-
|
|
93
|
+
* <p>
|
|
94
|
+
* Checks if a node is in the site trashcan
|
|
95
|
+
* </p>
|
|
96
|
+
*
|
|
97
|
+
* <p>
|
|
98
|
+
* If no node is specified a <code>NullPointerException</code> is thrown.
|
|
99
|
+
* </p>
|
|
100
|
+
*
|
|
101
|
+
* <p>
|
|
102
|
+
* Note that some nodes can't be put in the trashcan (e.g. sv:user, sv:color, sv:portlet, sv:layout etc).
|
|
103
|
+
* For such nodes <code>false</code> will be returned.
|
|
104
|
+
* </p>
|
|
105
|
+
* @param aNode the node to be checked if it is located in the site trashcan. May not be <code>null</code>
|
|
106
|
+
* @return <code>true</code> if the <code>Node</code> is in site trashcan, <code>false</code> otherwise
|
|
107
|
+
* @since Sitevision 6.2
|
|
108
|
+
*/
|
|
109
|
+
export function isInTrashcan(aNode: Node): boolean;
|
|
27
110
|
|
|
28
|
-
|
|
111
|
+
/**
|
|
112
|
+
* Trashcan utility interface for delete and restore of nodes.
|
|
113
|
+
*
|
|
114
|
+
* <p>
|
|
115
|
+
* An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getTrashcanUtil()}.
|
|
116
|
+
* See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the <code>Utils</code> interface.
|
|
117
|
+
* </p><p>
|
|
118
|
+
* Puts a node in the site trashcan.
|
|
119
|
+
* </p>
|
|
120
|
+
* <p>
|
|
121
|
+
* A node that has been deleted (i.e. put in the site trashcan) can later be restored using the method
|
|
122
|
+
* {@link #restoreNode(javax.jcr.Node)} or be permanently removed with the method
|
|
123
|
+
* {@link #deleteNodeFromTrashcan(javax.jcr.Node)}.
|
|
124
|
+
* </p>
|
|
125
|
+
* <p>
|
|
126
|
+
* Valid node types are:
|
|
127
|
+
* </p>
|
|
128
|
+
* <ul>
|
|
129
|
+
* <li><code>sv:archive</code></li>
|
|
130
|
+
* <li><code>sv:article</code></li>
|
|
131
|
+
* <li><code>sv:file</code></li>
|
|
132
|
+
* <li><code>sv:folder</code></li>
|
|
133
|
+
* <li><code>sv:image</code></li>
|
|
134
|
+
* <li><code>sv:link</code></li>
|
|
135
|
+
* <li><code>sv:page</code></li>
|
|
136
|
+
* <li><code>sv:template</code></li>
|
|
137
|
+
* </ul>
|
|
138
|
+
* <p>
|
|
139
|
+
* If any other node is specified a <code>ConstraintViolationException</code> is thrown.
|
|
140
|
+
* </p>
|
|
141
|
+
*
|
|
142
|
+
* <p>
|
|
143
|
+
* The current user must be authorized to delete objects, to alter the node and its current parent or
|
|
144
|
+
* a <code>ConstraintViolationException</code> is thrown
|
|
145
|
+
* (see {@link senselogic.sitevision.api.security.PermissionUtil#hasEffectiveDeletePermission(Node, Node)}).
|
|
146
|
+
* </p>
|
|
147
|
+
*
|
|
148
|
+
* <p>
|
|
149
|
+
* If no node is specified a <code>NullPointerException</code> is thrown.
|
|
150
|
+
* </p><p>
|
|
151
|
+
* Restores a node from the site trashcan.
|
|
152
|
+
* </p>
|
|
153
|
+
* <p>
|
|
154
|
+
* If the node is not in the site trashcan or if an invalid node type is specified
|
|
155
|
+
* (i.e. a node that never could be in the site trashcan like the sv:site node)
|
|
156
|
+
* a <code>IllegalArgumentException</code> is thrown.
|
|
157
|
+
* </p>
|
|
158
|
+
*
|
|
159
|
+
* <p>
|
|
160
|
+
* The current user must be authorized to alter the node and the parent node after the
|
|
161
|
+
* restore operation or a <code>ConstraintViolationException</code> is thrown.
|
|
162
|
+
* </p>
|
|
163
|
+
*
|
|
164
|
+
* <p>
|
|
165
|
+
* If no node is specified a <code>NullPointerException</code> is thrown.
|
|
166
|
+
* </p><p>
|
|
167
|
+
* Deletes a node from the site trashcan.
|
|
168
|
+
* </p>
|
|
169
|
+
* <p>
|
|
170
|
+
* If the node is not in the site trashcan or if an invalid node type is specified
|
|
171
|
+
* (i.e. a node that never could be in the site trashcan like the sv:site node)
|
|
172
|
+
* a <code>IllegalArgumentException</code> is thrown.
|
|
173
|
+
* </p>
|
|
174
|
+
*
|
|
175
|
+
* <p>
|
|
176
|
+
* The current user must be authorized to delete objects or a <code>ConstraintViolationException</code> is thrown.
|
|
177
|
+
* </p>
|
|
178
|
+
*
|
|
179
|
+
* <p>
|
|
180
|
+
* If no node is specified a <code>NullPointerException</code> is thrown.
|
|
181
|
+
* </p><p>
|
|
182
|
+
* Checks if a node is in the site trashcan
|
|
183
|
+
* </p>
|
|
184
|
+
*
|
|
185
|
+
* <p>
|
|
186
|
+
* If no node is specified a <code>NullPointerException</code> is thrown.
|
|
187
|
+
* </p>
|
|
188
|
+
*
|
|
189
|
+
* <p>
|
|
190
|
+
* Note that some nodes can't be put in the trashcan (e.g. sv:user, sv:color, sv:portlet, sv:layout etc).
|
|
191
|
+
* For such nodes <code>false</code> will be returned.
|
|
192
|
+
* </p>
|
|
193
|
+
* @author Mikael Wikblom
|
|
194
|
+
* @see senselogic.sitevision.api.resource.ResourceLocatorUtil#getTrashcan()
|
|
195
|
+
* @since Sitevision 2.6.2
|
|
196
|
+
*/
|
|
197
|
+
declare namespace TrashcanUtil {
|
|
29
198
|
export {
|
|
30
|
-
deleteNodeFromTrashcan,
|
|
31
|
-
isInTrashcan,
|
|
32
199
|
moveNodeToTrashcan,
|
|
33
200
|
restoreNode,
|
|
34
|
-
|
|
35
|
-
|
|
201
|
+
deleteNodeFromTrashcan,
|
|
202
|
+
isInTrashcan,
|
|
203
|
+
};
|
|
204
|
+
}
|
|
36
205
|
|
|
37
|
-
export default
|
|
206
|
+
export default TrashcanUtil;
|