com.atlassian.crowd.directory
Class ImmutableTimestampedUser
java.lang.Object
com.atlassian.crowd.directory.ImmutableTimestampedUser
- All Implemented Interfaces:
- User, DirectoryEntity, TimestampedEntity, TimestampedUser, Comparable<User>, Principal
public class ImmutableTimestampedUser
- extends 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 String getFirstName()
getLastName
public 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 DirectoryEntity 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 String getEmailAddress()
- Specified by:
getEmailAddress
in interface User
- Returns:
- email address of the user.
getDisplayName
public 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 Comparable<User>
getCreatedDate
public 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 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 String getName()
- Specified by:
getName
in interface DirectoryEntity
- Specified by:
getName
in interface Principal
- Returns:
- name of the entity.
Copyright © 2013 Atlassian. All Rights Reserved.