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
InternalUserWithAttributes
public InternalUserWithAttributes(InternalUser user,
Map<String,List<String>> attributes)
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.