public class DemoUser extends Object implements User
Constructor and Description |
---|
DemoUser(String name,
String firstName,
String lastName,
boolean active,
String emailAddress,
String displayName,
long directoryId,
String externalId) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(User user)
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().
|
long |
getDirectoryId() |
String |
getDisplayName() |
String |
getEmailAddress() |
String |
getExternalId() |
String |
getFirstName() |
String |
getLastName() |
String |
getName() |
int |
hashCode()
Implementations must produce a hashcode based on
getDirectoryId() and case-insensitive getName().
|
boolean |
isActive() |
static DemoUser |
newInstance(String name,
String firstName,
String lastName,
boolean active,
String email,
String displayName,
String externalId)
Creates a new user.
|
public String getFirstName()
public String getLastName()
public long getDirectoryId()
getDirectoryId
in interface User
getDirectoryId
in interface DirectoryEntity
public boolean isActive()
public String getEmailAddress()
getEmailAddress
in interface User
public String getDisplayName()
getDisplayName
in interface User
public int compareTo(User user)
User
compareTo
in interface User
compareTo
in interface Comparable<User>
public String getName()
getName
in interface DirectoryEntity
getName
in interface Principal
public String getExternalId()
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 © 2016 Atlassian. All rights reserved.