Package com.atlassian.confluence.spaces
Class DefaultSpaceLogoManager
java.lang.Object
com.atlassian.confluence.spaces.DefaultSpaceLogoManager
- All Implemented Interfaces:
SpaceLogoManager
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSpaceLogoManager
(UserProfilePictureAccessor userProfilePictureAccessor, PermissionManager permissionManager, SpaceManager spaceManager, com.atlassian.webresource.api.WebResourceUrlProvider webResourceUrlProvider) -
Method Summary
Modifier and TypeMethodDescriptiongetLogoDownloadPath
(Space space, com.atlassian.user.User viewingUser) Returns the download path (relative to the application's base URI excluding context path) for the logo of a given space.getLogoUriReference
(Space space, com.atlassian.user.User viewingUser) Return a "URI reference" (a URL that may be relative to the application's base URI including context path or an absolute URL) for the logo of a given space.
-
Constructor Details
-
DefaultSpaceLogoManager
public DefaultSpaceLogoManager(UserProfilePictureAccessor userProfilePictureAccessor, PermissionManager permissionManager, SpaceManager spaceManager, com.atlassian.webresource.api.WebResourceUrlProvider webResourceUrlProvider) - Since:
- 7.16
-
-
Method Details
-
getLogoDownloadPath
Description copied from interface:SpaceLogoManager
Returns the download path (relative to the application's base URI excluding context path) for the logo of a given space. If the space is a personal space the owner's profile picture is used.- Specified by:
getLogoDownloadPath
in interfaceSpaceLogoManager
- Parameters:
space
- the space to retrieve the logo fromviewingUser
- the user that is viewing the space- Returns:
- the download path for the logo of a given space.
-
getLogoUriReference
Description copied from interface:SpaceLogoManager
Return a "URI reference" (a URL that may be relative to the application's base URI including context path or an absolute URL) for the logo of a given space. If the space is a personal space the owner's profile picture is used.- Specified by:
getLogoUriReference
in interfaceSpaceLogoManager
- Parameters:
space
- the space to retrieve the logo fromviewingUser
- the user that is viewing the space- Returns:
- the download path for the logo of a given space.
-