|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.model.user.UserTemplate
public class UserTemplate
A publicly mutable User implementation.
Used to create or update a user.
Constructor Summary | |
---|---|
UserTemplate(String name)
|
|
UserTemplate(String username,
long directoryId)
Build a template for a new user. |
|
UserTemplate(String username,
String firstName,
String lastName,
String displayName)
|
|
UserTemplate(User user)
Build a template from an existing user. |
|
UserTemplate(User user)
Build a template from an existing user. |
Method Summary | |
---|---|
int |
compareTo(User other)
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 |
getFirstName()
|
String |
getLastName()
|
String |
getName()
|
int |
hashCode()
Implementations must produce a hashcode based on getDirectoryId() and case-insensitive getName(). |
boolean |
isActive()
|
void |
setActive(boolean active)
|
void |
setDirectoryId(long directoryId)
|
void |
setDisplayName(String displayName)
|
void |
setEmailAddress(String emailAddress)
|
void |
setFirstName(String firstName)
|
void |
setLastName(String lastName)
|
void |
setName(String name)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UserTemplate(String username, long directoryId)
username
- username of new user.directoryId
- ID of the directory in which to store the new user.public UserTemplate(String name)
public UserTemplate(User user)
user
- user to build template from.public UserTemplate(String username, String firstName, String lastName, String displayName)
public UserTemplate(User user)
user
- user to build template from.Method Detail |
---|
public void setDirectoryId(long directoryId)
public void setName(String name)
public long getDirectoryId()
getDirectoryId
in interface User
getDirectoryId
in interface DirectoryEntity
public boolean isActive()
isActive
in interface User
true if and only if the user is allowed to authenticate.
public void setActive(boolean active)
public String getName()
getName
in interface DirectoryEntity
getName
in interface Principal
public String getEmailAddress()
getEmailAddress
in interface User
public void setEmailAddress(String emailAddress)
public String getFirstName()
public void setFirstName(String firstName)
public String getLastName()
public void setLastName(String lastName)
public String getDisplayName()
getDisplayName
in interface User
public void setDisplayName(String displayName)
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
hashCode
in interface User
hashCode
in interface DirectoryEntity
hashCode
in interface Principal
hashCode
in class Object
public int compareTo(User other)
User
compareTo
in interface User
compareTo
in interface Comparable<User>
public String toString()
toString
in interface Principal
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |