com.atlassian.crowd.integration.model.user
Class InternalUserWithAttributes
java.lang.Object
com.atlassian.crowd.integration.model.EntityWithAttributes
com.atlassian.crowd.integration.model.user.InternalUserWithAttributes
- All Implemented Interfaces:
- AttributeAware, DirectoryEntity, User, UserWithAttributes
public class InternalUserWithAttributes
- extends EntityWithAttributes
- implements UserWithAttributes
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
InternalUserWithAttributes
public InternalUserWithAttributes(InternalUser user,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> attributes)
getDirectoryId
public java.lang.Long getDirectoryId()
- Specified by:
getDirectoryId in interface DirectoryEntity
- Returns:
- id of the directory in which the DirectoryEntity is stored.
getName
public java.lang.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 java.lang.String getEmailAddress()
- Specified by:
getEmailAddress in interface User
- Returns:
- primary email address of the principal.
getFirstName
public java.lang.String getFirstName()
- Specified by:
getFirstName in interface User
- Returns:
- first name of the principal.
getLastName
public java.lang.String getLastName()
- Specified by:
getLastName in interface User
- Returns:
- last name of the principal.
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayName in interface User
- Returns:
- display name (eg. full name) of the principal.
getIconLocation
public java.lang.String getIconLocation()
- Specified by:
getIconLocation in interface User
- Returns:
- icon location URL.
getInternalUser
public InternalUser getInternalUser()
getCredential
public PasswordCredential getCredential()
equals
public boolean equals(java.lang.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 java.lang.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 java.lang.Object
- Returns:
- hashcode.
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.