Uploaded image for project: 'Confluence'
  1. Confluence
  2. CONFLUENCE-312

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

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 9.61.0
    • 9.60.0
    • Resolvers
    • None
    • Unknown

    Description

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

      /**
       * Confluence 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.

      Attachments

        Activity

          People

            rjakse Raphaël Jakse
            rjakse Raphaël Jakse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: