public class DelegatingUserWithAttributes extends AbstractDelegatingEntityWithAttributes 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 user)
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().
|
long |
getDirectoryId() |
String |
getDisplayName() |
String |
getEmailAddress() |
String |
getName() |
int |
hashCode()
Implementations must produce a hashcode based on
getDirectoryId() and case-insensitive getName().
|
boolean |
isActive() |
getKeys, getValue, getValues, isEmpty
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getKeys, getValue, getValues, isEmpty
public DelegatingUserWithAttributes(User user, Attributes attributes)
public long getDirectoryId()
getDirectoryId
in interface User
public boolean isActive()
public String getEmailAddress()
getEmailAddress
in interface User
public String getDisplayName()
getDisplayName
in interface User
public int compareTo(User user)
User
compareTo
in interface User
compareTo
in interface Comparable<User>
public boolean equals(Object o)
User
public int hashCode()
User
Copyright © 2021 Atlassian. All rights reserved.