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 Summary
Fields Modifier and Type Field Description static String
ADGS_ANONYMOUS_PROFILE_PATH
static String
ADGS_DEFAULT_PROFILE_PATH
static String
ANONYMOUS_PROFILE_PATH
Deprecated.since 6.7 useADGS_ANONYMOUS_PROFILE_PATH
static String
DEFAULT_PROFILE_PATH
Deprecated.since 6.7 useADGS_DEFAULT_PROFILE_PATH
-
Constructor Summary
Constructors Constructor Description ProfilePictureInfo(Attachment attachment)
ProfilePictureInfo(com.atlassian.plugins.avatar.Avatar userAvatar)
ProfilePictureInfo(String downloadPath)
ProfilePictureInfo(String downloadPath, String contentType, boolean external)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InputStream
getBytes()
String
getContentType()
String
getDownloadPath()
Deprecated.since 5.10 usegetUriReference()
String
getFileName()
String
getUriReference()
boolean
isAnonymousPicture()
boolean
isDefault()
boolean
isExternal()
boolean
isUploaded()
-
-
-
Field Detail
-
DEFAULT_PROFILE_PATH
@Deprecated public static final String DEFAULT_PROFILE_PATH
Deprecated.since 6.7 useADGS_DEFAULT_PROFILE_PATH
- See Also:
- Constant Field Values
-
ANONYMOUS_PROFILE_PATH
@Deprecated public static final String ANONYMOUS_PROFILE_PATH
Deprecated.since 6.7 useADGS_ANONYMOUS_PROFILE_PATH
- See Also:
- Constant Field Values
-
ADGS_DEFAULT_PROFILE_PATH
public static final String ADGS_DEFAULT_PROFILE_PATH
- See Also:
- Constant Field Values
-
ADGS_ANONYMOUS_PROFILE_PATH
public static final String ADGS_ANONYMOUS_PROFILE_PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
getFileName
public String getFileName()
-
getDownloadPath
@Deprecated public String getDownloadPath()
Deprecated.since 5.10 usegetUriReference()
-
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
-
-