Class DelegatingUserWithAttributes

java.lang.Object
com.atlassian.crowd.embedded.impl.AbstractDelegatingEntityWithAttributes
com.atlassian.crowd.embedded.impl.DelegatingUserWithAttributes
com.atlassian.crowd.model.user.DelegatingUserWithAttributes
All Implemented Interfaces:
Attributes, User, UserWithAttributes, DirectoryEntity, User, UserWithAttributes, Comparable<User>, Principal

public class DelegatingUserWithAttributes extends com.atlassian.crowd.embedded.impl.DelegatingUserWithAttributes implements UserWithAttributes
Implementation of UserWithAttributes that simply delegates to an underlying User and Attributes object.

Instances of this class will be effectively immutable so long as either:

  • It is constructed with immutable objects or
  • the mutable objects it is constructed with are not "leaked".
  • Constructor Details

    • DelegatingUserWithAttributes

      public DelegatingUserWithAttributes(User user, Attributes attributes)
  • Method Details

    • getFirstName

      public String getFirstName()
      Specified by:
      getFirstName in interface User
    • getLastName

      public String getLastName()
      Specified by:
      getLastName in interface User
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface DirectoryEntity
      Specified by:
      equals in interface Principal
      Specified by:
      equals in interface User
      Overrides:
      equals in class com.atlassian.crowd.embedded.impl.DelegatingUserWithAttributes
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface DirectoryEntity
      Specified by:
      hashCode in interface Principal
      Specified by:
      hashCode in interface User
      Overrides:
      hashCode in class com.atlassian.crowd.embedded.impl.DelegatingUserWithAttributes
    • compareTo

      public int compareTo(User other)
      Specified by:
      compareTo in interface Comparable<User>
      Specified by:
      compareTo in interface User
      Overrides:
      compareTo in class com.atlassian.crowd.embedded.impl.DelegatingUserWithAttributes
    • getExternalId

      public String getExternalId()
      Specified by:
      getExternalId in interface User