Class User
java.lang.Object
com.atlassian.confluence.api.model.people.Person
com.atlassian.confluence.api.model.people.User
- Direct Known Subclasses:
KnownUser
,UnknownUser
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.confluence.api.model.people.Person
Person.PersonBuilder<T extends Person.PersonBuilder<T>>
-
Field Summary
Fields inherited from class com.atlassian.confluence.api.model.people.Person
ANONYMOUS_USER_TYPE, KNOWN_USER_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic User
fromUserkey
(com.atlassian.sal.api.user.UserKey key) Creates a user object with only the userkey filled in, suitable for passing to services that accept a User objectstatic User
fromUsername
(String username) Creates a user object with only the username filled in, suitable for passing to services that accept a User objectOptional<com.atlassian.sal.api.user.UserKey>
toString()
Methods inherited from class com.atlassian.confluence.api.model.people.Person
getDisplayName, getProfilePicture, getSubjectType
-
Field Details
-
username
-
-
Constructor Details
-
User
-
User
-
User
Deprecated.since 5.6. UseUser(Icon, String, String, UserKey)
instead.
-
-
Method Details
-
getUsername
-
optionalUsername
- Specified by:
optionalUsername
in classPerson
-
optionalUserKey
- Specified by:
optionalUserKey
in classPerson
-
toString
-
fromUsername
Creates a user object with only the username filled in, suitable for passing to services that accept a User object -
fromUserkey
Creates a user object with only the userkey filled in, suitable for passing to services that accept a User object
-