Class DeferredLookupUser

java.lang.Object
com.atlassian.confluence.internal.user.DeferredLookupUser
All Implemented Interfaces:
RelatableEntity, ConfluenceUser, com.atlassian.user.Entity, com.atlassian.user.User, Serializable, Principal

public class DeferredLookupUser extends Object implements ConfluenceUser
A ConfluenceUser implementation based on a UserKey object, and which looks up the "real" ConfluenceUser lazily as necessary to fulfil the method contract. If only getKey() is called then no delegate lookup will be performed.
Since:
6.0.5
See Also:
  • Constructor Details

    • DeferredLookupUser

      public DeferredLookupUser(com.atlassian.sal.api.user.UserKey userKey)
  • Method Details

    • 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.
    • getLowerName

      public String getLowerName()
      Specified by:
      getLowerName in interface ConfluenceUser
      Returns:
      the lower username
    • getFullName

      public String getFullName()
      Specified by:
      getFullName in interface com.atlassian.user.User
    • getEmail

      public String getEmail()
      Specified by:
      getEmail in interface com.atlassian.user.User
    • getName

      public String getName()
      Specified by:
      getName in interface com.atlassian.user.Entity
      Specified by:
      getName in interface Principal
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Principal
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Principal
      Overrides:
      hashCode in class Object