Class Person
- java.lang.Object
-
- com.atlassian.confluence.api.model.people.Person
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringANONYMOUS_USER_TYPEprotected static StringKNOWN_USER_TYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetDisplayName()Returns a name that is suitable for display to identify the user / group.com.atlassian.fugue.Option<String>getOptionalUsername()Deprecated.since 7.0.1.IcongetProfilePicture()SubjectTypegetSubjectType()com.atlassian.fugue.Option<com.atlassian.sal.api.user.UserKey>getUserKey()Deprecated.since 7.0.1.abstract Optional<com.atlassian.sal.api.user.UserKey>optionalUserKey()abstract Optional<String>optionalUsername()
-
-
-
Field Detail
-
KNOWN_USER_TYPE
protected static final String KNOWN_USER_TYPE
- See Also:
- Constant Field Values
-
ANONYMOUS_USER_TYPE
protected static final String ANONYMOUS_USER_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Person
@Deprecated protected Person(Icon profilePicture)
Deprecated.since 5.6 usePerson(Icon, String)instead
-
-
Method Detail
-
getProfilePicture
public Icon getProfilePicture()
-
getDisplayName
public String getDisplayName()
Description copied from interface:SubjectReturns a name that is suitable for display to identify the user / group. Will never return null.- Specified by:
getDisplayNamein interfaceSubject- Since:
- 5.6
-
getOptionalUsername
@Deprecated public com.atlassian.fugue.Option<String> getOptionalUsername()
Deprecated.since 7.0.1. UseoptionalUsername()- Since:
- 5.6
-
getUserKey
@Deprecated public com.atlassian.fugue.Option<com.atlassian.sal.api.user.UserKey> getUserKey()
Deprecated.since 7.0.1. UseoptionalUserKey()- Since:
- 5.6
-
optionalUserKey
public abstract Optional<com.atlassian.sal.api.user.UserKey> optionalUserKey()
- Since:
- 7.0.1
-
getSubjectType
public SubjectType getSubjectType()
- Specified by:
getSubjectTypein interfaceSubject- Returns:
SubjectTypecorresponding to this Subject- See Also:
SubjectType.VALUES
-
-