Package com.atlassian.confluence.user
Class ConfluenceUserImpl
java.lang.Object
com.atlassian.confluence.user.ConfluenceUserImpl
- All Implemented Interfaces:
RelatableEntity
,ConfluenceUser
,HasBackingUser
,com.atlassian.user.Entity
,com.atlassian.user.User
,Serializable
,Cloneable
,Principal
public class ConfluenceUserImpl
extends Object
implements ConfluenceUser, Cloneable, Serializable, HasBackingUser
An implementation of the ConfluenceUser which wraps an atlassian-user User
- See Also:
-
Constructor Summary
ConstructorDescriptionConfluenceUserImpl
(com.atlassian.user.User backingUser) ConfluenceUserImpl
(String username, String fullName, String email) Create a new ConfluenceUserImpl with an automatically generated backing User. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Return a new copy of this ConfluenceUserImplboolean
com.atlassian.user.User
getEmail()
com.atlassian.sal.api.user.UserKey
getKey()
Return the immutable and unique key for the user.@Nullable 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
(@Nullable String lowerName) void
toString()
-
Constructor Details
-
ConfluenceUserImpl
public ConfluenceUserImpl() -
ConfluenceUserImpl
Create a new ConfluenceUserImpl with an automatically generated backing User. -
ConfluenceUserImpl
public ConfluenceUserImpl(com.atlassian.user.User backingUser)
-
-
Method Details
-
getName
-
getLowerName
- Specified by:
getLowerName
in interfaceConfluenceUser
- Returns:
- the lower username
-
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 interfaceConfluenceUser
- Returns:
- the unique key for this user.
-
getFullName
- Specified by:
getFullName
in interfacecom.atlassian.user.User
-
getEmail
- Specified by:
getEmail
in interfacecom.atlassian.user.User
-
getBackingUser
public com.atlassian.user.User getBackingUser()- Specified by:
getBackingUser
in interfaceHasBackingUser
- Returns:
- the backing user
-
setName
-
setLowerName
-
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
-
hashCode
public int hashCode() -
toString
-
clone
Return a new copy of this ConfluenceUserImpl- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-