This issue has been created
There is 1 update.
 
 
Confluence / cid:jira-generated-image-avatar-b7d01bf3-d84c-4009-a400-f68ba54837e2 CONFLUENCE-312 Open

Provide a resolver that finds the Confluence space key or root of an entity reference

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-d7b2f0b5-ab2d-418a-b812-82fd5a4bfb77 Raphaël Jakse created this issue on 31/Oct/24 12:33
 
Summary: Provide a resolver that finds the Confluence space key or root of an entity reference
Issue Type: cid:jira-generated-image-avatar-b7d01bf3-d84c-4009-a400-f68ba54837e2 New Feature
Affects Versions: 9.60.0
Assignee: Unassigned
Components: Resolvers
Created: 31/Oct/24 12:33
Priority: cid:jira-generated-image-static-major-c89bb4a0-d77f-4129-b0e5-c16927742a79 Major
Reporter: Raphaël Jakse
Description:

We provide the following interface, and an implementation that uses ConfluencePageClass objects:

/**
 * Confluence Current Space resolver.
 * @since 9.61.0
 * @version $Id$
 */
@Role
public interface ConfluenceSpaceResolver
{
    /**
     * @return The Confluence space in which the given reference (space or document) lives
     * @param reference the space or document for which to get the space
     * @throws ConfluenceResolverException if something wrong happens
     */
    EntityReference getSpace(EntityReference reference) throws ConfluenceResolverException;

    /**
     * @return The Confluence space in which the given reference (space or document) lives
     * @param reference the space or document for which to get the space key
     * @throws ConfluenceResolverException if something wrong happens
     */
    String getSpaceKey(EntityReference reference) throws ConfluenceResolverException;
}

This will be useful for running CQL queries.

 
 

1 update

 
cid:jira-generated-image-avatar-d7b2f0b5-ab2d-418a-b812-82fd5a4bfb77 Changes by Raphaël Jakse on 31/Oct/24 12:36
 
Description: We provide the following interface, and an implementation that uses ConfluencePageClass objects:
{code:java}
/**
* Confluence
Current Space resolver.
* @since 9.61.0
* @version $Id$
*/
@Role
public interface ConfluenceSpaceResolver
{
    /**
     * @return The Confluence space in which the given reference (space or document) lives
     * @param reference the space or document for which to get the space
     * @throws ConfluenceResolverException if something wrong happens
     */
    EntityReference getSpace(EntityReference reference) throws ConfluenceResolverException;

    /**
     * @return The Confluence space in which the given reference (space or document) lives
     * @param reference the space or document for which to get the space key
     * @throws ConfluenceResolverException if something wrong happens
     */
    String getSpaceKey(EntityReference reference) throws ConfluenceResolverException;
}
{code}
This will be useful for running CQL queries.