Class LimitedSpace

java.lang.Object
com.atlassian.confluence.api.model.content.LimitedSpace

public class LimitedSpace extends Object
A limited representation of a space containing only essential fields. Used for lightweight space listings and search results.
Since:
9.2.7
  • Constructor Details

  • Method Details

    • getId

      public Long getId()
    • getName

      public String getName()
    • getKey

      public String getKey()
    • getIcon

      public String getIcon()
    • createAbsoluteLink

      public static String createAbsoluteLink(String originalHref, String baseUrl) throws RuntimeException
      Creates an absolute link from a relative href and a base URL. If the href starts with "/", it will be treated as a relative path and combined with the base URL, ensuring no duplicate context paths.
      Parameters:
      originalHref - The original href to convert.
      baseUrl - The base URL to use for conversion.
      Returns:
      An absolute link or the original href if it does not start with "/".
      Throws:
      RuntimeException - if the base URL is malformed.