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, isActivegetKeys, getValue, getValues, isEmptyclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetDirectoryId, getNamegetDirectoryId, getDisplayName, getEmailAddress, isActive, isMarkedAsDeletedgetKeys, getValue, getValues, isEmptypublic DelegatingUserWithAttributes(User user, Attributes attributes)
public String getFirstName()
public String getLastName()
public boolean equals(Object o)
Userequals in interface Userequals in interface DirectoryEntityequals in interface Principalequals in class DelegatingUserWithAttributeso - object to compare to.true if and only if the directoryId
and name.toLowerCase() of the directory entities match.public int hashCode()
UserhashCode in interface UserhashCode in interface DirectoryEntityhashCode in interface PrincipalhashCode in class DelegatingUserWithAttributespublic int compareTo(User other)
UsercompareTo in interface UsercompareTo in interface Comparable<User>compareTo in class DelegatingUserWithAttributespublic String getExternalId()
Copyright © 2023 Atlassian. All rights reserved.