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

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

@ExperimentalApi
public abstract class Person
extends Object
implements Subject


Constructor Summary
protected Person(Icon profilePicture)
          Deprecated. 5.6 use other constructor
protected Person(Icon profilePicture, String displayName)
           
 
Method Summary
 String getDisplayName()
          Returns a name that is suitable for display to identify the user / group.
abstract  com.atlassian.fugue.Option<String> getOptionalUsername()
           
 Icon getProfilePicture()
           
abstract  com.atlassian.fugue.Option<com.atlassian.sal.api.user.UserKey> getUserKey()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Person

protected Person(Icon profilePicture,
                 String displayName)

Person

@Deprecated
protected Person(Icon profilePicture)
Deprecated. 5.6 use other constructor

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 interface Subject
Since:
5.6

getOptionalUsername

public abstract com.atlassian.fugue.Option<String> getOptionalUsername()
Since:
5.6

getUserKey

public abstract com.atlassian.fugue.Option<com.atlassian.sal.api.user.UserKey> getUserKey()
Since:
5.6


Copyright © 2003–2015 Atlassian. All rights reserved.