Package com.atlassian.confluence.spaces
Class SpaceUtils
- java.lang.Object
-
- com.atlassian.confluence.spaces.SpaceUtils
-
@Deprecated public class SpaceUtils extends Object
Deprecated.since 5.2
-
-
Constructor Summary
Constructors Constructor Description SpaceUtils()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
getUsernameFromPersonalSpaceKey(String key)
Deprecated.since 5.2.
-
-
-
Method Detail
-
getUsernameFromPersonalSpaceKey
public static String getUsernameFromPersonalSpaceKey(String key)
Deprecated.since 5.2. Instead use the spaceManager to retrieve the space (SpaceManager.getSpace(String)
) and then retrieve the creator (ConfluenceEntityObject.getCreator()
). From 5.3 onwards this method could well return the wrong username (if a user was renamed).Retrieves the username from a personal space key- Parameters:
key
- the personal space key- Returns:
- the username from a personal space key
- Throws:
IllegalArgumentException
- if key is valid. Please check withSpace.isValidPersonalSpaceKey(String)
first.
-
-