com.atlassian.crowd.directory
Class ImmutableTimestampedUser

java.lang.Object
  extended by com.atlassian.crowd.directory.ImmutableTimestampedUser
All Implemented Interfaces:
User, DirectoryEntity, TimestampedEntity, TimestampedUser, Comparable<User>, Principal

public class ImmutableTimestampedUser
extends Object
implements TimestampedUser


Constructor Summary
ImmutableTimestampedUser(TimestampedUser user)
           
 
Method Summary
 int compareTo(User user)
          CompareTo must be compatible with the equals() and hashCode() methods
 Date getCreatedDate()
          Returns the date the entity was created.
 long getDirectoryId()
           
 String getDisplayName()
           
 String getEmailAddress()
           
 String getFirstName()
           
 String getLastName()
           
 String getName()
           
 Date getUpdatedDate()
          Returns the date the entity was last updated.
 boolean isActive()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.crowd.model.DirectoryEntity
equals, hashCode
 
Methods inherited from interface com.atlassian.crowd.embedded.api.User
equals, hashCode
 
Methods inherited from interface java.security.Principal
toString
 

Constructor Detail

ImmutableTimestampedUser

public ImmutableTimestampedUser(TimestampedUser user)
Method Detail

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.