com.atlassian.crowd.model.user
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, 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".
| Methods inherited from class com.atlassian.crowd.embedded.impl.DelegatingUserWithAttributes |
getDirectoryId, getDisplayName, getEmailAddress, getName, isActive |
DelegatingUserWithAttributes
public DelegatingUserWithAttributes(User user,
Attributes attributes)
getFirstName
public String getFirstName()
getLastName
public String getLastName()
equals
public boolean equals(Object o)
- Specified by:
equals in interface User- Specified by:
equals in interface DirectoryEntity- Specified by:
equals in interface Principal- Overrides:
equals in class com.atlassian.crowd.embedded.impl.DelegatingUserWithAttributes
hashCode
public int hashCode()
- Specified by:
hashCode in interface User- Specified by:
hashCode in interface DirectoryEntity- Specified by:
hashCode in interface Principal- Overrides:
hashCode in class com.atlassian.crowd.embedded.impl.DelegatingUserWithAttributes
compareTo
public int compareTo(User other)
- Specified by:
compareTo in interface User- Specified by:
compareTo in interface Comparable<User>- Overrides:
compareTo in class com.atlassian.crowd.embedded.impl.DelegatingUserWithAttributes
getExternalId
public String getExternalId()
Copyright © 2016 Atlassian. All Rights Reserved.