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:
- com.atlassian.crowd.embedded.api.Attributes, com.atlassian.crowd.embedded.api.User, com.atlassian.crowd.embedded.api.UserWithAttributes, DirectoryEntity, Comparable<com.atlassian.crowd.embedded.api.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 |
| Methods inherited from interface com.atlassian.crowd.embedded.api.User |
getDirectoryId, getDisplayName, getEmailAddress, isActive |
| Methods inherited from interface com.atlassian.crowd.embedded.api.Attributes |
getKeys, getValue, getValues, isEmpty |
DelegatingUserWithAttributes
public DelegatingUserWithAttributes(User user,
com.atlassian.crowd.embedded.api.Attributes attributes)
getFirstName
public String getFirstName()
getLastName
public String getLastName()
equals
public boolean equals(Object o)
- Specified by:
equals in interface com.atlassian.crowd.embedded.api.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 com.atlassian.crowd.embedded.api.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(com.atlassian.crowd.embedded.api.User other)
- Specified by:
compareTo in interface com.atlassian.crowd.embedded.api.User- Specified by:
compareTo in interface Comparable<com.atlassian.crowd.embedded.api.User>- Overrides:
compareTo in class com.atlassian.crowd.embedded.impl.DelegatingUserWithAttributes
getExternalId
public String getExternalId()
Copyright © 2014 Atlassian. All Rights Reserved.