public class InternalUserWithAttributes extends EntityWithAttributes implements UserWithAttributes, TimestampedUser
Constructor and Description |
---|
InternalUserWithAttributes(InternalUser user) |
InternalUserWithAttributes(InternalUser user,
Map<String,Set<String>> attributes) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(User o)
CompareTo must be compatible with the equals() and hashCode() methods
|
boolean |
equals(Object o)
Implementations must ensure equality based on
getDirectoryId() and case-insensitive getName().
|
Date |
getCreatedDate()
Returns the date the entity was created.
|
PasswordCredential |
getCredential() |
long |
getDirectoryId() |
String |
getDisplayName() |
String |
getEmailAddress() |
String |
getExternalId() |
String |
getFirstName() |
InternalUser |
getInternalUser() |
String |
getLastName() |
String |
getName() |
Date |
getUpdatedDate()
Returns the date the entity was last updated.
|
int |
hashCode()
Implementations must produce a hashcode based on
getDirectoryId() and case-insensitive getName().
|
boolean |
isActive() |
getKeys, getValue, getValues, isEmpty, toString
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getKeys, getValue, getValues, isEmpty
public InternalUserWithAttributes(InternalUser user)
public InternalUserWithAttributes(InternalUser user, Map<String,Set<String>> attributes)
public long getDirectoryId()
getDirectoryId
in interface User
getDirectoryId
in interface DirectoryEntity
public String getName()
getName
in interface DirectoryEntity
getName
in interface Principal
public boolean isActive()
public String getEmailAddress()
getEmailAddress
in interface User
public String getFirstName()
public String getLastName()
public String getDisplayName()
getDisplayName
in interface User
public InternalUser getInternalUser()
public PasswordCredential getCredential()
public String getExternalId()
public Date getCreatedDate()
TimestampedEntity
getCreatedDate
in interface TimestampedEntity
public Date getUpdatedDate()
TimestampedEntity
getUpdatedDate
in interface TimestampedEntity
public boolean equals(Object o)
DirectoryEntity
equals
in interface User
equals
in interface DirectoryEntity
equals
in interface Principal
equals
in class Object
o
- object to compare to.true
if and only if the directoryId
and the lowercase names of the directory entities match.public int hashCode()
DirectoryEntity
Copyright © 2021 Atlassian. All rights reserved.