Class DefaultSpaceLogoManager

    • 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 interface SpaceLogoManager
        Parameters:
        space - the space to retrieve the logo from
        viewingUser - 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 interface SpaceLogoManager
        Parameters:
        space - the space to retrieve the logo from
        viewingUser - the user that is viewing the space
        Returns:
        the download path for the logo of a given space.