com.atlassian.crowd.directory
Class ImmutableTimestampedUser
java.lang.Object
com.atlassian.crowd.directory.ImmutableTimestampedUser
- All Implemented Interfaces:
- User, DirectoryEntity, TimestampedEntity, TimestampedUser, java.lang.Comparable<User>, java.security.Principal
public class ImmutableTimestampedUser
- extends java.lang.Object
- implements TimestampedUser
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImmutableTimestampedUser
public ImmutableTimestampedUser(TimestampedUser user)
getFirstName
public java.lang.String getFirstName()
getLastName
public java.lang.String getLastName()
getDirectoryId
public long getDirectoryId()
- Specified by:
getDirectoryId in interface User- Specified by:
getDirectoryId in interface DirectoryEntity
- Returns:
- id of the directory in which the User is stored.
isActive
public boolean isActive()
- Specified by:
isActive in interface User
- Returns:
true if and only if the user is allowed to authenticate.
getEmailAddress
public java.lang.String getEmailAddress()
- Specified by:
getEmailAddress in interface User
- Returns:
- email address of the user.
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayName in interface User
- Returns:
- display name (eg. full name) of the user, must never be null.
compareTo
public int compareTo(User user)
- Description copied from interface:
User
- CompareTo must be compatible with the equals() and hashCode() methods
- Specified by:
compareTo in interface User- Specified by:
compareTo in interface java.lang.Comparable<User>
getCreatedDate
public java.util.Date getCreatedDate()
- Description copied from interface:
TimestampedEntity
- Returns the date the entity was created.
- Specified by:
getCreatedDate in interface TimestampedEntity
- Returns:
- date the entity was created
getUpdatedDate
public java.util.Date getUpdatedDate()
- Description copied from interface:
TimestampedEntity
- Returns the date the entity was last updated.
- Specified by:
getUpdatedDate in interface TimestampedEntity
- Returns:
- date the entity was last updated.
getName
public java.lang.String getName()
- Specified by:
getName in interface DirectoryEntity- Specified by:
getName in interface java.security.Principal
- Returns:
- name of the entity.
Copyright © 2011 Atlassian. All Rights Reserved.