Class LimitedSpace
java.lang.Object
com.atlassian.confluence.api.model.content.LimitedSpace
A limited representation of a space containing only essential fields.
Used for lightweight space listings and search results.
- Since:
- 9.2.7
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LimitedSpace
-
-
Method Details
-
getId
-
getName
-
getKey
-
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.
-