Class Person
- java.lang.Object
-
- com.atlassian.confluence.api.model.people.Person
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
ANONYMOUS_USER_TYPE
protected static String
KNOWN_USER_TYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getDisplayName()
Returns a name that is suitable for display to identify the user / group.com.atlassian.fugue.Option<String>
getOptionalUsername()
Deprecated.since 7.0.1.Icon
getProfilePicture()
SubjectType
getSubjectType()
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:Subject
Returns a name that is suitable for display to identify the user / group. Will never return null.- Specified by:
getDisplayName
in 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:
getSubjectType
in interfaceSubject
- Returns:
SubjectType
corresponding to this Subject- See Also:
SubjectType.VALUES
-
-