public class DelegatingUserWithAttributes extends DelegatingUserWithAttributes implements UserWithAttributes
Instances of this class will be effectively immutable so long as either:
Constructor and Description |
---|
DelegatingUserWithAttributes(User user,
Attributes attributes) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(User other)
CompareTo must be compatible with the equals() and hashCode() methods
|
boolean |
equals(Object o)
Implementations must ensure equality based on
getDirectoryId() and case-insensitive getName().
|
String |
getExternalId() |
String |
getFirstName() |
String |
getLastName() |
int |
hashCode()
Implementations must produce a hashcode based on
getDirectoryId() and case-insensitive getName().
|
getDirectoryId, getDisplayName, getEmailAddress, getName, isActive
getKeys, getValue, getValues, isEmpty
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getDirectoryId, getName
getDirectoryId, getDisplayName, getEmailAddress, isActive
getKeys, getValue, getValues, isEmpty
public DelegatingUserWithAttributes(User user, Attributes attributes)
public String getFirstName()
public String getLastName()
public boolean equals(Object o)
User
equals
in interface User
equals
in interface DirectoryEntity
equals
in interface Principal
equals
in class DelegatingUserWithAttributes
o
- object to compare to.true
if and only if the directoryId
and name.toLowerCase() of the directory entities match.public int hashCode()
User
hashCode
in interface User
hashCode
in interface DirectoryEntity
hashCode
in interface Principal
hashCode
in class DelegatingUserWithAttributes
public int compareTo(User other)
User
compareTo
in interface User
compareTo
in interface Comparable<User>
compareTo
in class DelegatingUserWithAttributes
public String getExternalId()
Copyright © 2021 Atlassian. All rights reserved.