com.atlassian.confluence.user
Class ConfluenceUserImpl

java.lang.Object
  extended by com.atlassian.confluence.user.ConfluenceUserImpl
All Implemented Interfaces:
ConfluenceUser, HasBackingUser, com.atlassian.user.Entity, com.atlassian.user.User, java.io.Serializable, java.lang.Cloneable, java.security.Principal

public class ConfluenceUserImpl
extends java.lang.Object
implements ConfluenceUser, java.lang.Cloneable, java.io.Serializable, HasBackingUser

An implementation of the ConfluenceUser which wraps an atlassian-user User

See Also:
Serialized Form

Constructor Summary
ConfluenceUserImpl()
           
ConfluenceUserImpl(java.lang.String username, java.lang.String fullName, java.lang.String email)
          Create a new ConfluenceUserImpl with an automatically generated backing User.
ConfluenceUserImpl(com.atlassian.user.User backingUser)
           
 
Method Summary
 java.lang.Object clone()
          Return a new copy of this ConfluenceUserImpl
 boolean equals(java.lang.Object obj)
           
 com.atlassian.user.User getBackingUser()
           
 java.lang.String getEmail()
           
 java.lang.String getFullName()
           
 com.atlassian.sal.api.user.UserKey getKey()
          Return the immutable and unique key for the user.
 java.lang.String getLowerName()
           
 java.lang.String getName()
           
 int hashCode()
           
 void setBackingUser(com.atlassian.user.User backingUser)
          Provided to aid the strategy of automatically setting the backing user as this object is loaded.
 void setLowerName(java.lang.String lowerName)
           
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfluenceUserImpl

public ConfluenceUserImpl()

ConfluenceUserImpl

public ConfluenceUserImpl(java.lang.String username,
                          java.lang.String fullName,
                          java.lang.String email)
Create a new ConfluenceUserImpl with an automatically generated backing User.


ConfluenceUserImpl

public ConfluenceUserImpl(com.atlassian.user.User backingUser)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface com.atlassian.user.Entity
Specified by:
getName in interface java.security.Principal

getLowerName

public java.lang.String getLowerName()

getKey

public com.atlassian.sal.api.user.UserKey getKey()
Description copied from interface: ConfluenceUser
Return the immutable and unique key for the user.

Specified by:
getKey in interface ConfluenceUser
Returns:
the unique key for this user.

getFullName

public java.lang.String getFullName()
Specified by:
getFullName in interface com.atlassian.user.User

getEmail

public java.lang.String getEmail()
Specified by:
getEmail in interface com.atlassian.user.User

getBackingUser

public com.atlassian.user.User getBackingUser()
Specified by:
getBackingUser in interface HasBackingUser
Returns:
the backing user

setName

public void setName(java.lang.String name)

setLowerName

public void setLowerName(java.lang.String lowerName)

setBackingUser

public void setBackingUser(com.atlassian.user.User backingUser)
Provided to aid the strategy of automatically setting the backing user as this object is loaded.

Parameters:
backingUser - the backing User to set

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface java.security.Principal
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface java.security.Principal
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Specified by:
toString in interface java.security.Principal
Overrides:
toString in class java.lang.Object

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Return a new copy of this ConfluenceUserImpl

Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException


Copyright © 2003-2014 Atlassian. All Rights Reserved.