com.atlassian.confluence.api.model.people
Class User

java.lang.Object
  extended by com.atlassian.confluence.api.model.people.Person
      extended by com.atlassian.confluence.api.model.people.User
All Implemented Interfaces:
Subject
Direct Known Subclasses:
KnownUser, UnknownUser

@ExperimentalApi
public abstract class User
extends Person


Field Summary
static com.google.common.base.Predicate<User> isUserKnown
          A predicate that filters out unknown users.
static com.google.common.base.Function<User,String> mapUserToUsername
           
protected  String username
           
 
Constructor Summary
User(Icon profilePicture, String username)
          Deprecated. 5.6
User(Icon profilePicture, String username, String displayName, String userKey)
           
User(Icon profilePicture, String username, String displayName, com.atlassian.sal.api.user.UserKey userKey)
           
 
Method Summary
 com.atlassian.fugue.Option<String> getOptionalUsername()
           
 com.atlassian.fugue.Option<com.atlassian.sal.api.user.UserKey> getUserKey()
           
 String getUsername()
           
 
Methods inherited from class com.atlassian.confluence.api.model.people.Person
getDisplayName, getProfilePicture
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

username

protected final String username

mapUserToUsername

public static final com.google.common.base.Function<User,String> mapUserToUsername

isUserKnown

public static final com.google.common.base.Predicate<User> isUserKnown
A predicate that filters out unknown users.

Constructor Detail

User

public User(Icon profilePicture,
            String username,
            String displayName,
            String userKey)

User

public User(Icon profilePicture,
            String username,
            String displayName,
            com.atlassian.sal.api.user.UserKey userKey)

User

@Deprecated
public User(Icon profilePicture,
                       String username)
Deprecated. 5.6

Method Detail

getUsername

public String getUsername()

getOptionalUsername

public com.atlassian.fugue.Option<String> getOptionalUsername()
Specified by:
getOptionalUsername in class Person

getUserKey

public com.atlassian.fugue.Option<com.atlassian.sal.api.user.UserKey> getUserKey()
Specified by:
getUserKey in class Person


Copyright © 2003–2015 Atlassian. All rights reserved.