Package com.atlassian.confluence.spaces
Class DefaultSpaceLogoManager
- java.lang.Object
-
- com.atlassian.confluence.spaces.DefaultSpaceLogoManager
-
- All Implemented Interfaces:
SpaceLogoManager
public class DefaultSpaceLogoManager extends Object implements SpaceLogoManager
-
-
Constructor Summary
Constructors Constructor Description DefaultSpaceLogoManager(UserProfilePictureAccessor userProfilePictureAccessor, PermissionManager permissionManager, SpaceManager spaceManager, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLogoDownloadPath(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.String
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 Detail
-
DefaultSpaceLogoManager
public DefaultSpaceLogoManager(UserProfilePictureAccessor userProfilePictureAccessor, PermissionManager permissionManager, SpaceManager spaceManager, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider)
- Since:
- 7.16
-
-
Method Detail
-
getLogoDownloadPath
public String getLogoDownloadPath(Space space, com.atlassian.user.User viewingUser)
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
public String getLogoUriReference(Space space, com.atlassian.user.User viewingUser)
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.
-
-