Package 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,User,UserWithAttributes,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".
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.atlassian.crowd.embedded.impl.DelegatingUserWithAttributes
getDirectoryId, getDisplayName, getEmailAddress, getName, isActiveMethods inherited from class com.atlassian.crowd.embedded.impl.AbstractDelegatingEntityWithAttributes
getKeys, getValue, getValues, isEmptyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.crowd.embedded.api.Attributes
getKeys, getValue, getValues, isEmptyMethods inherited from interface com.atlassian.crowd.model.DirectoryEntity
getDirectoryId, getNameMethods inherited from interface com.atlassian.crowd.embedded.api.User
getDirectoryId, getDisplayName, getEmailAddress, isActive, isMarkedAsDeleted
-
Constructor Details
-
DelegatingUserWithAttributes
-
-
Method Details
-
getFirstName
- Specified by:
getFirstNamein interfaceUser
-
getLastName
- Specified by:
getLastNamein interfaceUser
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<User>- Specified by:
compareToin interfaceUser- Overrides:
compareToin classcom.atlassian.crowd.embedded.impl.DelegatingUserWithAttributes
-
getExternalId
- Specified by:
getExternalIdin interfaceUser
-