com.atlassian.crowd.model.user
Class InternalUserWithAttributes

java.lang.Object
  extended by com.atlassian.crowd.model.EntityWithAttributes
      extended by com.atlassian.crowd.model.user.InternalUserWithAttributes
All Implemented Interfaces:
Attributes, User, UserWithAttributes, DirectoryEntity, Comparable<User>, Principal

public class InternalUserWithAttributes
extends EntityWithAttributes
implements UserWithAttributes

Encapsulates the concept of user which has attributes.


Constructor Summary
InternalUserWithAttributes(InternalUser user, Map<String,Set<String>> attributes)
           
 
Method Summary
 int compareTo(User o)
           
 boolean equals(Object o)
           
 PasswordCredential getCredential()
           
 long getDirectoryId()
           
 String getDisplayName()
           
 String getEmailAddress()
           
 String getExternalId()
           
 String getFirstName()
           
 InternalUser getInternalUser()
           
 String getLastName()
           
 String getName()
           
 int hashCode()
           
 boolean isActive()
           
 
Methods inherited from class com.atlassian.crowd.model.EntityWithAttributes
getKeys, getValue, getValues, isEmpty, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
toString
 
Methods inherited from interface com.atlassian.crowd.embedded.api.Attributes
getKeys, getValue, getValues, isEmpty
 

Constructor Detail

InternalUserWithAttributes

public InternalUserWithAttributes(InternalUser user,
                                  Map<String,Set<String>> attributes)
Method Detail

getDirectoryId

public long getDirectoryId()
Specified by:
getDirectoryId in interface User
Specified by:
getDirectoryId in interface DirectoryEntity

getName

public String getName()
Specified by:
getName in interface DirectoryEntity
Specified by:
getName in interface Principal

isActive

public boolean isActive()
Specified by:
isActive in interface User

getEmailAddress

public String getEmailAddress()
Specified by:
getEmailAddress in interface User

getFirstName

public String getFirstName()

getLastName

public String getLastName()

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface User

getInternalUser

public InternalUser getInternalUser()

getCredential

public PasswordCredential getCredential()

getExternalId

public String getExternalId()

equals

public boolean equals(Object o)
Specified by:
equals in interface User
Specified by:
equals in interface DirectoryEntity
Specified by:
equals in interface Principal
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface User
Specified by:
hashCode in interface DirectoryEntity
Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object

compareTo

public int compareTo(User o)
Specified by:
compareTo in interface User
Specified by:
compareTo in interface Comparable<User>


Copyright © 2016 Atlassian. All Rights Reserved.