Class ProfilePictureInfo

java.lang.Object
com.atlassian.confluence.user.actions.ProfilePictureInfo

public class ProfilePictureInfo extends Object
This class handles the difference between an avatar which is a standard icon and one which is an attachment.
  • Field Details

  • Constructor Details

    • ProfilePictureInfo

      public ProfilePictureInfo(String downloadPath)
    • ProfilePictureInfo

      public ProfilePictureInfo(String downloadPath, String contentType, boolean external)
    • ProfilePictureInfo

      public ProfilePictureInfo(Attachment attachment)
    • ProfilePictureInfo

      public ProfilePictureInfo(com.atlassian.plugins.avatar.Avatar userAvatar)
  • Method Details

    • getFileName

      public String getFileName()
    • getDownloadPath

      @Deprecated public String getDownloadPath()
      Deprecated.
      since 5.10 use getUriReference()
    • getUriReference

      public String getUriReference()
    • isUploaded

      public boolean isUploaded()
    • isDefault

      public boolean isDefault()
    • isAnonymousPicture

      public boolean isAnonymousPicture()
      Since:
      5.3
    • getContentType

      public String getContentType()
    • isExternal

      public boolean isExternal()
    • getBytes

      public InputStream getBytes() throws IOException
      Throws:
      IOException