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
- Direct Known Subclasses:
ServiceAccountUserImpl
public class ConfluenceUserImpl
extends Object
implements ConfluenceUser, Cloneable, Serializable, HasBackingUser
An implementation of the ConfluenceUser which wraps an atlassian-user User
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfluenceUserImpl(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 ConfluenceUserImplbooleancom.atlassian.user.UsergetEmail()com.atlassian.sal.api.user.UserKeygetKey()Return the immutable and unique key for the user.@Nullable StringgetName()inthashCode()protected Objectprotected voidReset any calculated backing user.voidsetBackingUser(com.atlassian.user.User backingUser) Provided to aid the strategy of automatically setting the backing user as this object is loaded.protected voidsetKey(com.atlassian.sal.api.user.UserKey key) Clients should not be calling this method - it is used by Hibernate.voidsetLowerName(@Nullable String lowerName) voidtoString()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.confluence.user.ConfluenceUser
isServiceAccount
-
Field Details
-
lowerName
-
-
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:
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
- Specified by:
getFullNamein interfacecom.atlassian.user.User
-
getEmail
- Specified by:
getEmailin interfacecom.atlassian.user.User
-
getBackingUser
public com.atlassian.user.User getBackingUser()- Specified by:
getBackingUserin interfaceHasBackingUser- Returns:
- the backing user
-
setName
-
setLowerName
-
resetBackingUserSupplier
protected void resetBackingUserSupplier()Reset any calculated backing user. Must be called whenever the object state changes in such a way that may potentially invalidate any previously calculated backing user. -
setKey
protected void setKey(com.atlassian.sal.api.user.UserKey key) Clients should not be calling this method - it is used by Hibernate. -
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:
clonein classObject- Throws:
CloneNotSupportedException
-
readResolve
- Throws:
ObjectStreamException
-