com.atlassian.crowd.integration.model.user
Class InternalUserWithAttributes

java.lang.Object
  extended by com.atlassian.crowd.integration.model.EntityWithAttributes
      extended by com.atlassian.crowd.integration.model.user.InternalUserWithAttributes
All Implemented Interfaces:
AttributeAware, DirectoryEntity, User, UserWithAttributes

public class InternalUserWithAttributes
extends EntityWithAttributes
implements UserWithAttributes


Constructor Summary
InternalUserWithAttributes(InternalUser user, Map<String,List<String>> attributes)
           
 
Method Summary
 boolean equals(Object o)
          Implementations must ensure equality based on getDirectoryId() and case-insensitive getName().
 PasswordCredential getCredential()
           
 Long getDirectoryId()
           
 String getDisplayName()
           
 String getEmailAddress()
           
 String getFirstName()
           
 String getIconLocation()
           
 InternalUser getInternalUser()
           
 String getLastName()
           
 String getName()
           
 int hashCode()
          Implementations must produce a hashcode based on getDirectoryId() and case-insensitive getName().
 boolean isActive()
           
 
Methods inherited from class com.atlassian.crowd.integration.model.EntityWithAttributes
getAttribute, getAttributeNames, getAttributes, hasAttribute, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.crowd.integration.model.AttributeAware
getAttribute, getAttributeNames, getAttributes, hasAttribute
 

Constructor Detail

InternalUserWithAttributes

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

getDirectoryId

public Long getDirectoryId()
Specified by:
getDirectoryId in interface DirectoryEntity
Returns:
id of the directory in which the DirectoryEntity is stored.

getName

public String getName()
Specified by:
getName in interface DirectoryEntity
Returns:
name of the entity.

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:
primary email address of the principal.

getFirstName

public String getFirstName()
Specified by:
getFirstName in interface User
Returns:
first name of the principal.

getLastName

public String getLastName()
Specified by:
getLastName in interface User
Returns:
last name of the principal.

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface User
Returns:
display name (eg. full name) of the principal.

getIconLocation

public String getIconLocation()
Specified by:
getIconLocation in interface User
Returns:
icon location URL.

getInternalUser

public InternalUser getInternalUser()

getCredential

public PasswordCredential getCredential()

equals

public boolean equals(Object o)
Description copied from interface: DirectoryEntity
Implementations must ensure equality based on getDirectoryId() and case-insensitive getName().

Specified by:
equals in interface DirectoryEntity
Overrides:
equals in class Object
Parameters:
o - object to compare to.
Returns:
true if and only if the directoryId and name.toLowerCase() of the directory entities match.

hashCode

public int hashCode()
Description copied from interface: DirectoryEntity
Implementations must produce a hashcode based on getDirectoryId() and case-insensitive getName().

Specified by:
hashCode in interface DirectoryEntity
Overrides:
hashCode in class Object
Returns:
hashcode.


Copyright © 2010 Atlassian Pty Ltd. All Rights Reserved.