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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConfluenceUserImpl()ConfluenceUserImpl(com.atlassian.user.User backingUser)ConfluenceUserImpl(String username, String fullName, String email)Create a new ConfluenceUserImpl with an automatically generated backing User.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfluenceUserImplclone()Return a new copy of this ConfluenceUserImplbooleanequals(Object o)com.atlassian.user.UsergetBackingUser()StringgetEmail()StringgetFullName()com.atlassian.sal.api.user.UserKeygetKey()Return the immutable and unique key for the user.@Nullable StringgetLowerName()StringgetName()inthashCode()voidsetBackingUser(com.atlassian.user.User backingUser)Provided to aid the strategy of automatically setting the backing user as this object is loaded.voidsetLowerName(@Nullable String lowerName)voidsetName(String name)StringtoString()
-
-
-
Constructor Detail
-
ConfluenceUserImpl
public ConfluenceUserImpl()
-
ConfluenceUserImpl
public ConfluenceUserImpl(String username, String fullName, String email)
Create a new ConfluenceUserImpl with an automatically generated backing User.
-
ConfluenceUserImpl
public ConfluenceUserImpl(com.atlassian.user.User backingUser)
-
-
Method Detail
-
getName
public String getName()
-
getLowerName
public @Nullable String getLowerName()
- Specified by:
getLowerNamein interfaceConfluenceUser- Returns:
- the lower username
-
getKey
public com.atlassian.sal.api.user.UserKey getKey()
Description copied from interface:ConfluenceUserReturn the immutable and unique key for the user.- Specified by:
getKeyin interfaceConfluenceUser- Returns:
- the unique key for this user.
-
getFullName
public String getFullName()
- Specified by:
getFullNamein interfacecom.atlassian.user.User
-
getEmail
public String getEmail()
- Specified by:
getEmailin interfacecom.atlassian.user.User
-
getBackingUser
public com.atlassian.user.User getBackingUser()
- Specified by:
getBackingUserin interfaceHasBackingUser- Returns:
- the backing user
-
setName
public void setName(String name)
-
setLowerName
public void setLowerName(@Nullable 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(Object o)
-
hashCode
public int hashCode()
-
toString
public String toString()
-
clone
public ConfluenceUserImpl clone() throws CloneNotSupportedException
Return a new copy of this ConfluenceUserImpl- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
-