/** * This file is auto generated from JavaDoc. Do not modify it manually. */ import type { Node } from "../../types/javax/jcr/Node"; import type { String } from "../../types/java/lang/String"; import type { Object } from "../../types/java/lang/Object"; /** * Utility interface for locating resources. * *
* An instance of the Sitevision class implementing this interface can be obtained via
* {@link senselogic.sitevision.api.Utils#getResourceLocatorUtil()}.
* See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the Utils interface.
*
* This is a non-throwing convenience for the {@link javax.jcr.Session#getRootNode() Session.getRootNode()} method. *
* @return the JCR Root Node, or null if indeterminable * @since Sitevision 2023.11.1 */ getRootNode(): Node; /** * Gets current site (i.e. the site node of the page for the currently executing portlet). * ** Note! If you are interested in the actual start page, you should use the {@link #getSitePage()} method. *
* @return current siteNode, or null if indeterminable
(e.g. current portlet and/or current page is not bound to any site)
* @see #getSitePage()
*/
getSite(): Node;
/**
* Gets current site page (i.e. the site's start page node of the page for the currently executing portlet).
*
* * Note! If you are interested in the actual site, you should use the {@link #getSite()} method. *
* @return current site pageNode, or null if indeterminable
(e.g. current portlet and/or current page is not bound to any site)
* @see #getSite()
*/
getSitePage(): Node;
/**
* Gets the color repository (sv:colorRepository) for the site of current node.
* @return the color repository for the site of current node, or null if indeterminable
*/
getColorRepository(): Node;
/**
* Gets the font repository (sv:fontRepository) for the site of current node.
* @return the font repository for the site of current node, or null if indeterminable
*/
getFontRepository(): Node;
/**
* Gets the decoration repository (sv:decorationRepository) for the site of current node.
* @return the decoration repository for the site of current node, or null if indeterminable
*/
getDecorationRepository(): Node;
/**
* Gets the file repository for the site of current node.
* @return the global file repository for the site of current node, or null if indeterminable
*/
getFileRepository(): Node;
/**
* Gets the local file repository for current page node.
*
* * * This is a convenience for {@link #getLocalFileRepository(Node)} that uses * {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentPage()} to get current page node. * *
* @return the local file repository for current node, ornull if indeterminable
*/
getLocalFileRepository(): Node;
/**
* Gets the local file repository for a specified page node.
* @param aNode a node that has a local file repository (typically a sv:page or sv:article)
* @return the local file repository for aNode, or null if indeterminable
* @since Sitevision 3.6.4
*/
getLocalFileRepository(aNode: Node): Node;
/**
* Gets the image repository for the site of current node.
* @return the global image repository for the site of current node, or null if indeterminable
*/
getImageRepository(): Node;
/**
* Gets the local image repository for current page node.
*
* * * This is a convenience for {@link #getLocalImageRepository(Node)} that uses * {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentPage()} to get current page node. * *
* @return the local image repository for current node, ornull if indeterminable
*/
getLocalImageRepository(): Node;
/**
* Gets the local image repository for a specified page node.
* @param aNode a node that has a local image repository (typically a sv:page or sv:article)
* @return the local image repository for aNode, or null if indeterminable
* @since Sitevision 3.6.4
*/
getLocalImageRepository(aNode: Node): Node;
/**
* Gets the page comment repository for current page node.
*
* * * This is a convenience for {@link #getPageCommentRepository(Node)} that uses * {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentPage()} to get current page node. * *
* @return the page comment repository for current page node, ornull if indeterminable
* @since Sitevision 3.6.4
*/
getPageCommentRepository(): Node;
/**
* Gets the page comment repository for a specified page node.
* @param aNode a node that has a page comment repository (typically a sv:page or sv:article)
* @return the page comment repository for aNode, or null if indeterminable
* @since Sitevision 3.6.4
*/
getPageCommentRepository(aNode: Node): Node;
/**
* Gets the personal file repository for a specified node.
*
*
* A personal file repository contains files that belongs to a sv:collaborationGroup (i.e. "group files")
* or a sv:userIdentity (e.g. files attached when posting timeline entries).
*
* Convenience note! This method will extract and use the corresponding sv:collaborationGroup if
* the aNode argument is a sv:collaborationGroupPage. It will also try to extract and use the
* corresponding sv:userIdentity if the aNode argument is a sv:user.
*
aNode, or null if indeterminable.
* @since Sitevision 3.6.4
*/
getPersonalFileRepository(aNode: Node): Node;
/**
* Gets the personal image repository for a specified node.
*
*
* A personal image repository contains images that belongs to a sv:collaborationGroup
* or a sv:userIdentity (e.g. profile image).
*
* Convenience note! This method will extract and use the corresponding sv:collaborationGroup if
* the aNode argument is a sv:collaborationGroupPage. It will also try to extract and use the
* corresponding sv:userIdentity if the aNode argument is a sv:user.
*
aNode, or null if indeterminable.
* @since Sitevision 3.6.4
*/
getPersonalImageRepository(aNode: Node): Node;
/**
* Gets the icon repository (sv:iconRepository) for the site of current node.
*
* * The icon repository contains all site-specific file icon nodes. *
* @return the icon repository for the site of current node, ornull if indeterminable
*/
getIconRepository(): Node;
/**
* Gets the index repository (sv:indexRepository) for the site of current node.
*
* * Tip! The {@link senselogic.sitevision.api.search.index.IndexUtil} utility can be used for easy index lookup. *
* @return the index repository for the site of current node, ornull if indeterminable
* @since Sitevision 3.6
*/
getIndexRepository(): Node;
/**
* Gets the default image repository for the site of current node.
*
* * The default image repository contains system/server-specific images/icons. *
* @return the default image repository for the site of current node, ornull if indeterminable
*/
getDefaultImageRepository(): Node;
/**
* Gets the LDAP directories repository (sv:directoryRepository) for the site of current node
* @return the LDAP directories repository, or null if indeterminable
*/
getDirectoryRepository(): Node;
/**
* Gets a Node given its identifier.
*
* * * Note! This is mere a convenience alias for {@link javax.jcr.Session#getNodeByIdentifier(String)} but * unlike the original, this method returns null instead of throwing an exception if given identifier * can't be matched to an existing node. * *
* @param anIdentifier a Node identifier * @return the correspondingNode or null
* @since Sitevision 3.6.5
*/
getNodeByIdentifier(anIdentifier: String | string): Node;
/**
* Gets a Node given its absolute path.
*
* * * Note! This is mere a convenience alias for {@link javax.jcr.Session#getNode(String)} but * unlike the original, this method returns null instead of throwing an exception if given * absolute path can't be matched to an existing node. * *
* @param anAbsolutePath an absolute path * @return the correspondingNode or null
* @since Sitevision 3.6.5
*/
getNodeByPath(anAbsolutePath: String | string): Node;
/**
* Gets a Node given its URL
* @param anUrl an url pointing to the resource (e.g. page, portlet, file, image)
* @return the corresponding Node or null
* @since Sitevision 2.6.1
*/
getNodeByUrl(anUrl: String | string): Node;
/**
* * Resolves a potential JCR Node identifier for an internal Sitevision object. *
* *
*
* This is a deprecated legacy method for conversions between internal Sitevision objects and API objects (javax.jcr.Node).
* This behaviour is typically only applicable in really old Velocity templates that was released prior to the API
* (i.e. templates released before 2008).
* This method is not intended for {@link javax.jcr.Node javax.jcr.Node} objects!
* To get the "id" of a javax.jcr.Node - use the {@link Node#getIdentifier()} method.
*
*
null if indeterminable
* @since Sitevision 2.6.2
*/
getTemplateRepository(): Node;
/**
* Gets the RSS feed repository (sv:rssFeedRepository) for the site of current node.
* @return the RSS feed repository for the site of current node, or null if indeterminable
* @since Sitevision 3.6.2
*/
getRssFeedRepository(): Node;
/**
* Gets the list style repository (sv:listStyleRepository) for the site of current node.
* @return the list style repository for the site of current node, or null if indeterminable
* @since Sitevision 3.6.4
*/
getListStyleRepository(): Node;
/**
* Gets the module element draft repository (sv:moduleElementDraftRepository) for the site of current node.
* @return the module element draft repository, or null if indeterminable.
* @since Sitevision 4.2
*/
getModuleElementDraftRepository(): Node;
/**
* Gets the module element repository (sv:moduleElementRepository) for the site of current node.
* @return the module element repository, or null if indeterminable.
* @since Sitevision 4.2
*/
getModuleElementRepository(): Node;
/**
* Gets the module element file repository for current module element node.
*
* * * This is a convenience for {@link #getModuleElementFileRepository(Node)} that uses * {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentModuleElement()} to get current module element node. * *
* @return the module element file repository for current module element, ornull if indeterminable.
* @since Sitevision 4.2
*/
getModuleElementFileRepository(): Node;
/**
* Gets the module element file repository for a specified module element node.
* @param aNode a node that has a module element file repository (typically a sv:moduleElementDraft or sv:moduleElement)
* @return the module element file repository for aNode, or null if indeterminable.
* @since Sitevision 4.2
*/
getModuleElementFileRepository(aNode: Node): Node;
/**
* Gets the module element image repository for current module element node.
*
* * * This is a convenience for {@link #getModuleElementImageRepository(Node)} that uses * {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentModuleElement()} to get current module element node. * *
* @return the module element image repository for current module element, ornull if indeterminable.
* @since Sitevision 4.2
*/
getModuleElementImageRepository(): Node;
/**
* Gets the module element image repository for a specified module element node.
* @param aNode a node that has a module element image repository (typically a sv:moduleElementDraft or sv:moduleElement)
* @return the module element image repository for aNode, or null if indeterminable.
* @since Sitevision 4.2
*/
getModuleElementImageRepository(aNode: Node): Node;
/**
* Gets the addon repository (sv:addonRepository) for the site of current node.
* @return the addon repository, or null if indeterminable.
* @since Sitevision 4.2
*/
getAddonRepository(): Node;
/**
* Gets the named reference repository (sv:namedReferenceRepository) for the site of current node.
* @return the named reference repository, or null if indeterminable.
* @since Sitevision 4.2.2
*/
getNamedReferenceRepository(): Node;
/**
* Gets the role repository (sv:roleRepository) for the site of current node.
* @return the role repository, or null if indeterminable.
* @since Sitevision 5
* @see senselogic.sitevision.api.security.RoleUtil
*/
getRoleRepository(): Node;
/**
* Gets the virtual group repository (sv:virtualGroupRepository) for the site of current node.
* @return the virtual group repository, or null if indeterminable.
* @since Sitevision 5
*/
getVirtualGroupRepository(): Node;
/**
* Gets the tag group repository (sv:tagGroupRepository) for the site of current node.
* @return the tag group repository, or null if indeterminable.
* @since Sitevision 5
*/
getTagGroupRepository(): Node;
/**
* Gets the responsive breakpoint repository (sv:responsiveBreakpointRepository) for the site of current node.
* @return the responsive breakpoint repository, or null if indeterminable.
* @since Sitevision 6.2
*/
getResponsiveBreakpointRepository(): Node;
/**
* Gets the topic repository (sv:topicRepository) for the site of current node.
* @return the topic repository, or null if indeterminable.
* @since Sitevision 7
*/
getTopicRepository(): Node;
/**
* Gets the external topic integration repository (sv:externalTopicIntegrationRepository) for the site of current node.
* @return the external topic integration repository, or null if indeterminable.
* @since Sitevision 7
*/
getExternalTopicIntegrationRepository(): Node;
/**
* Gets the OAuth2 configuration repository (sv:oAuth2ConfigurationRepository) for the site of current node.
* @return the OAuth2 configuration repository, or null if indeterminable.
* @since Sitevision 7
*/
getOAuth2ConfigurationRepository(): Node;
/**
* Gets the metadata definition template repository (sv:metadataDefinitionTemplateRepository) for the site of current node.
* @return the metadata definition template repository, or null if indeterminable.
* @since Sitevision 8.1
*/
getMetadataDefinitionTemplateRepository(): Node;
/**
* Gets the trashcan (sv:trashcan) for the site of current node.
* @return the trashcan, or null if indeterminable.
* @see senselogic.sitevision.api.webresource.structure.TrashcanUtil
* @since Sitevision 8.1
*/
getTrashcan(): Node;
/**
* Gets the principal repository (sv:principalRepository) for the site of current node.
* @return the principal repository, or null if indeterminable.
* @since Sitevision 8.2
*/
getPrincipalRepository(): Node;
/**
* Gets the alias repository (sv:aliasRepository) for the site of current node.
* @return the alias repository, or null if indeterminable.
* @since Sitevision 8.2
*/
getAliasRepository(): Node;
/**
* Gets the site cookie repository (sv:siteCookieRepository) for the site of current node.
* @return the site cookie repository, or null if indeterminable.
* @since Sitevision 9.1
* @see senselogic.sitevision.api.cookie.SiteCookieUtil
*/
getSiteCookieRepository(): Node;
/**
* Gets the image filter repository (sv:imageFilterRepository) for the site of current node.
* @return the image filter repository, or null if indeterminable.
* @since Sitevision 2023.09.1
*/
getImageFilterRepository(): Node;
/**
* Gets the work status template repository (sv:workStatusTemplateRepository) for the site of current node.
* @return the work status template repository, or null if indeterminable.
* @since Sitevision 2023.09.2
*/
getWorkStatusTemplateRepository(): Node;
/**
* Gets the css rule repository (sv:cssRuleRepository) for the site of current node.
* @return the css rule repository, or null if indeterminable.
* @since Sitevision 2024.04.2
*/
getCssRuleRepository(): Node;
/**
* Gets the LLM configuration repository (sv:llmConfigurationRepository) for the site of current node.
* @return the LLM configuration repository, or null if indeterminable.
* @since Sitevision 2024.08.1
*/
getLlmConfigurationRepository(): Node;
/**
* Gets the target audience repository (sv:targetAudienceRepository) for the site of current node.
* @return the target audience repository, or null if indeterminable.
* @since Sitevision 2024.09.2
*/
getTargetAudienceRepository(): Node;
/**
* Gets the semantic index repository (sv:semanticIndexRepository) for the site of current node.
* @return the semantic index repository, or null if indeterminable.
* @since Sitevision 2025.03.1
*/
getSemanticIndexRepository(): Node;
/**
* Gets the target audience group repository (sv:targetAudienceGroupRepository) for the site of current node.
* @return the target audience group repository, or null if indeterminable.
* @since Sitevision 2025.07.1
*/
getTargetAudienceGroupRepository(): Node;
/**
* Gets the ai assistant repository (sv:aiAssistantRepository) for the site of current node.
* @return the ai assistant repository, or null if indeterminable.
* @since Sitevision 2025.07.1
*/
getAiAssistantRepository(): Node;
/**
* Gets the MCP Server Repository (sv:mcpServerRepository) for the site of current node.
* @return the MCP Server Repository, or null if indeterminable.
* @since Sitevision 2026.05.1
*/
getMcpServerRepository(): Node;
/**
* Gets the theme repository (sv:themeRepository) for the site of current node.
* @return the theme repository, or null if indeterminable.
* @since Sitevision 2026.09.2
*/
getThemeRepository(): Node;
}
declare namespace ResourceLocatorUtil {}
declare var resourceLocatorUtil: ResourceLocatorUtil;
export default resourceLocatorUtil;