|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface User
Represents a user.
Method Summary | |
---|---|
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()
|
int |
hashCode()
Implementations must produce a hashcode based on getDirectoryId() and case-insensitive getName(). |
boolean |
isActive()
|
Methods inherited from interface java.security.Principal |
---|
getName, toString |
Method Detail |
---|
long getDirectoryId()
boolean isActive()
true if and only if the user is allowed to authenticate.
String getEmailAddress()
String getDisplayName()
boolean equals(Object o)
equals
in interface Principal
equals
in class Object
o
- object to compare to.
true
if and only if the directoryId
and name.toLowerCase() of the directory entities match.int hashCode()
hashCode
in interface Principal
hashCode
in class Object
int compareTo(User user)
compareTo
in interface Comparable<User>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |